diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2012-03-26 17:06:21 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2012-04-11 16:56:55 -0400 |
commit | 9762659a16011a2e78665dffd11e5ef6ac928d8f (patch) | |
tree | c27765ec4b380dc94edaf7cf757b127c7ab9e0b7 /libmaple | |
parent | c997dcd4f4d4c1a2cba55dc4bb5998e3ec3e03da (diff) | |
download | librambutan-9762659a16011a2e78665dffd11e5ef6ac928d8f.tar.gz librambutan-9762659a16011a2e78665dffd11e5ef6ac928d8f.zip |
fsmc.h: Use STM32_HAVE_FSMC feature-test macro.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple')
-rw-r--r-- | libmaple/include/libmaple/fsmc.h | 7 |
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 |