aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/SPC560BCxx
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-12-11 10:27:10 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-12-11 10:27:10 +0000
commit456ddf784d7bc6fe7c88446faa8bac759078d019 (patch)
tree6aec83a3f121bc25cf14c3b7794941048aad00ac /os/hal/platforms/SPC560BCxx
parentbeb5f4e03ebaaa196009c41fbb4d9e2c7bc3a14d (diff)
downloadChibiOS-456ddf784d7bc6fe7c88446faa8bac759078d019.tar.gz
ChibiOS-456ddf784d7bc6fe7c88446faa8bac759078d019.tar.bz2
ChibiOS-456ddf784d7bc6fe7c88446faa8bac759078d019.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4900 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/SPC560BCxx')
-rw-r--r--os/hal/platforms/SPC560BCxx/hal_lld.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/os/hal/platforms/SPC560BCxx/hal_lld.h b/os/hal/platforms/SPC560BCxx/hal_lld.h
index 27103dfef..6cc920c6e 100644
--- a/os/hal/platforms/SPC560BCxx/hal_lld.h
+++ b/os/hal/platforms/SPC560BCxx/hal_lld.h
@@ -593,6 +593,13 @@
/* Derived constants and error checks. */
/*===========================================================================*/
+/*
+ * Configuration-related checks.
+ */
+#if !defined(SPC560BCxx_MCUCONF)
+#error "Using a wrong mcuconf.h file, SPC560BCxx_MCUCONF not defined"
+#endif
+
/* Check on the XOSC frequency.*/
#if (SPC5_XOSC_CLK < SPC5_XOSC_CLK_MIN) || \
(SPC5_XOSC_CLK > SPC5_XOSC_CLK_MAX)