diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-10-01 15:35:45 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-10-01 15:35:45 +0000 |
commit | cc4086a86c9920fb7deb83ab204fccf2e4869803 (patch) | |
tree | e1a57824f6264110683232dd053e33f9b0b37d64 /os | |
parent | 96edef9ffa93860bea6fb1f0ff9abdb131a74492 (diff) | |
download | ChibiOS-cc4086a86c9920fb7deb83ab204fccf2e4869803.tar.gz ChibiOS-cc4086a86c9920fb7deb83ab204fccf2e4869803.tar.bz2 ChibiOS-cc4086a86c9920fb7deb83ab204fccf2e4869803.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6343 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/ports/STM32F4xx/hal_lld.h | 9 |
1 files changed, 8 insertions, 1 deletions
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.
|