diff options
author | inmarket <andrewh@inmarket.com.au> | 2018-02-27 17:44:21 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2018-02-27 17:44:21 +1000 |
commit | f265924396167729e8d9fb36a0383263f36c1270 (patch) | |
tree | 28843eb24b18999cf0217ecb0fe935f133901066 /src/gos/gos_chibios.h | |
parent | 14786e97b618b8bc2a0ff1c732d45288fe550e33 (diff) | |
download | uGFX-f265924396167729e8d9fb36a0383263f36c1270.tar.gz uGFX-f265924396167729e8d9fb36a0383263f36c1270.tar.bz2 uGFX-f265924396167729e8d9fb36a0383263f36c1270.zip |
First set of V3 macro changes
Diffstat (limited to 'src/gos/gos_chibios.h')
-rw-r--r-- | src/gos/gos_chibios.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/gos/gos_chibios.h b/src/gos/gos_chibios.h index aedfb492..cb683631 100644 --- a/src/gos/gos_chibios.h +++ b/src/gos/gos_chibios.h @@ -10,10 +10,13 @@ #if GFX_USE_OS_CHIBIOS -// This shouldn't be needed but some people are complaining -// about TRUE/FALSE redefinition so we fix it here. -#undef TRUE -#undef FALSE +#if GFX_COMPAT_V2 + // This shouldn't be needed but some people are complaining + // about TRUE/FALSE redefinition so we fix it here. + // ChibiOS will define them in its own header files. + #undef TRUE + #undef FALSE +#endif #include "ch.h" #include "hal.h" @@ -33,12 +36,6 @@ * are already defined by ChibiOS */ -#if !defined(FALSE) - #define FALSE 0 -#endif -#if !defined(TRUE) - #define TRUE -1 -#endif #if (CH_KERNEL_MAJOR == 3) || (CH_KERNEL_MAJOR == 4) typedef char bool_t; #endif |