aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-12-02 17:20:59 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-12-02 17:20:59 +0000
commit732268a2148db0771034af243ffbeac658fc4942 (patch)
tree1818173ee62e531e31ea10ff9e083dd0e0ccba1c /os/hal
parent01e1216f5e175166041820b67d1abafb81ae5c16 (diff)
downloadChibiOS-732268a2148db0771034af243ffbeac658fc4942.tar.gz
ChibiOS-732268a2148db0771034af243ffbeac658fc4942.tar.bz2
ChibiOS-732268a2148db0771034af243ffbeac658fc4942.zip
Added F303 mcuconf.h generator.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12458 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/ports/STM32/STM32F3xx/hal_lld.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/STM32F3xx/hal_lld.h b/os/hal/ports/STM32/STM32F3xx/hal_lld.h
index a3b1f3d11..db1d436f3 100644
--- a/os/hal/ports/STM32/STM32F3xx/hal_lld.h
+++ b/os/hal/ports/STM32/STM32F3xx/hal_lld.h
@@ -572,6 +572,13 @@
#error "Using a wrong mcuconf.h file, STM32F3xx_MCUCONF not defined"
#endif
+/* Only some devices have strongly checked mcuconf.h files. Others will be
+ added gradually.*/
+#if (defined(STM32F303xC) || defined(STM32F303xE)) && \
+ !defined(STM32F303_MCUCONF)
+#error "Using a wrong mcuconf.h file, STM32F303_MCUCONF not defined"
+#endif
+
/*
* HSI related checks.
*/