From 4843579571cdbead612a27b7188c7020cd01b231 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Mon, 21 Jan 2019 21:15:25 +0000 Subject: 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 --- os/hal/include/hal.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'os/hal') 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. */ /*===========================================================================*/ -- cgit v1.2.3