aboutsummaryrefslogtreecommitdiffstats
path: root/boards/base/STM32F429i-Discovery/stm32f4xx_fmc.c
diff options
context:
space:
mode:
Diffstat (limited to 'boards/base/STM32F429i-Discovery/stm32f4xx_fmc.c')
-rw-r--r--boards/base/STM32F429i-Discovery/stm32f4xx_fmc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/boards/base/STM32F429i-Discovery/stm32f4xx_fmc.c b/boards/base/STM32F429i-Discovery/stm32f4xx_fmc.c
index 10e73262..6b98954d 100644
--- a/boards/base/STM32F429i-Discovery/stm32f4xx_fmc.c
+++ b/boards/base/STM32F429i-Discovery/stm32f4xx_fmc.c
@@ -33,11 +33,15 @@
*/
/* Includes ------------------------------------------------------------------*/
-#include "stm32f4xx_fmc.h"
#include "ch.h"
+#include "stm32f4xx_fmc.h"
//#include "stm32f4xx_rcc.h"
-#define assert_param(expr) chDbgAssert(expr,"STPeriph FMC","")
+#if CH_KERNEL_MAJOR == 3
+ #define assert_param(expr) chDbgAssert(expr,"STPeriph FMC")
+#else
+ #define assert_param(expr) chDbgAssert(expr,"STPeriph FMC","")
+#endif
/** @addtogroup STM32F4xx_StdPeriph_Driver
* @{