version 2.8
gtimer_rules.h
Go to the documentation of this file.
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 /**
9  * @file src/gtimer/gtimer_rules.h
10  * @brief GTIMER safety rules header file.
11  *
12  * @addtogroup GTIMER
13  * @{
14  */
15 
16 #ifndef _GTIMER_RULES_H
17 #define _GTIMER_RULES_H
18 
19 #if GFX_USE_GTIMER
20  #if GFX_USE_GDISP && !GDISP_NEED_MULTITHREAD
21  #if GFX_DISPLAY_RULE_WARNINGS
22  #if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
23  #warning "GTIMER: GDISP_NEED_MULTITHREAD has not been specified. Make sure you are not performing any GDISP/GWIN drawing operations in the timer callback!"
24  #elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
25  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!")
26  #endif
27  #endif
28  #endif
29 #endif
30 
31 #endif /* _GTIMER_RULES_H */
32 /** @} */