diff options
Diffstat (limited to 'ports')
-rw-r--r-- | ports/ARMCM3-STM32F103/ioports_lld.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ports/ARMCM3-STM32F103/ioports_lld.h b/ports/ARMCM3-STM32F103/ioports_lld.h index 05d71831d..2194c3869 100644 --- a/ports/ARMCM3-STM32F103/ioports_lld.h +++ b/ports/ARMCM3-STM32F103/ioports_lld.h @@ -27,8 +27,16 @@ #ifndef _IOPORTS_LLD_H_
#define _IOPORTS_LLD_H_
+/*
+ * Tricks required to make the TRUE/FALSE declaration inside the library
+ * compatible.
+ */
#ifndef __STM32F10x_MAP_H
+#undef FALSE
+#undef TRUE
#include "stm32f10x_map.h"
+#define FALSE 0
+#define TRUE (!FALSE)
#endif
/*===========================================================================*/
|