diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2012-06-05 15:23:51 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2012-06-07 03:38:29 -0400 |
commit | bc6d7181b8fe73fb4f7343a6eeec3da9342bc1fc (patch) | |
tree | bd6d7fc5c4b28d4438efafc184d91a57a0155bb3 /libmaple/stm32f2 | |
parent | 89f375949b3df609b489d14b961940e4fed31038 (diff) | |
download | librambutan-bc6d7181b8fe73fb4f7343a6eeec3da9342bc1fc.tar.gz librambutan-bc6d7181b8fe73fb4f7343a6eeec3da9342bc1fc.zip |
stm32.h: Soften "missing MCU" errors into warnings.
It's not important whether the MCU is specified. What's important is
that <libmaple/stm32.h> gets everything it needs -- which it now
ensures that it does. Requiring people to do things on a per-MCU basis
hurts hackability and is just asking for trouble.
On the other hand, it's nice to provide a clue as to why
<libmaple/stm32.h> might be giving #errors, so do leave the
warnings. People can always hack the header to shut them up if they
want.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple/stm32f2')
-rw-r--r-- | libmaple/stm32f2/include/series/stm32.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmaple/stm32f2/include/series/stm32.h b/libmaple/stm32f2/include/series/stm32.h index 2c389ab..180ab30 100644 --- a/libmaple/stm32f2/include/series/stm32.h +++ b/libmaple/stm32f2/include/series/stm32.h @@ -67,7 +67,7 @@ extern "C" { # define STM32_TIMER_MASK 0x7FFE /* TIMER1-TIMER14. */ # define STM32_SRAM_END ((void*)0x20020000) #else -#error "Unrecognized STM32F2 MCU, or no MCU specified." +#warning "Unsupported or unspecified STM32F2 MCU." #endif #ifdef __cplusplus |