aboutsummaryrefslogtreecommitdiffstats
path: root/boards/base/STM32F429i-Discovery/stm32f4xx_fmc.h
diff options
context:
space:
mode:
Diffstat (limited to 'boards/base/STM32F429i-Discovery/stm32f4xx_fmc.h')
-rw-r--r--boards/base/STM32F429i-Discovery/stm32f4xx_fmc.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/boards/base/STM32F429i-Discovery/stm32f4xx_fmc.h b/boards/base/STM32F429i-Discovery/stm32f4xx_fmc.h
index 3764c794..1196f135 100644
--- a/boards/base/STM32F429i-Discovery/stm32f4xx_fmc.h
+++ b/boards/base/STM32F429i-Discovery/stm32f4xx_fmc.h
@@ -28,12 +28,20 @@
extern "C" {
#endif
-//FIXME this should not be needed
+// HACKS to fix portability issues.
#define STM32F429_439xx
/* Includes ------------------------------------------------------------------*/
#include "stm32f4xx.h"
+// More HACKS to fix portability issues.
+#if !defined(FMC_Bank2) && !defined(FMC_Bank3)
+ #define FMC_Bank2 FMC_Bank2_3
+ #define FMC_Bank3 FMC_Bank2_3
+#endif
+
+
+
/** @addtogroup STM32F4xx_StdPeriph_Driver
* @{
*/