From cc4086a86c9920fb7deb83ab204fccf2e4869803 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 1 Oct 2013 15:35:45 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6343 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32F4xx/hal_lld.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'os/hal/ports') diff --git a/os/hal/ports/STM32F4xx/hal_lld.h b/os/hal/ports/STM32F4xx/hal_lld.h index 076c621b7..349adc704 100644 --- a/os/hal/ports/STM32F4xx/hal_lld.h +++ b/os/hal/ports/STM32F4xx/hal_lld.h @@ -54,7 +54,7 @@ */ #if defined(STM32F40XX) || defined(__DOXYGEN__) #define PLATFORM_NAME "STM32F40x/STM32F41x High Performance" -#if defined(STM32F42XX) +#elif defined(STM32F42XX) #define PLATFORM_NAME "STM32F42x/STM32F43x High Performance" #else /* !defined(STM32F40XX) */ #define PLATFORM_NAME "STM32F2xx High Performance" @@ -567,6 +567,13 @@ /* Derived constants and error checks. */ /*===========================================================================*/ +/* + * MCU variant check. + */ +#if defined(STM32F42XX) +#error "unsupported STM32F4XX variant" +#endif + #if defined(STM32F40XX) || defined(__DOXYGEN__) /* * Configuration-related checks. -- cgit v1.2.3