aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/stm32f1
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-06-05 15:23:51 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-06-07 03:38:29 -0400
commitbc6d7181b8fe73fb4f7343a6eeec3da9342bc1fc (patch)
treebd6d7fc5c4b28d4438efafc184d91a57a0155bb3 /libmaple/stm32f1
parent89f375949b3df609b489d14b961940e4fed31038 (diff)
downloadlibrambutan-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/stm32f1')
-rw-r--r--libmaple/stm32f1/include/series/stm32.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/libmaple/stm32f1/include/series/stm32.h b/libmaple/stm32f1/include/series/stm32.h
index e793a10..f6e96f8 100644
--- a/libmaple/stm32f1/include/series/stm32.h
+++ b/libmaple/stm32f1/include/series/stm32.h
@@ -99,8 +99,7 @@ extern "C" {
# define STM32_MEDIUM_DENSITY
#else
-#error "Unrecognized STM32F1 MCU, or no MCU specified. Add something like " \
- "-DMCU_STM32F103RB to your compiler arguments."
+#warning "Unsupported or unspecified STM32F1 MCU."
#endif
/*