Debug.h 681 B

12345678910111213141516171819202122232425262728
  1. /*****************************************************************************
  2. * | File : Debug.h
  3. * | Author : Waveshare team
  4. * | Function : debug with prntf
  5. * | Info :
  6. * Image scanning
  7. * Please use progressive scanning to generate images or fonts
  8. *----------------
  9. * | This version: V1.0
  10. * | Date : 2018-01-11
  11. * | Info : Basic version
  12. *
  13. ******************************************************************************/
  14. #ifndef __DEBUG_H
  15. #define __DEBUG_H
  16. #include "stdio.h"
  17. #define DEV_DEBUG 1
  18. #if DEV_DEBUG
  19. #define Debug(__info,...) printf("Debug : " __info,##__VA_ARGS__)
  20. #else
  21. #define DEBUG(__info,...)
  22. #endif
  23. #endif