aboutsummaryrefslogtreecommitdiffstats
path: root/boards/base/STM32F429i-Discovery/stm32f4xx_fmc.c
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2014-12-31 12:28:10 +1000
committerinmarket <andrewh@inmarket.com.au>2014-12-31 12:28:10 +1000
commit57c14b74e4d2bca53a02b58bbe4c4aafc868e187 (patch)
treeffa37c22d412e8252a37342af9bbb99a82fc0c42 /boards/base/STM32F429i-Discovery/stm32f4xx_fmc.c
parenta5b80da2077047ddee8e8c75d84b2d2b156f8f2d (diff)
downloaduGFX-57c14b74e4d2bca53a02b58bbe4c4aafc868e187.tar.gz
uGFX-57c14b74e4d2bca53a02b58bbe4c4aafc868e187.tar.bz2
uGFX-57c14b74e4d2bca53a02b58bbe4c4aafc868e187.zip
Add Chibios v3 example files for the STM32F429iDiscovery board.
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
* @{