aboutsummaryrefslogtreecommitdiffstats
path: root/src/gos/gos_keil.h
blob: aa8756243d5be440be84cbd1d8cfe4486ab4f19d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * This file is subject to the terms of the GFX License. If a copy of
 * the license was not distributed with this file, you can obtain one at:
 *
 *              http://ugfx.io/license.html
 */

/**
 * @file    src/gos/gos_keil.h
 * @brief   GOS - Operating System Support header file for Keil RTX
 */

#ifndef _GOS_KEIL_H
#define _GOS_KEIL_H

#if GFX_USE_OS_KEIL

/*
 * Keil RTX uses the CMSIS RTOS interface. Therefore, just use the CMSIS RTOS port
 */

// Disable KEIL to avoid error: "GOS: More than one operation system has been defined as GFXON."
#undef GFX_USE_OS_KEIL
#define GFX_USE_OS_KEIL GFXOFF

// Enable generic CMSIS RTOS implementation
#undef GFX_USE_OS_CMSIS
#define GFX_USE_OS_CMSIS GFXON
#include "gos_cmsis.h"

#endif /* GFX_USE_OS_KEIL */
#endif /* _GOS_KEIL_H */