Debug.h 624 B

123456789101112131415161718192021222324
  1. /*****************************************************************************
  2. * | File : Debug.h
  3. * | Author : Waveshare team
  4. * | Function : debug with printf
  5. * | Info :
  6. *----------------
  7. * | This version: V1.0
  8. * | Date : 2020-06-16
  9. * | Info : Basic version
  10. *
  11. ******************************************************************************/
  12. #ifndef __DEBUG_H
  13. #define __DEBUG_H
  14. #include "stdio.h"
  15. #define DEBUG 0 //No enough memory
  16. #if DEBUG
  17. #define Debug(__info,...) printf("Debug : " __info,##__VA_ARGS__)
  18. #else
  19. #define Debug(__info,...)
  20. #endif
  21. #endif