diff options
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/platforms/STM32/hal_lld.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32/hal_lld.h b/os/hal/platforms/STM32/hal_lld.h index fc29c2824..455a65b32 100644 --- a/os/hal/platforms/STM32/hal_lld.h +++ b/os/hal/platforms/STM32/hal_lld.h @@ -27,6 +27,16 @@ #ifndef _HAL_LLD_H_
#define _HAL_LLD_H_
+/*
+ * Tricks required to make the TRUE/FALSE declaration inside the library
+ * compatible.
+ */
+#undef FALSE
+#undef TRUE
+#include <stm32f10x.h>
+#define FALSE 0
+#define TRUE (!FALSE)
+
#include "nvic.h"
#include "stm32_dma.h"
|