aboutsummaryrefslogtreecommitdiff
path: root/hal_io_fmc.c
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2016-05-24 21:37:39 -0400
committerPaul Selkirk <paul@psgd.org>2016-05-24 21:37:39 -0400
commitd20ac4036667e9cbf41c4a8011e53ca53a5a2a64 (patch)
tree905a5cbdf1c6fa5114ab11932ae7550b935c0599 /hal_io_fmc.c
parent8a168b38da2114e5c9f5f5e0c719672021bab17b (diff)
Work around the fact that stm-fmc.h now pulls in CMSIS HAL symbols.
Diffstat (limited to 'hal_io_fmc.c')
-rw-r--r--hal_io_fmc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hal_io_fmc.c b/hal_io_fmc.c
index 9dd3578..5742e56 100644
--- a/hal_io_fmc.c
+++ b/hal_io_fmc.c
@@ -37,6 +37,10 @@
#include <stdint.h>
#include "stm-fmc.h"
+
+/* stm32f4xx_hal_def.h and hal.h both define HAL_OK as an enum value */
+#define HAL_OK HAL_OKAY
+
#include "hal.h"
#include "hal_internal.h"