µGFX library fork

gtimer_rules.h 1001B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * This file is subject to the terms of the GFX License. If a copy of
  3. * the license was not distributed with this file, you can obtain one at:
  4. *
  5. * http://ugfx.org/license.html
  6. */
  7. /**
  8. * @file src/gtimer/gtimer_rules.h
  9. * @brief GTIMER safety rules header file.
  10. *
  11. * @addtogroup GTIMER
  12. * @{
  13. */
  14. #ifndef _GTIMER_RULES_H
  15. #define _GTIMER_RULES_H
  16. #if GFX_USE_GTIMER
  17. #if GFX_USE_GDISP && !GDISP_NEED_MULTITHREAD
  18. #if GFX_DISPLAY_RULE_WARNINGS
  19. #if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
  20. #warning "GTIMER: GDISP_NEED_MULTITHREAD has not been specified. Make sure you are not performing any GDISP/GWIN drawing operations in the timer callback!"
  21. #elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
  22. COMPILER_WARNING("GTIMER: GDISP_NEED_MULTITHREAD has not been specified. Make sure you are not performing any GDISP/GWIN drawing operations in the timer callback!")
  23. #endif
  24. #endif
  25. #endif
  26. #endif
  27. #endif /* _GTIMER_RULES_H */
  28. /** @} */