diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2019-01-21 21:15:25 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2019-01-21 21:15:25 +0000 |
commit | 4843579571cdbead612a27b7188c7020cd01b231 (patch) | |
tree | 54c46788953b74446f6517798e5864c1ee856e4d /os/hal/include | |
parent | e351308f44bb293075c1ba40d1757047ee644874 (diff) | |
download | ChibiOS-4843579571cdbead612a27b7188c7020cd01b231.tar.gz ChibiOS-4843579571cdbead612a27b7188c7020cd01b231.tar.bz2 ChibiOS-4843579571cdbead612a27b7188c7020cd01b231.zip |
Added an hard check on halconf.c.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12576 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal/include')
-rw-r--r-- | os/hal/include/hal.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/os/hal/include/hal.h b/os/hal/include/hal.h index 5b9f7e889..8b1becf6f 100644 --- a/os/hal/include/hal.h +++ b/os/hal/include/hal.h @@ -50,10 +50,6 @@ #define HAL_USE_DAC FALSE
#endif
-#if !defined(HAL_USE_EXT)
-#define HAL_USE_ETX FALSE
-#endif
-
#if !defined(HAL_USE_GPT)
#define HAL_USE_GPT FALSE
#endif
@@ -231,6 +227,15 @@ /* Derived constants and error checks. */
/*===========================================================================*/
+/* Configuration file checks.*/
+#if !defined(_CHIBIOS_HAL_CONF_)
+#error "invalid configuration file"
+#endif
+
+#if !defined(_CHIBIOS_HAL_CONF_VER_7_0_)
+#error "obsolete or unknown configuration file"
+#endif
+
/*===========================================================================*/
/* Driver data structures and types. */
/*===========================================================================*/
|