aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmaple/include/libmaple/fsmc.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/libmaple/include/libmaple/fsmc.h b/libmaple/include/libmaple/fsmc.h
index 95b0d3a..a83f7ab 100644
--- a/libmaple/include/libmaple/fsmc.h
+++ b/libmaple/include/libmaple/fsmc.h
@@ -41,8 +41,11 @@ extern "C"{
#endif
#include <libmaple/libmaple_types.h>
+#include <libmaple/stm32.h>
-#ifdef STM32_HIGH_DENSITY
+#if !STM32_HAVE_FSMC
+#error "FSMC is unavailable on your MCU"
+#endif
/*
* Register maps and devices
@@ -307,8 +310,6 @@ static inline void fsmc_nor_psram_set_addset(fsmc_nor_psram_reg_map *regs,
regs->BTR |= addset & 0xF;
}
-#endif /* STM32_HIGH_DENSITY */
-
#ifdef __cplusplus
} /* extern "C" */
#endif