µGFX  2.9
version 2.9
gos_keil.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.io/license.html
6  */
7 
8 /**
9  * @file src/gos/gos_keil.h
10  * @brief GOS - Operating System Support header file for Keil RTX
11  */
12 
13 #ifndef _GOS_KEIL_H
14 #define _GOS_KEIL_H
15 
16 #if GFX_USE_OS_KEIL
17 
18 /*
19  * Keil RTX uses the CMSIS RTOS interface. Therefore, just use the CMSIS RTOS port
20  */
21 
22 // Disable KEIL to avoid error: "GOS: More than one operation system has been defined as GFXON."
23 #undef GFX_USE_OS_KEIL
24 #define GFX_USE_OS_KEIL GFXOFF
25 
26 // Enable generic CMSIS RTOS implementation
27 #undef GFX_USE_OS_CMSIS
28 #define GFX_USE_OS_CMSIS GFXON
29 #include "gos_cmsis.h"
30 
31 #endif /* GFX_USE_OS_KEIL */
32 #endif /* _GOS_KEIL_H */
GOS - Operating System Support header file for CMSIS RTOS.