From 9ffadc10ab4afe50833915e9c2df0c87a4ceb718 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Mon, 2 Mar 2015 23:57:13 -0800 Subject: stm32f4: don't try to build FSMC and Timers that hardware doesn't support --- libmaple/stm32f2-f4/fsmc.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libmaple/stm32f2-f4/fsmc.c') diff --git a/libmaple/stm32f2-f4/fsmc.c b/libmaple/stm32f2-f4/fsmc.c index ec41720..4ee23fa 100644 --- a/libmaple/stm32f2-f4/fsmc.c +++ b/libmaple/stm32f2-f4/fsmc.c @@ -30,6 +30,10 @@ * @brief STM32F2 FSMC support. */ +#include + +#if STM32_HAVE_FSMC /* Don't try building the rest for MCUs without FSMC */ + #include #include @@ -88,3 +92,5 @@ void fsmc_sram_init_gpios(void) { CONFIG_GPIO(GPIOE, 0); CONFIG_GPIO(GPIOE, 1); } + +#endif /* STM32_HAVE_FSMC */ -- cgit v1.2.3