From bc6d7181b8fe73fb4f7343a6eeec3da9342bc1fc Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Tue, 5 Jun 2012 15:23:51 -0400 Subject: stm32.h: Soften "missing MCU" errors into warnings. It's not important whether the MCU is specified. What's important is that 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 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 --- libmaple/stm32f1/include/series/stm32.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libmaple/stm32f1/include') 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 /* -- cgit v1.2.3