aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmaple/stm32f1/include/series/stm32.h3
-rw-r--r--libmaple/stm32f2/include/series/stm32.h2
2 files changed, 2 insertions, 3 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
/*
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