aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdemos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/chconf.h1
-rw-r--r--demos/AVR/NIL-ARDUINO-MEGA/chconf.h1
-rw-r--r--demos/AVR/NIL-ARDUINO-MINI/chconf.h1
-rw-r--r--demos/AVR/NIL-ARDUINO-NANO/chconf.h1
-rw-r--r--demos/AVR/NIL-ARDUINO-UNO/chconf.h1
-rw-r--r--demos/AVR/NIL-DIGISPARK-ATTINY-167/chconf.h1
-rw-r--r--demos/AVR/NIL-MT-DB-X4/chconf.h1
-rw-r--r--demos/AVR/RT-ARDUINO-LEONARDO/chconf.h3
-rw-r--r--demos/AVR/RT-ARDUINO-MEGA/chconf.h1
-rw-r--r--demos/AVR/RT-ARDUINO-MINI/chconf.h1
-rw-r--r--demos/AVR/RT-ARDUINO-NANO/chconf.h1
-rw-r--r--demos/AVR/RT-ARDUINO-UNO/chconf.h1
-rw-r--r--demos/AVR/RT-DIGISPARK-ATTINY-167/chconf.h1
-rw-r--r--demos/AVR/RT-MT-DB-X4/chconf.h1
-rw-r--r--demos/AVR/RT-PRO-MICRO/chconf.h3
-rw-r--r--demos/AVR/RT-TEENSY2-USB/chconf.h3
-rw-r--r--demos/LPC21xx/RT-LPC214x-OLIMEX/chconf.h1
-rw-r--r--demos/SPC5/NIL-SPC560D-EVB/chconf.h1
-rw-r--r--demos/SPC5/RT-SPC560B-EVB/chconf.h1
-rw-r--r--demos/SPC5/RT-SPC560D-EVB/chconf.h1
-rw-r--r--demos/SPC5/RT-SPC560P-EVB/chconf.h1
-rw-r--r--demos/SPC5/RT-SPC563M-EVB/chconf.h1
-rw-r--r--demos/SPC5/RT-SPC564A-EVB/chconf.h1
-rw-r--r--demos/SPC5/RT-SPC56EC-EVB/chconf.h1
-rw-r--r--demos/SPC5/RT-SPC56EL-EVB/chconf.h1
-rw-r--r--demos/STM32/CMSIS-STM32F407-DISCOVERY/chconf.h1
-rw-r--r--demos/STM32/NASA-OSAL-STM32F407-DISCOVERY/chconf.h1
-rw-r--r--demos/STM32/NASA-OSAL-STM32F746G-DISCOVERY/chconf.h1
-rw-r--r--demos/STM32/NIL-STM32F051-DISCOVERY/chconf.h1
-rw-r--r--demos/STM32/NIL-STM32F100-DISCOVERY/chconf.h1
-rw-r--r--demos/STM32/NIL-STM32F303-DISCOVERY/chconf.h1
-rw-r--r--demos/STM32/NIL-STM32F373-STM32373C_EVAL/chconf.h1
-rw-r--r--demos/STM32/NIL-STM32F746G-DISCOVERY/chconf.h1
-rw-r--r--demos/STM32/NIL-STM32L011K4-NUCLEO32/chconf.h1
-rw-r--r--demos/STM32/NIL-STM32L152-DISCOVERY/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F030R8-NUCLEO64/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F031K6-NUCLEO32/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F042K6-NUCLEO32/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F051-DISCOVERY/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F070RB-NUCLEO64/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F072-DISCOVERY/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F072RB-NUCLEO64/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F091RC-NUCLEO64/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F100-DISCOVERY/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F103-MAPLEMINI/chconf.h1
-rwxr-xr-xdemos/STM32/RT-STM32F103-OLIMEX_STM32_P103-FATFS/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F103-OLIMEX_STM32_P103/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F103-STM3210E_EVAL-FATFS-USB/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F103RB-NUCLEO64/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F103_INEMO_DISCOVERY/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F107-OLIMEX_P107-LWIP/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F207-DISCOVERY/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F207ZG-NUCLEO144/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F302R8-NUCLEO64/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F303-DISCOVERY-REVC/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F303-DISCOVERY/chconf.h9
-rw-r--r--demos/STM32/RT-STM32F303K8-NUCLEO32/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F303RE-NUCLEO64/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F303ZE-NUCLEO144/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F334-DISCOVERY/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F334R8-NUCLEO64/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F373-STM32373C_EVAL/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F401C-DISCOVERY/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F401RE-NUCLEO64/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F407-DISCOVERY-G++/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F407-DISCOVERY/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F407-OLIMEX_E407-LWIP-FATFS-USB/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F410RB-NUCLEO64/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F411RE-NUCLEO64/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F412ZG-NUCLEO144/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F429-DISCOVERY/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F429ZI-NUCLEO144/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F446RE-NUCLEO64/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F446ZE-NUCLEO144/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F469I-DISCOVERY/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F746G-DISCOVERY-LWIP-FATFS-USB/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F746G-DISCOVERY/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F746ZG-NUCLEO144/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F767ZI-NUCLEO144/chconf.h1
-rw-r--r--demos/STM32/RT-STM32F769I-DISCOVERY/chconf.h1
-rw-r--r--demos/STM32/RT-STM32L031K6-NUCLEO32/chconf.h1
-rw-r--r--demos/STM32/RT-STM32L053-DISCOVERY/chconf.h1
-rw-r--r--demos/STM32/RT-STM32L053R8-NUCLEO64/chconf.h1
-rw-r--r--demos/STM32/RT-STM32L073RZ-NUCLEO64/chconf.h1
-rw-r--r--demos/STM32/RT-STM32L152-DISCOVERY/chconf.h1
-rw-r--r--demos/STM32/RT-STM32L152RE-NUCLEO64/chconf.h1
-rw-r--r--demos/STM32/RT-STM32L432KC-NUCLEO32/chconf.h1
-rw-r--r--demos/STM32/RT-STM32L476-DISCOVERY/chconf.h1
-rw-r--r--demos/STM32/RT-STM32L476RG-NUCLEO64/chconf.h1
-rw-r--r--demos/various/NIL-ARMCM0-GENERIC/chconf.h1
-rw-r--r--demos/various/NIL-ARMCM4-GENERIC/chconf.h1
-rw-r--r--demos/various/RT-ARM7-GENERIC/chconf.h1
-rw-r--r--demos/various/RT-ARMCM0-GENERIC/chconf.h1
-rw-r--r--demos/various/RT-ARMCM4-GENERIC/chconf.h1
-rwxr-xr-xdemos/various/RT-Posix-Simulator/chconf.h1
-rw-r--r--demos/various/RT-Win32-Simulator/chconf.h1
-rw-r--r--os/nil/templates/chconf.h1
-rw-r--r--os/rt/include/ch.h4
-rw-r--r--os/rt/templates/chconf.h1
-rw-r--r--readme.txt3
-rw-r--r--test/nil/testbuild/chconf.h1
-rw-r--r--test/rt/testbuild/chconf.h1
-rw-r--r--testex/STM32/STM32F3xx/I2C-LSM303DLHC/chconf.h1
-rw-r--r--testex/STM32/STM32F3xx/SPI-L3GD20/chconf.h1
-rw-r--r--testex/STM32/STM32F3xx/SPI-N25Q128/chconf.h1
-rw-r--r--testex/STM32/STM32F4xx/I2C-BMP085/chconf.h1
-rw-r--r--testex/STM32/STM32F4xx/I2C-HTS221/chconf.h1
-rw-r--r--testex/STM32/STM32F4xx/I2C-LIS3MLD/chconf.h1
-rw-r--r--testex/STM32/STM32F4xx/I2C-LPS25H/chconf.h1
-rw-r--r--testex/STM32/STM32F4xx/I2C-LSM303DLHC/chconf.h1
-rw-r--r--testex/STM32/STM32F4xx/I2C-LSM6DS0/chconf.h1
-rw-r--r--testex/STM32/STM32F4xx/SPI-L3GD20/chconf.h1
-rw-r--r--testex/STM32/STM32F4xx/SPI-LIS302DL/chconf.h1
-rw-r--r--testex/STM32/STM32F4xx/SPI-LIS3DSH/chconf.h1
-rw-r--r--testex/STM32/STM32L4xx/I2C-LIS3MLD/chconf.h1
-rw-r--r--testex/STM32/STM32L4xx/I2C-LSM6DS0/chconf.h1
-rw-r--r--testex/STM32/STM32L4xx/QSPI-N25Q128/chconf.h1
-rw-r--r--testex/STM32/STM32L4xx/SPI-L3GD20/chconf.h1
-rw-r--r--testhal/AVR/MEGA/ADC/chconf.h1
-rw-r--r--testhal/AVR/MEGA/EXT/chconf.h1
-rw-r--r--testhal/AVR/MEGA/GPT/chconf.h1
-rw-r--r--testhal/AVR/MEGA/I2C/chconf.h1
-rw-r--r--testhal/AVR/MEGA/PWM/chconf.h1
-rw-r--r--testhal/AVR/MEGA/SPI/chconf.h1
-rw-r--r--testhal/AVR/multi/PAL/cfg-arduino_mega/chconf.h1
-rw-r--r--testhal/AVR/multi/PAL/cfg-arduino_mini/chconf.h1
-rw-r--r--testhal/AVR/multi/PAL/cfg-arduino_nano/chconf.h1
-rw-r--r--testhal/AVR/multi/PAL/cfg-arduino_uno/chconf.h1
-rw-r--r--testhal/STM32/STM32F0xx/ADC/chconf.h1
-rw-r--r--testhal/STM32/STM32F0xx/CAN/chconf.h1
-rw-r--r--testhal/STM32/STM32F0xx/EXT/chconf.h1
-rw-r--r--testhal/STM32/STM32F0xx/IRQ_STORM/chconf.h1
-rw-r--r--testhal/STM32/STM32F0xx/PWM-ICU/chconf.h1
-rw-r--r--testhal/STM32/STM32F0xx/SPI/chconf.h1
-rw-r--r--testhal/STM32/STM32F0xx/UART/chconf.h1
-rw-r--r--testhal/STM32/STM32F0xx/USB_CDC/chconf.h1
-rw-r--r--testhal/STM32/STM32F0xx/WDG/chconf.h1
-rw-r--r--testhal/STM32/STM32F1xx/ADC/chconf.h1
-rw-r--r--testhal/STM32/STM32F1xx/CAN/chconf.h1
-rw-r--r--testhal/STM32/STM32F1xx/EXT/chconf.h1
-rw-r--r--testhal/STM32/STM32F1xx/I2C/chconf.h1
-rw-r--r--testhal/STM32/STM32F1xx/IRQ_STORM/chconf.h1
-rw-r--r--testhal/STM32/STM32F1xx/PWM-ICU/chconf.h1
-rw-r--r--testhal/STM32/STM32F1xx/RTC/chconf.h1
-rw-r--r--testhal/STM32/STM32F1xx/SPI/chconf.h1
-rw-r--r--testhal/STM32/STM32F1xx/UART/chconf.h1
-rw-r--r--testhal/STM32/STM32F1xx/USB_CDC/chconf.h1
-rw-r--r--testhal/STM32/STM32F1xx/USB_CDC_F107/chconf.h1
-rw-r--r--testhal/STM32/STM32F2xx/EXT/chconf.h1
-rw-r--r--testhal/STM32/STM32F2xx/PWM-ICU/chconf.h1
-rw-r--r--testhal/STM32/STM32F2xx/USB_CDC/chconf.h1
-rw-r--r--testhal/STM32/STM32F37x/ADC/chconf.h1
-rw-r--r--testhal/STM32/STM32F37x/CAN/chconf.h1
-rw-r--r--testhal/STM32/STM32F37x/EXT/chconf.h1
-rw-r--r--testhal/STM32/STM32F37x/I2C/chconf.h1
-rw-r--r--testhal/STM32/STM32F37x/IRQ_STORM/chconf.h1
-rw-r--r--testhal/STM32/STM32F37x/PWM-ICU/chconf.h1
-rw-r--r--testhal/STM32/STM32F37x/SDADC/chconf.h1
-rw-r--r--testhal/STM32/STM32F37x/SPI/chconf.h1
-rw-r--r--testhal/STM32/STM32F37x/UART/chconf.h1
-rw-r--r--testhal/STM32/STM32F37x/USB_CDC/chconf.h1
-rw-r--r--testhal/STM32/STM32F3xx/ADC/chconf.h1
-rw-r--r--testhal/STM32/STM32F3xx/ADC_DUAL/chconf.h1
-rw-r--r--testhal/STM32/STM32F3xx/CAN/chconf.h1
-rw-r--r--testhal/STM32/STM32F3xx/DAC/chconf.h1
-rw-r--r--testhal/STM32/STM32F3xx/EXT/chconf.h1
-rw-r--r--testhal/STM32/STM32F3xx/IRQ_STORM/chconf.h1
-rw-r--r--testhal/STM32/STM32F3xx/PWM-ICU/chconf.h1
-rw-r--r--testhal/STM32/STM32F3xx/SPI/chconf.h1
-rw-r--r--testhal/STM32/STM32F3xx/UART/chconf.h1
-rw-r--r--testhal/STM32/STM32F3xx/USB_CDC/chconf.h1
-rw-r--r--testhal/STM32/STM32F3xx/USB_CDC_IAD/chconf.h1
-rw-r--r--testhal/STM32/STM32F3xx/WDG/chconf.h1
-rw-r--r--testhal/STM32/STM32F4xx/ADC/chconf.h1
-rw-r--r--testhal/STM32/STM32F4xx/CAN/chconf.h1
-rw-r--r--testhal/STM32/STM32F4xx/DAC/chconf.h1
-rw-r--r--testhal/STM32/STM32F4xx/DAC_DUAL/chconf.h1
-rw-r--r--testhal/STM32/STM32F4xx/DMA_STORM/chconf.h1
-rw-r--r--testhal/STM32/STM32F4xx/EXT/chconf.h1
-rw-r--r--testhal/STM32/STM32F4xx/GPT/chconf.h1
-rw-r--r--testhal/STM32/STM32F4xx/I2C/chconf.h1
-rw-r--r--testhal/STM32/STM32F4xx/I2S/chconf.h1
-rw-r--r--testhal/STM32/STM32F4xx/IRQ_STORM/chconf.h1
-rw-r--r--testhal/STM32/STM32F4xx/IRQ_STORM_FPU/chconf.h1
-rw-r--r--testhal/STM32/STM32F4xx/PWM-ICU/chconf.h1
-rw-r--r--testhal/STM32/STM32F4xx/RTC/chconf.h1
-rw-r--r--testhal/STM32/STM32F4xx/SDC/chconf.h1
-rw-r--r--testhal/STM32/STM32F4xx/SPI/chconf.h1
-rw-r--r--testhal/STM32/STM32F4xx/UART/chconf.h1
-rw-r--r--testhal/STM32/STM32F4xx/USB_CDC/chconf.h1
-rw-r--r--testhal/STM32/STM32F4xx/USB_CDC_IAD/chconf.h1
-rw-r--r--testhal/STM32/STM32F4xx/WDG/chconf.h1
-rw-r--r--testhal/STM32/STM32F7xx/GPT-ADC/chconf.h1
-rw-r--r--testhal/STM32/STM32F7xx/IRQ_STORM/chconf.h1
-rw-r--r--testhal/STM32/STM32F7xx/PWM-ICU/chconf.h1
-rw-r--r--testhal/STM32/STM32F7xx/SPI/chconf.h1
-rw-r--r--testhal/STM32/STM32F7xx/USB_CDC/chconf.h1
-rw-r--r--testhal/STM32/STM32F7xx/USB_RAW/chconf.h1
-rw-r--r--testhal/STM32/STM32L0xx/ADC/chconf.h1
-rw-r--r--testhal/STM32/STM32L0xx/EXT/chconf.h1
-rw-r--r--testhal/STM32/STM32L0xx/SPI/chconf.h1
-rw-r--r--testhal/STM32/STM32L0xx/USB_CDC/chconf.h1
-rw-r--r--testhal/STM32/STM32L1xx/ADC/chconf.h1
-rw-r--r--testhal/STM32/STM32L1xx/DAC/chconf.h1
-rw-r--r--testhal/STM32/STM32L1xx/EXT/chconf.h1
-rw-r--r--testhal/STM32/STM32L1xx/IRQ_STORM/chconf.h1
-rw-r--r--testhal/STM32/STM32L1xx/PWM-ICU/chconf.h1
-rw-r--r--testhal/STM32/STM32L1xx/SPI/chconf.h1
-rw-r--r--testhal/STM32/STM32L1xx/UART/chconf.h1
-rw-r--r--testhal/STM32/STM32L4xx/ADC/chconf.h1
-rw-r--r--testhal/STM32/STM32L4xx/CAN/chconf.h1
-rw-r--r--testhal/STM32/STM32L4xx/EXT/chconf.h1
-rw-r--r--testhal/STM32/STM32L4xx/GPT-ADC/chconf.h1
-rw-r--r--testhal/STM32/STM32L4xx/IRQ_STORM/chconf.h1
-rw-r--r--testhal/STM32/STM32L4xx/USB_CDC/chconf.h1
-rw-r--r--testhal/STM32/multi/PAL/cfg-stm32f051_discovery/chconf.h1
-rwxr-xr-xtesthal/STM32/multi/PAL/cfg-stm32f103_olimex/chconf.h1
-rw-r--r--testhal/STM32/multi/PAL/cfg-stm32f303_discovery/chconf.h1
-rwxr-xr-xtesthal/STM32/multi/PAL/cfg-stm32f373_eval/chconf.h1
-rw-r--r--testhal/STM32/multi/PAL/cfg-stm32f407_discovery/chconf.h1
-rw-r--r--testhal/STM32/multi/PAL/cfg-stm32f429_discovery/chconf.h1
-rw-r--r--testhal/STM32/multi/PAL/cfg-stm32f746_discovery/chconf.h1
-rwxr-xr-xtesthal/STM32/multi/PAL/cfg-stm32l053_discovery/chconf.h1
-rwxr-xr-xtesthal/STM32/multi/PAL/cfg-stm32l151_discovery/chconf.h1
-rw-r--r--testhal/STM32/multi/PAL/cfg-stm32l476_discovery/chconf.h1
-rw-r--r--testhal/STM32/multi/SPI/cfg-stm32f091_nucleo64/chconf.h1
-rw-r--r--testhal/STM32/multi/USB_CDC/cfg-stm32f303_discovery/chconf.h1
-rw-r--r--testhal/STM32/multi/USB_CDC/cfg-stm32l476_discovery/chconf.h1
228 files changed, 242 insertions, 5 deletions
diff --git a/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/chconf.h b/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/chconf.h
index 48afd553e..0f15c09d8 100755
--- a/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/chconf.h
+++ b/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/AVR/NIL-ARDUINO-MEGA/chconf.h b/demos/AVR/NIL-ARDUINO-MEGA/chconf.h
index 18c4dec06..01280607c 100644
--- a/demos/AVR/NIL-ARDUINO-MEGA/chconf.h
+++ b/demos/AVR/NIL-ARDUINO-MEGA/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_NIL_CONF_
+#define _CHIBIOS_NIL_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/AVR/NIL-ARDUINO-MINI/chconf.h b/demos/AVR/NIL-ARDUINO-MINI/chconf.h
index 18c4dec06..01280607c 100644
--- a/demos/AVR/NIL-ARDUINO-MINI/chconf.h
+++ b/demos/AVR/NIL-ARDUINO-MINI/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_NIL_CONF_
+#define _CHIBIOS_NIL_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/AVR/NIL-ARDUINO-NANO/chconf.h b/demos/AVR/NIL-ARDUINO-NANO/chconf.h
index 18c4dec06..01280607c 100644
--- a/demos/AVR/NIL-ARDUINO-NANO/chconf.h
+++ b/demos/AVR/NIL-ARDUINO-NANO/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_NIL_CONF_
+#define _CHIBIOS_NIL_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/AVR/NIL-ARDUINO-UNO/chconf.h b/demos/AVR/NIL-ARDUINO-UNO/chconf.h
index 18c4dec06..01280607c 100644
--- a/demos/AVR/NIL-ARDUINO-UNO/chconf.h
+++ b/demos/AVR/NIL-ARDUINO-UNO/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_NIL_CONF_
+#define _CHIBIOS_NIL_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/AVR/NIL-DIGISPARK-ATTINY-167/chconf.h b/demos/AVR/NIL-DIGISPARK-ATTINY-167/chconf.h
index 45264dea7..df46e3e46 100644
--- a/demos/AVR/NIL-DIGISPARK-ATTINY-167/chconf.h
+++ b/demos/AVR/NIL-DIGISPARK-ATTINY-167/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_NIL_CONF_
+#define _CHIBIOS_NIL_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/AVR/NIL-MT-DB-X4/chconf.h b/demos/AVR/NIL-MT-DB-X4/chconf.h
index 4ba6922e7..e41e5e528 100644
--- a/demos/AVR/NIL-MT-DB-X4/chconf.h
+++ b/demos/AVR/NIL-MT-DB-X4/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_NIL_CONF_
+#define _CHIBIOS_NIL_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/AVR/RT-ARDUINO-LEONARDO/chconf.h b/demos/AVR/RT-ARDUINO-LEONARDO/chconf.h
index 0450d9e9c..0f06ba1a2 100644
--- a/demos/AVR/RT-ARDUINO-LEONARDO/chconf.h
+++ b/demos/AVR/RT-ARDUINO-LEONARDO/chconf.h
@@ -28,7 +28,8 @@
#ifndef CHCONF_H
#define CHCONF_H
-#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/AVR/RT-ARDUINO-MEGA/chconf.h b/demos/AVR/RT-ARDUINO-MEGA/chconf.h
index 5fa694a4a..1e506a0b6 100644
--- a/demos/AVR/RT-ARDUINO-MEGA/chconf.h
+++ b/demos/AVR/RT-ARDUINO-MEGA/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/AVR/RT-ARDUINO-MINI/chconf.h b/demos/AVR/RT-ARDUINO-MINI/chconf.h
index 5fa694a4a..1e506a0b6 100644
--- a/demos/AVR/RT-ARDUINO-MINI/chconf.h
+++ b/demos/AVR/RT-ARDUINO-MINI/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/AVR/RT-ARDUINO-NANO/chconf.h b/demos/AVR/RT-ARDUINO-NANO/chconf.h
index 5fa694a4a..1e506a0b6 100644
--- a/demos/AVR/RT-ARDUINO-NANO/chconf.h
+++ b/demos/AVR/RT-ARDUINO-NANO/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/AVR/RT-ARDUINO-UNO/chconf.h b/demos/AVR/RT-ARDUINO-UNO/chconf.h
index 5fa694a4a..1e506a0b6 100644
--- a/demos/AVR/RT-ARDUINO-UNO/chconf.h
+++ b/demos/AVR/RT-ARDUINO-UNO/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/AVR/RT-DIGISPARK-ATTINY-167/chconf.h b/demos/AVR/RT-DIGISPARK-ATTINY-167/chconf.h
index b918b2cf0..c27647197 100644
--- a/demos/AVR/RT-DIGISPARK-ATTINY-167/chconf.h
+++ b/demos/AVR/RT-DIGISPARK-ATTINY-167/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/AVR/RT-MT-DB-X4/chconf.h b/demos/AVR/RT-MT-DB-X4/chconf.h
index a3f86c688..f081c4969 100644
--- a/demos/AVR/RT-MT-DB-X4/chconf.h
+++ b/demos/AVR/RT-MT-DB-X4/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/AVR/RT-PRO-MICRO/chconf.h b/demos/AVR/RT-PRO-MICRO/chconf.h
index 0450d9e9c..0f06ba1a2 100644
--- a/demos/AVR/RT-PRO-MICRO/chconf.h
+++ b/demos/AVR/RT-PRO-MICRO/chconf.h
@@ -28,7 +28,8 @@
#ifndef CHCONF_H
#define CHCONF_H
-#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/AVR/RT-TEENSY2-USB/chconf.h b/demos/AVR/RT-TEENSY2-USB/chconf.h
index 5039bace8..3a21adcf6 100644
--- a/demos/AVR/RT-TEENSY2-USB/chconf.h
+++ b/demos/AVR/RT-TEENSY2-USB/chconf.h
@@ -28,7 +28,8 @@
#ifndef CHCONF_H_
#define CHCONF_H_
-#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/LPC21xx/RT-LPC214x-OLIMEX/chconf.h b/demos/LPC21xx/RT-LPC214x-OLIMEX/chconf.h
index 123b983f7..cd31b7cdb 100644
--- a/demos/LPC21xx/RT-LPC214x-OLIMEX/chconf.h
+++ b/demos/LPC21xx/RT-LPC214x-OLIMEX/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/SPC5/NIL-SPC560D-EVB/chconf.h b/demos/SPC5/NIL-SPC560D-EVB/chconf.h
index 9cce97ceb..c2ebb4f7f 100644
--- a/demos/SPC5/NIL-SPC560D-EVB/chconf.h
+++ b/demos/SPC5/NIL-SPC560D-EVB/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_NIL_CONF_
+#define _CHIBIOS_NIL_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/SPC5/RT-SPC560B-EVB/chconf.h b/demos/SPC5/RT-SPC560B-EVB/chconf.h
index 123b983f7..cd31b7cdb 100644
--- a/demos/SPC5/RT-SPC560B-EVB/chconf.h
+++ b/demos/SPC5/RT-SPC560B-EVB/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/SPC5/RT-SPC560D-EVB/chconf.h b/demos/SPC5/RT-SPC560D-EVB/chconf.h
index 123b983f7..cd31b7cdb 100644
--- a/demos/SPC5/RT-SPC560D-EVB/chconf.h
+++ b/demos/SPC5/RT-SPC560D-EVB/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/SPC5/RT-SPC560P-EVB/chconf.h b/demos/SPC5/RT-SPC560P-EVB/chconf.h
index 123b983f7..cd31b7cdb 100644
--- a/demos/SPC5/RT-SPC560P-EVB/chconf.h
+++ b/demos/SPC5/RT-SPC560P-EVB/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/SPC5/RT-SPC563M-EVB/chconf.h b/demos/SPC5/RT-SPC563M-EVB/chconf.h
index 123b983f7..cd31b7cdb 100644
--- a/demos/SPC5/RT-SPC563M-EVB/chconf.h
+++ b/demos/SPC5/RT-SPC563M-EVB/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/SPC5/RT-SPC564A-EVB/chconf.h b/demos/SPC5/RT-SPC564A-EVB/chconf.h
index 123b983f7..cd31b7cdb 100644
--- a/demos/SPC5/RT-SPC564A-EVB/chconf.h
+++ b/demos/SPC5/RT-SPC564A-EVB/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/SPC5/RT-SPC56EC-EVB/chconf.h b/demos/SPC5/RT-SPC56EC-EVB/chconf.h
index 123b983f7..cd31b7cdb 100644
--- a/demos/SPC5/RT-SPC56EC-EVB/chconf.h
+++ b/demos/SPC5/RT-SPC56EC-EVB/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/SPC5/RT-SPC56EL-EVB/chconf.h b/demos/SPC5/RT-SPC56EL-EVB/chconf.h
index 123b983f7..cd31b7cdb 100644
--- a/demos/SPC5/RT-SPC56EL-EVB/chconf.h
+++ b/demos/SPC5/RT-SPC56EL-EVB/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/CMSIS-STM32F407-DISCOVERY/chconf.h b/demos/STM32/CMSIS-STM32F407-DISCOVERY/chconf.h
index 3bfc6a5d5..bdb2d9c23 100644
--- a/demos/STM32/CMSIS-STM32F407-DISCOVERY/chconf.h
+++ b/demos/STM32/CMSIS-STM32F407-DISCOVERY/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/NASA-OSAL-STM32F407-DISCOVERY/chconf.h b/demos/STM32/NASA-OSAL-STM32F407-DISCOVERY/chconf.h
index 87dd34946..b09c78b5f 100644
--- a/demos/STM32/NASA-OSAL-STM32F407-DISCOVERY/chconf.h
+++ b/demos/STM32/NASA-OSAL-STM32F407-DISCOVERY/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/NASA-OSAL-STM32F746G-DISCOVERY/chconf.h b/demos/STM32/NASA-OSAL-STM32F746G-DISCOVERY/chconf.h
index db3053203..a3d07040d 100644
--- a/demos/STM32/NASA-OSAL-STM32F746G-DISCOVERY/chconf.h
+++ b/demos/STM32/NASA-OSAL-STM32F746G-DISCOVERY/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/NIL-STM32F051-DISCOVERY/chconf.h b/demos/STM32/NIL-STM32F051-DISCOVERY/chconf.h
index 1abac85ed..24bbd043b 100644
--- a/demos/STM32/NIL-STM32F051-DISCOVERY/chconf.h
+++ b/demos/STM32/NIL-STM32F051-DISCOVERY/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_NIL_CONF_
+#define _CHIBIOS_NIL_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/NIL-STM32F100-DISCOVERY/chconf.h b/demos/STM32/NIL-STM32F100-DISCOVERY/chconf.h
index a494421d4..1e4304698 100644
--- a/demos/STM32/NIL-STM32F100-DISCOVERY/chconf.h
+++ b/demos/STM32/NIL-STM32F100-DISCOVERY/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_NIL_CONF_
+#define _CHIBIOS_NIL_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/NIL-STM32F303-DISCOVERY/chconf.h b/demos/STM32/NIL-STM32F303-DISCOVERY/chconf.h
index 3db5b1b3d..c49461447 100644
--- a/demos/STM32/NIL-STM32F303-DISCOVERY/chconf.h
+++ b/demos/STM32/NIL-STM32F303-DISCOVERY/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_NIL_CONF_
+#define _CHIBIOS_NIL_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/NIL-STM32F373-STM32373C_EVAL/chconf.h b/demos/STM32/NIL-STM32F373-STM32373C_EVAL/chconf.h
index fa5ffff77..d75f699a8 100644
--- a/demos/STM32/NIL-STM32F373-STM32373C_EVAL/chconf.h
+++ b/demos/STM32/NIL-STM32F373-STM32373C_EVAL/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_NIL_CONF_
+#define _CHIBIOS_NIL_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/NIL-STM32F746G-DISCOVERY/chconf.h b/demos/STM32/NIL-STM32F746G-DISCOVERY/chconf.h
index d0146c4f7..9c5edb651 100644
--- a/demos/STM32/NIL-STM32F746G-DISCOVERY/chconf.h
+++ b/demos/STM32/NIL-STM32F746G-DISCOVERY/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_NIL_CONF_
+#define _CHIBIOS_NIL_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/NIL-STM32L011K4-NUCLEO32/chconf.h b/demos/STM32/NIL-STM32L011K4-NUCLEO32/chconf.h
index 257dd3b87..f1d53ffff 100644
--- a/demos/STM32/NIL-STM32L011K4-NUCLEO32/chconf.h
+++ b/demos/STM32/NIL-STM32L011K4-NUCLEO32/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_NIL_CONF_
+#define _CHIBIOS_NIL_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/NIL-STM32L152-DISCOVERY/chconf.h b/demos/STM32/NIL-STM32L152-DISCOVERY/chconf.h
index a494421d4..1e4304698 100644
--- a/demos/STM32/NIL-STM32L152-DISCOVERY/chconf.h
+++ b/demos/STM32/NIL-STM32L152-DISCOVERY/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_NIL_CONF_
+#define _CHIBIOS_NIL_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F030R8-NUCLEO64/chconf.h b/demos/STM32/RT-STM32F030R8-NUCLEO64/chconf.h
index 81d5e075e..1603fc3b1 100644
--- a/demos/STM32/RT-STM32F030R8-NUCLEO64/chconf.h
+++ b/demos/STM32/RT-STM32F030R8-NUCLEO64/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F031K6-NUCLEO32/chconf.h b/demos/STM32/RT-STM32F031K6-NUCLEO32/chconf.h
index b7d750e33..e11b762da 100644
--- a/demos/STM32/RT-STM32F031K6-NUCLEO32/chconf.h
+++ b/demos/STM32/RT-STM32F031K6-NUCLEO32/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F042K6-NUCLEO32/chconf.h b/demos/STM32/RT-STM32F042K6-NUCLEO32/chconf.h
index b7d750e33..e11b762da 100644
--- a/demos/STM32/RT-STM32F042K6-NUCLEO32/chconf.h
+++ b/demos/STM32/RT-STM32F042K6-NUCLEO32/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F051-DISCOVERY/chconf.h b/demos/STM32/RT-STM32F051-DISCOVERY/chconf.h
index b7d750e33..e11b762da 100644
--- a/demos/STM32/RT-STM32F051-DISCOVERY/chconf.h
+++ b/demos/STM32/RT-STM32F051-DISCOVERY/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F070RB-NUCLEO64/chconf.h b/demos/STM32/RT-STM32F070RB-NUCLEO64/chconf.h
index 51bb6cb98..965dde573 100644
--- a/demos/STM32/RT-STM32F070RB-NUCLEO64/chconf.h
+++ b/demos/STM32/RT-STM32F070RB-NUCLEO64/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F072-DISCOVERY/chconf.h b/demos/STM32/RT-STM32F072-DISCOVERY/chconf.h
index b7d750e33..e11b762da 100644
--- a/demos/STM32/RT-STM32F072-DISCOVERY/chconf.h
+++ b/demos/STM32/RT-STM32F072-DISCOVERY/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F072RB-NUCLEO64/chconf.h b/demos/STM32/RT-STM32F072RB-NUCLEO64/chconf.h
index b7d750e33..e11b762da 100644
--- a/demos/STM32/RT-STM32F072RB-NUCLEO64/chconf.h
+++ b/demos/STM32/RT-STM32F072RB-NUCLEO64/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F091RC-NUCLEO64/chconf.h b/demos/STM32/RT-STM32F091RC-NUCLEO64/chconf.h
index b7d750e33..e11b762da 100644
--- a/demos/STM32/RT-STM32F091RC-NUCLEO64/chconf.h
+++ b/demos/STM32/RT-STM32F091RC-NUCLEO64/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F100-DISCOVERY/chconf.h b/demos/STM32/RT-STM32F100-DISCOVERY/chconf.h
index 81d5e075e..1603fc3b1 100644
--- a/demos/STM32/RT-STM32F100-DISCOVERY/chconf.h
+++ b/demos/STM32/RT-STM32F100-DISCOVERY/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F103-MAPLEMINI/chconf.h b/demos/STM32/RT-STM32F103-MAPLEMINI/chconf.h
index 291e5d93b..18bc6e046 100644
--- a/demos/STM32/RT-STM32F103-MAPLEMINI/chconf.h
+++ b/demos/STM32/RT-STM32F103-MAPLEMINI/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103-FATFS/chconf.h b/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103-FATFS/chconf.h
index b1561c899..a0b737a8f 100755
--- a/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103-FATFS/chconf.h
+++ b/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103-FATFS/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103/chconf.h b/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103/chconf.h
index b1561c899..a0b737a8f 100644
--- a/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103/chconf.h
+++ b/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F103-STM3210E_EVAL-FATFS-USB/chconf.h b/demos/STM32/RT-STM32F103-STM3210E_EVAL-FATFS-USB/chconf.h
index b1561c899..a0b737a8f 100644
--- a/demos/STM32/RT-STM32F103-STM3210E_EVAL-FATFS-USB/chconf.h
+++ b/demos/STM32/RT-STM32F103-STM3210E_EVAL-FATFS-USB/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F103RB-NUCLEO64/chconf.h b/demos/STM32/RT-STM32F103RB-NUCLEO64/chconf.h
index ce29a7404..f973823f4 100644
--- a/demos/STM32/RT-STM32F103RB-NUCLEO64/chconf.h
+++ b/demos/STM32/RT-STM32F103RB-NUCLEO64/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F103_INEMO_DISCOVERY/chconf.h b/demos/STM32/RT-STM32F103_INEMO_DISCOVERY/chconf.h
index b1561c899..a0b737a8f 100644
--- a/demos/STM32/RT-STM32F103_INEMO_DISCOVERY/chconf.h
+++ b/demos/STM32/RT-STM32F103_INEMO_DISCOVERY/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F107-OLIMEX_P107-LWIP/chconf.h b/demos/STM32/RT-STM32F107-OLIMEX_P107-LWIP/chconf.h
index fd03c6cbe..232a2bf8a 100644
--- a/demos/STM32/RT-STM32F107-OLIMEX_P107-LWIP/chconf.h
+++ b/demos/STM32/RT-STM32F107-OLIMEX_P107-LWIP/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F207-DISCOVERY/chconf.h b/demos/STM32/RT-STM32F207-DISCOVERY/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/demos/STM32/RT-STM32F207-DISCOVERY/chconf.h
+++ b/demos/STM32/RT-STM32F207-DISCOVERY/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F207ZG-NUCLEO144/chconf.h b/demos/STM32/RT-STM32F207ZG-NUCLEO144/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/demos/STM32/RT-STM32F207ZG-NUCLEO144/chconf.h
+++ b/demos/STM32/RT-STM32F207ZG-NUCLEO144/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F302R8-NUCLEO64/chconf.h b/demos/STM32/RT-STM32F302R8-NUCLEO64/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/demos/STM32/RT-STM32F302R8-NUCLEO64/chconf.h
+++ b/demos/STM32/RT-STM32F302R8-NUCLEO64/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F303-DISCOVERY-REVC/chconf.h b/demos/STM32/RT-STM32F303-DISCOVERY-REVC/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/demos/STM32/RT-STM32F303-DISCOVERY-REVC/chconf.h
+++ b/demos/STM32/RT-STM32F303-DISCOVERY-REVC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F303-DISCOVERY/chconf.h b/demos/STM32/RT-STM32F303-DISCOVERY/chconf.h
index 8f3014426..30cca388f 100644
--- a/demos/STM32/RT-STM32F303-DISCOVERY/chconf.h
+++ b/demos/STM32/RT-STM32F303-DISCOVERY/chconf.h
@@ -29,6 +29,9 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
+#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_VER_5_0_
/*===========================================================================*/
/**
@@ -332,12 +335,14 @@
#define CH_CFG_USE_FACTORY TRUE
/**
- * @brief Enables the registry of generic objects.
+ * @brief Maximum length for object names.
+ * @details If the specified length is zero then the name is stored by
+ * pointer but this could have unintended side effects.
*/
#define CH_CFG_FACTORY_MAX_NAMES_LENGHT 8
/**
- * @brief Enables factory for generic buffers.
+ * @brief Enables the registry of generic objects.
*/
#define CH_CFG_FACTORY_OBJECTS_REGISTRY TRUE
diff --git a/demos/STM32/RT-STM32F303K8-NUCLEO32/chconf.h b/demos/STM32/RT-STM32F303K8-NUCLEO32/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/demos/STM32/RT-STM32F303K8-NUCLEO32/chconf.h
+++ b/demos/STM32/RT-STM32F303K8-NUCLEO32/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F303RE-NUCLEO64/chconf.h b/demos/STM32/RT-STM32F303RE-NUCLEO64/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/demos/STM32/RT-STM32F303RE-NUCLEO64/chconf.h
+++ b/demos/STM32/RT-STM32F303RE-NUCLEO64/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F303ZE-NUCLEO144/chconf.h b/demos/STM32/RT-STM32F303ZE-NUCLEO144/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/demos/STM32/RT-STM32F303ZE-NUCLEO144/chconf.h
+++ b/demos/STM32/RT-STM32F303ZE-NUCLEO144/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F334-DISCOVERY/chconf.h b/demos/STM32/RT-STM32F334-DISCOVERY/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/demos/STM32/RT-STM32F334-DISCOVERY/chconf.h
+++ b/demos/STM32/RT-STM32F334-DISCOVERY/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F334R8-NUCLEO64/chconf.h b/demos/STM32/RT-STM32F334R8-NUCLEO64/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/demos/STM32/RT-STM32F334R8-NUCLEO64/chconf.h
+++ b/demos/STM32/RT-STM32F334R8-NUCLEO64/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F373-STM32373C_EVAL/chconf.h b/demos/STM32/RT-STM32F373-STM32373C_EVAL/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/demos/STM32/RT-STM32F373-STM32373C_EVAL/chconf.h
+++ b/demos/STM32/RT-STM32F373-STM32373C_EVAL/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F401C-DISCOVERY/chconf.h b/demos/STM32/RT-STM32F401C-DISCOVERY/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/demos/STM32/RT-STM32F401C-DISCOVERY/chconf.h
+++ b/demos/STM32/RT-STM32F401C-DISCOVERY/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F401RE-NUCLEO64/chconf.h b/demos/STM32/RT-STM32F401RE-NUCLEO64/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/demos/STM32/RT-STM32F401RE-NUCLEO64/chconf.h
+++ b/demos/STM32/RT-STM32F401RE-NUCLEO64/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F407-DISCOVERY-G++/chconf.h b/demos/STM32/RT-STM32F407-DISCOVERY-G++/chconf.h
index 44d652a1d..647118d53 100644
--- a/demos/STM32/RT-STM32F407-DISCOVERY-G++/chconf.h
+++ b/demos/STM32/RT-STM32F407-DISCOVERY-G++/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F407-DISCOVERY/chconf.h b/demos/STM32/RT-STM32F407-DISCOVERY/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/demos/STM32/RT-STM32F407-DISCOVERY/chconf.h
+++ b/demos/STM32/RT-STM32F407-DISCOVERY/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F407-OLIMEX_E407-LWIP-FATFS-USB/chconf.h b/demos/STM32/RT-STM32F407-OLIMEX_E407-LWIP-FATFS-USB/chconf.h
index 44d652a1d..647118d53 100644
--- a/demos/STM32/RT-STM32F407-OLIMEX_E407-LWIP-FATFS-USB/chconf.h
+++ b/demos/STM32/RT-STM32F407-OLIMEX_E407-LWIP-FATFS-USB/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F410RB-NUCLEO64/chconf.h b/demos/STM32/RT-STM32F410RB-NUCLEO64/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/demos/STM32/RT-STM32F410RB-NUCLEO64/chconf.h
+++ b/demos/STM32/RT-STM32F410RB-NUCLEO64/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F411RE-NUCLEO64/chconf.h b/demos/STM32/RT-STM32F411RE-NUCLEO64/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/demos/STM32/RT-STM32F411RE-NUCLEO64/chconf.h
+++ b/demos/STM32/RT-STM32F411RE-NUCLEO64/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F412ZG-NUCLEO144/chconf.h b/demos/STM32/RT-STM32F412ZG-NUCLEO144/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/demos/STM32/RT-STM32F412ZG-NUCLEO144/chconf.h
+++ b/demos/STM32/RT-STM32F412ZG-NUCLEO144/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F429-DISCOVERY/chconf.h b/demos/STM32/RT-STM32F429-DISCOVERY/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/demos/STM32/RT-STM32F429-DISCOVERY/chconf.h
+++ b/demos/STM32/RT-STM32F429-DISCOVERY/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F429ZI-NUCLEO144/chconf.h b/demos/STM32/RT-STM32F429ZI-NUCLEO144/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/demos/STM32/RT-STM32F429ZI-NUCLEO144/chconf.h
+++ b/demos/STM32/RT-STM32F429ZI-NUCLEO144/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F446RE-NUCLEO64/chconf.h b/demos/STM32/RT-STM32F446RE-NUCLEO64/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/demos/STM32/RT-STM32F446RE-NUCLEO64/chconf.h
+++ b/demos/STM32/RT-STM32F446RE-NUCLEO64/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F446ZE-NUCLEO144/chconf.h b/demos/STM32/RT-STM32F446ZE-NUCLEO144/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/demos/STM32/RT-STM32F446ZE-NUCLEO144/chconf.h
+++ b/demos/STM32/RT-STM32F446ZE-NUCLEO144/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F469I-DISCOVERY/chconf.h b/demos/STM32/RT-STM32F469I-DISCOVERY/chconf.h
index c677bbe1f..a2f0a20ff 100644
--- a/demos/STM32/RT-STM32F469I-DISCOVERY/chconf.h
+++ b/demos/STM32/RT-STM32F469I-DISCOVERY/chconf.h
@@ -29,6 +29,7 @@
#define _CHCONF_H_
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F746G-DISCOVERY-LWIP-FATFS-USB/chconf.h b/demos/STM32/RT-STM32F746G-DISCOVERY-LWIP-FATFS-USB/chconf.h
index 6a7ec1fdb..651f18ed0 100644
--- a/demos/STM32/RT-STM32F746G-DISCOVERY-LWIP-FATFS-USB/chconf.h
+++ b/demos/STM32/RT-STM32F746G-DISCOVERY-LWIP-FATFS-USB/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F746G-DISCOVERY/chconf.h b/demos/STM32/RT-STM32F746G-DISCOVERY/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/demos/STM32/RT-STM32F746G-DISCOVERY/chconf.h
+++ b/demos/STM32/RT-STM32F746G-DISCOVERY/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F746ZG-NUCLEO144/chconf.h b/demos/STM32/RT-STM32F746ZG-NUCLEO144/chconf.h
index 6a7ec1fdb..651f18ed0 100644
--- a/demos/STM32/RT-STM32F746ZG-NUCLEO144/chconf.h
+++ b/demos/STM32/RT-STM32F746ZG-NUCLEO144/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F767ZI-NUCLEO144/chconf.h b/demos/STM32/RT-STM32F767ZI-NUCLEO144/chconf.h
index 6a7ec1fdb..651f18ed0 100644
--- a/demos/STM32/RT-STM32F767ZI-NUCLEO144/chconf.h
+++ b/demos/STM32/RT-STM32F767ZI-NUCLEO144/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32F769I-DISCOVERY/chconf.h b/demos/STM32/RT-STM32F769I-DISCOVERY/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/demos/STM32/RT-STM32F769I-DISCOVERY/chconf.h
+++ b/demos/STM32/RT-STM32F769I-DISCOVERY/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32L031K6-NUCLEO32/chconf.h b/demos/STM32/RT-STM32L031K6-NUCLEO32/chconf.h
index 81d5e075e..1603fc3b1 100644
--- a/demos/STM32/RT-STM32L031K6-NUCLEO32/chconf.h
+++ b/demos/STM32/RT-STM32L031K6-NUCLEO32/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32L053-DISCOVERY/chconf.h b/demos/STM32/RT-STM32L053-DISCOVERY/chconf.h
index 81d5e075e..1603fc3b1 100644
--- a/demos/STM32/RT-STM32L053-DISCOVERY/chconf.h
+++ b/demos/STM32/RT-STM32L053-DISCOVERY/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32L053R8-NUCLEO64/chconf.h b/demos/STM32/RT-STM32L053R8-NUCLEO64/chconf.h
index 81d5e075e..1603fc3b1 100644
--- a/demos/STM32/RT-STM32L053R8-NUCLEO64/chconf.h
+++ b/demos/STM32/RT-STM32L053R8-NUCLEO64/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32L073RZ-NUCLEO64/chconf.h b/demos/STM32/RT-STM32L073RZ-NUCLEO64/chconf.h
index 81d5e075e..1603fc3b1 100644
--- a/demos/STM32/RT-STM32L073RZ-NUCLEO64/chconf.h
+++ b/demos/STM32/RT-STM32L073RZ-NUCLEO64/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32L152-DISCOVERY/chconf.h b/demos/STM32/RT-STM32L152-DISCOVERY/chconf.h
index ce29a7404..f973823f4 100644
--- a/demos/STM32/RT-STM32L152-DISCOVERY/chconf.h
+++ b/demos/STM32/RT-STM32L152-DISCOVERY/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32L152RE-NUCLEO64/chconf.h b/demos/STM32/RT-STM32L152RE-NUCLEO64/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/demos/STM32/RT-STM32L152RE-NUCLEO64/chconf.h
+++ b/demos/STM32/RT-STM32L152RE-NUCLEO64/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32L432KC-NUCLEO32/chconf.h b/demos/STM32/RT-STM32L432KC-NUCLEO32/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/demos/STM32/RT-STM32L432KC-NUCLEO32/chconf.h
+++ b/demos/STM32/RT-STM32L432KC-NUCLEO32/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32L476-DISCOVERY/chconf.h b/demos/STM32/RT-STM32L476-DISCOVERY/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/demos/STM32/RT-STM32L476-DISCOVERY/chconf.h
+++ b/demos/STM32/RT-STM32L476-DISCOVERY/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/STM32/RT-STM32L476RG-NUCLEO64/chconf.h b/demos/STM32/RT-STM32L476RG-NUCLEO64/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/demos/STM32/RT-STM32L476RG-NUCLEO64/chconf.h
+++ b/demos/STM32/RT-STM32L476RG-NUCLEO64/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/various/NIL-ARMCM0-GENERIC/chconf.h b/demos/various/NIL-ARMCM0-GENERIC/chconf.h
index e575bc6fe..593dfd29d 100644
--- a/demos/various/NIL-ARMCM0-GENERIC/chconf.h
+++ b/demos/various/NIL-ARMCM0-GENERIC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_NIL_CONF_
+#define _CHIBIOS_NIL_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/various/NIL-ARMCM4-GENERIC/chconf.h b/demos/various/NIL-ARMCM4-GENERIC/chconf.h
index e575bc6fe..593dfd29d 100644
--- a/demos/various/NIL-ARMCM4-GENERIC/chconf.h
+++ b/demos/various/NIL-ARMCM4-GENERIC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_NIL_CONF_
+#define _CHIBIOS_NIL_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/various/RT-ARM7-GENERIC/chconf.h b/demos/various/RT-ARM7-GENERIC/chconf.h
index f75cc5e83..ab4506de8 100644
--- a/demos/various/RT-ARM7-GENERIC/chconf.h
+++ b/demos/various/RT-ARM7-GENERIC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/various/RT-ARMCM0-GENERIC/chconf.h b/demos/various/RT-ARMCM0-GENERIC/chconf.h
index f75cc5e83..ab4506de8 100644
--- a/demos/various/RT-ARMCM0-GENERIC/chconf.h
+++ b/demos/various/RT-ARMCM0-GENERIC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/various/RT-ARMCM4-GENERIC/chconf.h b/demos/various/RT-ARMCM4-GENERIC/chconf.h
index fd03c6cbe..232a2bf8a 100644
--- a/demos/various/RT-ARMCM4-GENERIC/chconf.h
+++ b/demos/various/RT-ARMCM4-GENERIC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/various/RT-Posix-Simulator/chconf.h b/demos/various/RT-Posix-Simulator/chconf.h
index 200d20f62..00afa6c66 100755
--- a/demos/various/RT-Posix-Simulator/chconf.h
+++ b/demos/various/RT-Posix-Simulator/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/demos/various/RT-Win32-Simulator/chconf.h b/demos/various/RT-Win32-Simulator/chconf.h
index 200d20f62..00afa6c66 100644
--- a/demos/various/RT-Win32-Simulator/chconf.h
+++ b/demos/various/RT-Win32-Simulator/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/os/nil/templates/chconf.h b/os/nil/templates/chconf.h
index 9cce97ceb..c2ebb4f7f 100644
--- a/os/nil/templates/chconf.h
+++ b/os/nil/templates/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_NIL_CONF_
+#define _CHIBIOS_NIL_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/os/rt/include/ch.h b/os/rt/include/ch.h
index da509adad..e11a049ac 100644
--- a/os/rt/include/ch.h
+++ b/os/rt/include/ch.h
@@ -74,6 +74,10 @@
#error "invalid configuration file"
#endif
+#if !defined(_CHIBIOS_RT_CONF_VER_5_0_)
+#error "obsolete or unknown configuration file"
+#endif
+
#include "chlicense.h"
#include "chchecks.h"
#include "chsystypes.h"
diff --git a/os/rt/templates/chconf.h b/os/rt/templates/chconf.h
index 8a441276f..df4365f99 100644
--- a/os/rt/templates/chconf.h
+++ b/os/rt/templates/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/readme.txt b/readme.txt
index 422f649d4..0bf1015c5 100644
--- a/readme.txt
+++ b/readme.txt
@@ -89,6 +89,9 @@
*****************************************************************************
*** Next ***
+- NEW: The chconf.h configuration files now are tagged with the version
+ number for safety. The system rejects obsolete files during
+ compilation.
- NEW: Added alignment capability to memory pools.
- NEW: Mailbox API changed by adding "Timeout" to those function that have
timeout capability, for consistency with the rest of the system.
diff --git a/test/nil/testbuild/chconf.h b/test/nil/testbuild/chconf.h
index c3740124d..93b46d40b 100644
--- a/test/nil/testbuild/chconf.h
+++ b/test/nil/testbuild/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_NIL_CONF_
+#define _CHIBIOS_NIL_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/test/rt/testbuild/chconf.h b/test/rt/testbuild/chconf.h
index 49958a217..cfb8ddebd 100644
--- a/test/rt/testbuild/chconf.h
+++ b/test/rt/testbuild/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testex/STM32/STM32F3xx/I2C-LSM303DLHC/chconf.h b/testex/STM32/STM32F3xx/I2C-LSM303DLHC/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testex/STM32/STM32F3xx/I2C-LSM303DLHC/chconf.h
+++ b/testex/STM32/STM32F3xx/I2C-LSM303DLHC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testex/STM32/STM32F3xx/SPI-L3GD20/chconf.h b/testex/STM32/STM32F3xx/SPI-L3GD20/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/testex/STM32/STM32F3xx/SPI-L3GD20/chconf.h
+++ b/testex/STM32/STM32F3xx/SPI-L3GD20/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testex/STM32/STM32F3xx/SPI-N25Q128/chconf.h b/testex/STM32/STM32F3xx/SPI-N25Q128/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/testex/STM32/STM32F3xx/SPI-N25Q128/chconf.h
+++ b/testex/STM32/STM32F3xx/SPI-N25Q128/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testex/STM32/STM32F4xx/I2C-BMP085/chconf.h b/testex/STM32/STM32F4xx/I2C-BMP085/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/testex/STM32/STM32F4xx/I2C-BMP085/chconf.h
+++ b/testex/STM32/STM32F4xx/I2C-BMP085/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testex/STM32/STM32F4xx/I2C-HTS221/chconf.h b/testex/STM32/STM32F4xx/I2C-HTS221/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/testex/STM32/STM32F4xx/I2C-HTS221/chconf.h
+++ b/testex/STM32/STM32F4xx/I2C-HTS221/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testex/STM32/STM32F4xx/I2C-LIS3MLD/chconf.h b/testex/STM32/STM32F4xx/I2C-LIS3MLD/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/testex/STM32/STM32F4xx/I2C-LIS3MLD/chconf.h
+++ b/testex/STM32/STM32F4xx/I2C-LIS3MLD/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testex/STM32/STM32F4xx/I2C-LPS25H/chconf.h b/testex/STM32/STM32F4xx/I2C-LPS25H/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/testex/STM32/STM32F4xx/I2C-LPS25H/chconf.h
+++ b/testex/STM32/STM32F4xx/I2C-LPS25H/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testex/STM32/STM32F4xx/I2C-LSM303DLHC/chconf.h b/testex/STM32/STM32F4xx/I2C-LSM303DLHC/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/testex/STM32/STM32F4xx/I2C-LSM303DLHC/chconf.h
+++ b/testex/STM32/STM32F4xx/I2C-LSM303DLHC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testex/STM32/STM32F4xx/I2C-LSM6DS0/chconf.h b/testex/STM32/STM32F4xx/I2C-LSM6DS0/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/testex/STM32/STM32F4xx/I2C-LSM6DS0/chconf.h
+++ b/testex/STM32/STM32F4xx/I2C-LSM6DS0/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testex/STM32/STM32F4xx/SPI-L3GD20/chconf.h b/testex/STM32/STM32F4xx/SPI-L3GD20/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/testex/STM32/STM32F4xx/SPI-L3GD20/chconf.h
+++ b/testex/STM32/STM32F4xx/SPI-L3GD20/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testex/STM32/STM32F4xx/SPI-LIS302DL/chconf.h b/testex/STM32/STM32F4xx/SPI-LIS302DL/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testex/STM32/STM32F4xx/SPI-LIS302DL/chconf.h
+++ b/testex/STM32/STM32F4xx/SPI-LIS302DL/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testex/STM32/STM32F4xx/SPI-LIS3DSH/chconf.h b/testex/STM32/STM32F4xx/SPI-LIS3DSH/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testex/STM32/STM32F4xx/SPI-LIS3DSH/chconf.h
+++ b/testex/STM32/STM32F4xx/SPI-LIS3DSH/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testex/STM32/STM32L4xx/I2C-LIS3MLD/chconf.h b/testex/STM32/STM32L4xx/I2C-LIS3MLD/chconf.h
index c677bbe1f..a2f0a20ff 100644
--- a/testex/STM32/STM32L4xx/I2C-LIS3MLD/chconf.h
+++ b/testex/STM32/STM32L4xx/I2C-LIS3MLD/chconf.h
@@ -29,6 +29,7 @@
#define _CHCONF_H_
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testex/STM32/STM32L4xx/I2C-LSM6DS0/chconf.h b/testex/STM32/STM32L4xx/I2C-LSM6DS0/chconf.h
index c677bbe1f..a2f0a20ff 100644
--- a/testex/STM32/STM32L4xx/I2C-LSM6DS0/chconf.h
+++ b/testex/STM32/STM32L4xx/I2C-LSM6DS0/chconf.h
@@ -29,6 +29,7 @@
#define _CHCONF_H_
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testex/STM32/STM32L4xx/QSPI-N25Q128/chconf.h b/testex/STM32/STM32L4xx/QSPI-N25Q128/chconf.h
index d375b1caa..54022abeb 100644
--- a/testex/STM32/STM32L4xx/QSPI-N25Q128/chconf.h
+++ b/testex/STM32/STM32L4xx/QSPI-N25Q128/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testex/STM32/STM32L4xx/SPI-L3GD20/chconf.h b/testex/STM32/STM32L4xx/SPI-L3GD20/chconf.h
index d375b1caa..54022abeb 100644
--- a/testex/STM32/STM32L4xx/SPI-L3GD20/chconf.h
+++ b/testex/STM32/STM32L4xx/SPI-L3GD20/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/AVR/MEGA/ADC/chconf.h b/testhal/AVR/MEGA/ADC/chconf.h
index 5fa694a4a..1e506a0b6 100644
--- a/testhal/AVR/MEGA/ADC/chconf.h
+++ b/testhal/AVR/MEGA/ADC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/AVR/MEGA/EXT/chconf.h b/testhal/AVR/MEGA/EXT/chconf.h
index 5fa694a4a..1e506a0b6 100644
--- a/testhal/AVR/MEGA/EXT/chconf.h
+++ b/testhal/AVR/MEGA/EXT/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/AVR/MEGA/GPT/chconf.h b/testhal/AVR/MEGA/GPT/chconf.h
index 5fa694a4a..1e506a0b6 100644
--- a/testhal/AVR/MEGA/GPT/chconf.h
+++ b/testhal/AVR/MEGA/GPT/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/AVR/MEGA/I2C/chconf.h b/testhal/AVR/MEGA/I2C/chconf.h
index 5fa694a4a..1e506a0b6 100644
--- a/testhal/AVR/MEGA/I2C/chconf.h
+++ b/testhal/AVR/MEGA/I2C/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/AVR/MEGA/PWM/chconf.h b/testhal/AVR/MEGA/PWM/chconf.h
index 5fa694a4a..1e506a0b6 100644
--- a/testhal/AVR/MEGA/PWM/chconf.h
+++ b/testhal/AVR/MEGA/PWM/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/AVR/MEGA/SPI/chconf.h b/testhal/AVR/MEGA/SPI/chconf.h
index 5fa694a4a..1e506a0b6 100644
--- a/testhal/AVR/MEGA/SPI/chconf.h
+++ b/testhal/AVR/MEGA/SPI/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/AVR/multi/PAL/cfg-arduino_mega/chconf.h b/testhal/AVR/multi/PAL/cfg-arduino_mega/chconf.h
index 5fa694a4a..1e506a0b6 100644
--- a/testhal/AVR/multi/PAL/cfg-arduino_mega/chconf.h
+++ b/testhal/AVR/multi/PAL/cfg-arduino_mega/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/AVR/multi/PAL/cfg-arduino_mini/chconf.h b/testhal/AVR/multi/PAL/cfg-arduino_mini/chconf.h
index 5fa694a4a..1e506a0b6 100644
--- a/testhal/AVR/multi/PAL/cfg-arduino_mini/chconf.h
+++ b/testhal/AVR/multi/PAL/cfg-arduino_mini/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/AVR/multi/PAL/cfg-arduino_nano/chconf.h b/testhal/AVR/multi/PAL/cfg-arduino_nano/chconf.h
index 5fa694a4a..1e506a0b6 100644
--- a/testhal/AVR/multi/PAL/cfg-arduino_nano/chconf.h
+++ b/testhal/AVR/multi/PAL/cfg-arduino_nano/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/AVR/multi/PAL/cfg-arduino_uno/chconf.h b/testhal/AVR/multi/PAL/cfg-arduino_uno/chconf.h
index 5fa694a4a..1e506a0b6 100644
--- a/testhal/AVR/multi/PAL/cfg-arduino_uno/chconf.h
+++ b/testhal/AVR/multi/PAL/cfg-arduino_uno/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F0xx/ADC/chconf.h b/testhal/STM32/STM32F0xx/ADC/chconf.h
index 7704ae907..fac296c7b 100644
--- a/testhal/STM32/STM32F0xx/ADC/chconf.h
+++ b/testhal/STM32/STM32F0xx/ADC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F0xx/CAN/chconf.h b/testhal/STM32/STM32F0xx/CAN/chconf.h
index 7704ae907..fac296c7b 100644
--- a/testhal/STM32/STM32F0xx/CAN/chconf.h
+++ b/testhal/STM32/STM32F0xx/CAN/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F0xx/EXT/chconf.h b/testhal/STM32/STM32F0xx/EXT/chconf.h
index 7704ae907..fac296c7b 100644
--- a/testhal/STM32/STM32F0xx/EXT/chconf.h
+++ b/testhal/STM32/STM32F0xx/EXT/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F0xx/IRQ_STORM/chconf.h b/testhal/STM32/STM32F0xx/IRQ_STORM/chconf.h
index 7704ae907..fac296c7b 100644
--- a/testhal/STM32/STM32F0xx/IRQ_STORM/chconf.h
+++ b/testhal/STM32/STM32F0xx/IRQ_STORM/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F0xx/PWM-ICU/chconf.h b/testhal/STM32/STM32F0xx/PWM-ICU/chconf.h
index 7704ae907..fac296c7b 100644
--- a/testhal/STM32/STM32F0xx/PWM-ICU/chconf.h
+++ b/testhal/STM32/STM32F0xx/PWM-ICU/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F0xx/SPI/chconf.h b/testhal/STM32/STM32F0xx/SPI/chconf.h
index 7704ae907..fac296c7b 100644
--- a/testhal/STM32/STM32F0xx/SPI/chconf.h
+++ b/testhal/STM32/STM32F0xx/SPI/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F0xx/UART/chconf.h b/testhal/STM32/STM32F0xx/UART/chconf.h
index 7704ae907..fac296c7b 100644
--- a/testhal/STM32/STM32F0xx/UART/chconf.h
+++ b/testhal/STM32/STM32F0xx/UART/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F0xx/USB_CDC/chconf.h b/testhal/STM32/STM32F0xx/USB_CDC/chconf.h
index 7704ae907..fac296c7b 100644
--- a/testhal/STM32/STM32F0xx/USB_CDC/chconf.h
+++ b/testhal/STM32/STM32F0xx/USB_CDC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F0xx/WDG/chconf.h b/testhal/STM32/STM32F0xx/WDG/chconf.h
index 7704ae907..fac296c7b 100644
--- a/testhal/STM32/STM32F0xx/WDG/chconf.h
+++ b/testhal/STM32/STM32F0xx/WDG/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F1xx/ADC/chconf.h b/testhal/STM32/STM32F1xx/ADC/chconf.h
index 512785bc2..eee8ea27d 100644
--- a/testhal/STM32/STM32F1xx/ADC/chconf.h
+++ b/testhal/STM32/STM32F1xx/ADC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F1xx/CAN/chconf.h b/testhal/STM32/STM32F1xx/CAN/chconf.h
index 512785bc2..eee8ea27d 100644
--- a/testhal/STM32/STM32F1xx/CAN/chconf.h
+++ b/testhal/STM32/STM32F1xx/CAN/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F1xx/EXT/chconf.h b/testhal/STM32/STM32F1xx/EXT/chconf.h
index 512785bc2..eee8ea27d 100644
--- a/testhal/STM32/STM32F1xx/EXT/chconf.h
+++ b/testhal/STM32/STM32F1xx/EXT/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F1xx/I2C/chconf.h b/testhal/STM32/STM32F1xx/I2C/chconf.h
index 512785bc2..eee8ea27d 100644
--- a/testhal/STM32/STM32F1xx/I2C/chconf.h
+++ b/testhal/STM32/STM32F1xx/I2C/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F1xx/IRQ_STORM/chconf.h b/testhal/STM32/STM32F1xx/IRQ_STORM/chconf.h
index 512785bc2..eee8ea27d 100644
--- a/testhal/STM32/STM32F1xx/IRQ_STORM/chconf.h
+++ b/testhal/STM32/STM32F1xx/IRQ_STORM/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F1xx/PWM-ICU/chconf.h b/testhal/STM32/STM32F1xx/PWM-ICU/chconf.h
index 512785bc2..eee8ea27d 100644
--- a/testhal/STM32/STM32F1xx/PWM-ICU/chconf.h
+++ b/testhal/STM32/STM32F1xx/PWM-ICU/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F1xx/RTC/chconf.h b/testhal/STM32/STM32F1xx/RTC/chconf.h
index 89c9d1118..9929cb2db 100644
--- a/testhal/STM32/STM32F1xx/RTC/chconf.h
+++ b/testhal/STM32/STM32F1xx/RTC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F1xx/SPI/chconf.h b/testhal/STM32/STM32F1xx/SPI/chconf.h
index 512785bc2..eee8ea27d 100644
--- a/testhal/STM32/STM32F1xx/SPI/chconf.h
+++ b/testhal/STM32/STM32F1xx/SPI/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F1xx/UART/chconf.h b/testhal/STM32/STM32F1xx/UART/chconf.h
index 512785bc2..eee8ea27d 100644
--- a/testhal/STM32/STM32F1xx/UART/chconf.h
+++ b/testhal/STM32/STM32F1xx/UART/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F1xx/USB_CDC/chconf.h b/testhal/STM32/STM32F1xx/USB_CDC/chconf.h
index 512785bc2..eee8ea27d 100644
--- a/testhal/STM32/STM32F1xx/USB_CDC/chconf.h
+++ b/testhal/STM32/STM32F1xx/USB_CDC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F1xx/USB_CDC_F107/chconf.h b/testhal/STM32/STM32F1xx/USB_CDC_F107/chconf.h
index 69a11edf2..749b9491e 100644
--- a/testhal/STM32/STM32F1xx/USB_CDC_F107/chconf.h
+++ b/testhal/STM32/STM32F1xx/USB_CDC_F107/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F2xx/EXT/chconf.h b/testhal/STM32/STM32F2xx/EXT/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/testhal/STM32/STM32F2xx/EXT/chconf.h
+++ b/testhal/STM32/STM32F2xx/EXT/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F2xx/PWM-ICU/chconf.h b/testhal/STM32/STM32F2xx/PWM-ICU/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/testhal/STM32/STM32F2xx/PWM-ICU/chconf.h
+++ b/testhal/STM32/STM32F2xx/PWM-ICU/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F2xx/USB_CDC/chconf.h b/testhal/STM32/STM32F2xx/USB_CDC/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/testhal/STM32/STM32F2xx/USB_CDC/chconf.h
+++ b/testhal/STM32/STM32F2xx/USB_CDC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F37x/ADC/chconf.h b/testhal/STM32/STM32F37x/ADC/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F37x/ADC/chconf.h
+++ b/testhal/STM32/STM32F37x/ADC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F37x/CAN/chconf.h b/testhal/STM32/STM32F37x/CAN/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F37x/CAN/chconf.h
+++ b/testhal/STM32/STM32F37x/CAN/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F37x/EXT/chconf.h b/testhal/STM32/STM32F37x/EXT/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F37x/EXT/chconf.h
+++ b/testhal/STM32/STM32F37x/EXT/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F37x/I2C/chconf.h b/testhal/STM32/STM32F37x/I2C/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F37x/I2C/chconf.h
+++ b/testhal/STM32/STM32F37x/I2C/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F37x/IRQ_STORM/chconf.h b/testhal/STM32/STM32F37x/IRQ_STORM/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F37x/IRQ_STORM/chconf.h
+++ b/testhal/STM32/STM32F37x/IRQ_STORM/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F37x/PWM-ICU/chconf.h b/testhal/STM32/STM32F37x/PWM-ICU/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F37x/PWM-ICU/chconf.h
+++ b/testhal/STM32/STM32F37x/PWM-ICU/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F37x/SDADC/chconf.h b/testhal/STM32/STM32F37x/SDADC/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F37x/SDADC/chconf.h
+++ b/testhal/STM32/STM32F37x/SDADC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F37x/SPI/chconf.h b/testhal/STM32/STM32F37x/SPI/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F37x/SPI/chconf.h
+++ b/testhal/STM32/STM32F37x/SPI/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F37x/UART/chconf.h b/testhal/STM32/STM32F37x/UART/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F37x/UART/chconf.h
+++ b/testhal/STM32/STM32F37x/UART/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F37x/USB_CDC/chconf.h b/testhal/STM32/STM32F37x/USB_CDC/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F37x/USB_CDC/chconf.h
+++ b/testhal/STM32/STM32F37x/USB_CDC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F3xx/ADC/chconf.h b/testhal/STM32/STM32F3xx/ADC/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F3xx/ADC/chconf.h
+++ b/testhal/STM32/STM32F3xx/ADC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F3xx/ADC_DUAL/chconf.h b/testhal/STM32/STM32F3xx/ADC_DUAL/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F3xx/ADC_DUAL/chconf.h
+++ b/testhal/STM32/STM32F3xx/ADC_DUAL/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F3xx/CAN/chconf.h b/testhal/STM32/STM32F3xx/CAN/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F3xx/CAN/chconf.h
+++ b/testhal/STM32/STM32F3xx/CAN/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F3xx/DAC/chconf.h b/testhal/STM32/STM32F3xx/DAC/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F3xx/DAC/chconf.h
+++ b/testhal/STM32/STM32F3xx/DAC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F3xx/EXT/chconf.h b/testhal/STM32/STM32F3xx/EXT/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F3xx/EXT/chconf.h
+++ b/testhal/STM32/STM32F3xx/EXT/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F3xx/IRQ_STORM/chconf.h b/testhal/STM32/STM32F3xx/IRQ_STORM/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F3xx/IRQ_STORM/chconf.h
+++ b/testhal/STM32/STM32F3xx/IRQ_STORM/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F3xx/PWM-ICU/chconf.h b/testhal/STM32/STM32F3xx/PWM-ICU/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F3xx/PWM-ICU/chconf.h
+++ b/testhal/STM32/STM32F3xx/PWM-ICU/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F3xx/SPI/chconf.h b/testhal/STM32/STM32F3xx/SPI/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F3xx/SPI/chconf.h
+++ b/testhal/STM32/STM32F3xx/SPI/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F3xx/UART/chconf.h b/testhal/STM32/STM32F3xx/UART/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F3xx/UART/chconf.h
+++ b/testhal/STM32/STM32F3xx/UART/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F3xx/USB_CDC/chconf.h b/testhal/STM32/STM32F3xx/USB_CDC/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F3xx/USB_CDC/chconf.h
+++ b/testhal/STM32/STM32F3xx/USB_CDC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F3xx/USB_CDC_IAD/chconf.h b/testhal/STM32/STM32F3xx/USB_CDC_IAD/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F3xx/USB_CDC_IAD/chconf.h
+++ b/testhal/STM32/STM32F3xx/USB_CDC_IAD/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F3xx/WDG/chconf.h b/testhal/STM32/STM32F3xx/WDG/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F3xx/WDG/chconf.h
+++ b/testhal/STM32/STM32F3xx/WDG/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F4xx/ADC/chconf.h b/testhal/STM32/STM32F4xx/ADC/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F4xx/ADC/chconf.h
+++ b/testhal/STM32/STM32F4xx/ADC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F4xx/CAN/chconf.h b/testhal/STM32/STM32F4xx/CAN/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F4xx/CAN/chconf.h
+++ b/testhal/STM32/STM32F4xx/CAN/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F4xx/DAC/chconf.h b/testhal/STM32/STM32F4xx/DAC/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F4xx/DAC/chconf.h
+++ b/testhal/STM32/STM32F4xx/DAC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F4xx/DAC_DUAL/chconf.h b/testhal/STM32/STM32F4xx/DAC_DUAL/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F4xx/DAC_DUAL/chconf.h
+++ b/testhal/STM32/STM32F4xx/DAC_DUAL/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F4xx/DMA_STORM/chconf.h b/testhal/STM32/STM32F4xx/DMA_STORM/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F4xx/DMA_STORM/chconf.h
+++ b/testhal/STM32/STM32F4xx/DMA_STORM/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F4xx/EXT/chconf.h b/testhal/STM32/STM32F4xx/EXT/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F4xx/EXT/chconf.h
+++ b/testhal/STM32/STM32F4xx/EXT/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F4xx/GPT/chconf.h b/testhal/STM32/STM32F4xx/GPT/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F4xx/GPT/chconf.h
+++ b/testhal/STM32/STM32F4xx/GPT/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F4xx/I2C/chconf.h b/testhal/STM32/STM32F4xx/I2C/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F4xx/I2C/chconf.h
+++ b/testhal/STM32/STM32F4xx/I2C/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F4xx/I2S/chconf.h b/testhal/STM32/STM32F4xx/I2S/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F4xx/I2S/chconf.h
+++ b/testhal/STM32/STM32F4xx/I2S/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F4xx/IRQ_STORM/chconf.h b/testhal/STM32/STM32F4xx/IRQ_STORM/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F4xx/IRQ_STORM/chconf.h
+++ b/testhal/STM32/STM32F4xx/IRQ_STORM/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F4xx/IRQ_STORM_FPU/chconf.h b/testhal/STM32/STM32F4xx/IRQ_STORM_FPU/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F4xx/IRQ_STORM_FPU/chconf.h
+++ b/testhal/STM32/STM32F4xx/IRQ_STORM_FPU/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F4xx/PWM-ICU/chconf.h b/testhal/STM32/STM32F4xx/PWM-ICU/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F4xx/PWM-ICU/chconf.h
+++ b/testhal/STM32/STM32F4xx/PWM-ICU/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F4xx/RTC/chconf.h b/testhal/STM32/STM32F4xx/RTC/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F4xx/RTC/chconf.h
+++ b/testhal/STM32/STM32F4xx/RTC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F4xx/SDC/chconf.h b/testhal/STM32/STM32F4xx/SDC/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F4xx/SDC/chconf.h
+++ b/testhal/STM32/STM32F4xx/SDC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F4xx/SPI/chconf.h b/testhal/STM32/STM32F4xx/SPI/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F4xx/SPI/chconf.h
+++ b/testhal/STM32/STM32F4xx/SPI/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F4xx/UART/chconf.h b/testhal/STM32/STM32F4xx/UART/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F4xx/UART/chconf.h
+++ b/testhal/STM32/STM32F4xx/UART/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F4xx/USB_CDC/chconf.h b/testhal/STM32/STM32F4xx/USB_CDC/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F4xx/USB_CDC/chconf.h
+++ b/testhal/STM32/STM32F4xx/USB_CDC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F4xx/USB_CDC_IAD/chconf.h b/testhal/STM32/STM32F4xx/USB_CDC_IAD/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F4xx/USB_CDC_IAD/chconf.h
+++ b/testhal/STM32/STM32F4xx/USB_CDC_IAD/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F4xx/WDG/chconf.h b/testhal/STM32/STM32F4xx/WDG/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/STM32F4xx/WDG/chconf.h
+++ b/testhal/STM32/STM32F4xx/WDG/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F7xx/GPT-ADC/chconf.h b/testhal/STM32/STM32F7xx/GPT-ADC/chconf.h
index 649611247..d49088884 100644
--- a/testhal/STM32/STM32F7xx/GPT-ADC/chconf.h
+++ b/testhal/STM32/STM32F7xx/GPT-ADC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F7xx/IRQ_STORM/chconf.h b/testhal/STM32/STM32F7xx/IRQ_STORM/chconf.h
index 649611247..d49088884 100644
--- a/testhal/STM32/STM32F7xx/IRQ_STORM/chconf.h
+++ b/testhal/STM32/STM32F7xx/IRQ_STORM/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F7xx/PWM-ICU/chconf.h b/testhal/STM32/STM32F7xx/PWM-ICU/chconf.h
index 649611247..d49088884 100644
--- a/testhal/STM32/STM32F7xx/PWM-ICU/chconf.h
+++ b/testhal/STM32/STM32F7xx/PWM-ICU/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F7xx/SPI/chconf.h b/testhal/STM32/STM32F7xx/SPI/chconf.h
index 649611247..d49088884 100644
--- a/testhal/STM32/STM32F7xx/SPI/chconf.h
+++ b/testhal/STM32/STM32F7xx/SPI/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F7xx/USB_CDC/chconf.h b/testhal/STM32/STM32F7xx/USB_CDC/chconf.h
index 649611247..d49088884 100644
--- a/testhal/STM32/STM32F7xx/USB_CDC/chconf.h
+++ b/testhal/STM32/STM32F7xx/USB_CDC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32F7xx/USB_RAW/chconf.h b/testhal/STM32/STM32F7xx/USB_RAW/chconf.h
index 649611247..d49088884 100644
--- a/testhal/STM32/STM32F7xx/USB_RAW/chconf.h
+++ b/testhal/STM32/STM32F7xx/USB_RAW/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32L0xx/ADC/chconf.h b/testhal/STM32/STM32L0xx/ADC/chconf.h
index f28ac4e86..9df4609ac 100644
--- a/testhal/STM32/STM32L0xx/ADC/chconf.h
+++ b/testhal/STM32/STM32L0xx/ADC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32L0xx/EXT/chconf.h b/testhal/STM32/STM32L0xx/EXT/chconf.h
index f28ac4e86..9df4609ac 100644
--- a/testhal/STM32/STM32L0xx/EXT/chconf.h
+++ b/testhal/STM32/STM32L0xx/EXT/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32L0xx/SPI/chconf.h b/testhal/STM32/STM32L0xx/SPI/chconf.h
index f28ac4e86..9df4609ac 100644
--- a/testhal/STM32/STM32L0xx/SPI/chconf.h
+++ b/testhal/STM32/STM32L0xx/SPI/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32L0xx/USB_CDC/chconf.h b/testhal/STM32/STM32L0xx/USB_CDC/chconf.h
index 8bd02ba26..0198e9cdf 100644
--- a/testhal/STM32/STM32L0xx/USB_CDC/chconf.h
+++ b/testhal/STM32/STM32L0xx/USB_CDC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32L1xx/ADC/chconf.h b/testhal/STM32/STM32L1xx/ADC/chconf.h
index 070ebab3a..14efc3443 100644
--- a/testhal/STM32/STM32L1xx/ADC/chconf.h
+++ b/testhal/STM32/STM32L1xx/ADC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32L1xx/DAC/chconf.h b/testhal/STM32/STM32L1xx/DAC/chconf.h
index 070ebab3a..14efc3443 100644
--- a/testhal/STM32/STM32L1xx/DAC/chconf.h
+++ b/testhal/STM32/STM32L1xx/DAC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32L1xx/EXT/chconf.h b/testhal/STM32/STM32L1xx/EXT/chconf.h
index 070ebab3a..14efc3443 100644
--- a/testhal/STM32/STM32L1xx/EXT/chconf.h
+++ b/testhal/STM32/STM32L1xx/EXT/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32L1xx/IRQ_STORM/chconf.h b/testhal/STM32/STM32L1xx/IRQ_STORM/chconf.h
index 070ebab3a..14efc3443 100644
--- a/testhal/STM32/STM32L1xx/IRQ_STORM/chconf.h
+++ b/testhal/STM32/STM32L1xx/IRQ_STORM/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32L1xx/PWM-ICU/chconf.h b/testhal/STM32/STM32L1xx/PWM-ICU/chconf.h
index 070ebab3a..14efc3443 100644
--- a/testhal/STM32/STM32L1xx/PWM-ICU/chconf.h
+++ b/testhal/STM32/STM32L1xx/PWM-ICU/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32L1xx/SPI/chconf.h b/testhal/STM32/STM32L1xx/SPI/chconf.h
index 070ebab3a..14efc3443 100644
--- a/testhal/STM32/STM32L1xx/SPI/chconf.h
+++ b/testhal/STM32/STM32L1xx/SPI/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32L1xx/UART/chconf.h b/testhal/STM32/STM32L1xx/UART/chconf.h
index 070ebab3a..14efc3443 100644
--- a/testhal/STM32/STM32L1xx/UART/chconf.h
+++ b/testhal/STM32/STM32L1xx/UART/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32L4xx/ADC/chconf.h b/testhal/STM32/STM32L4xx/ADC/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/testhal/STM32/STM32L4xx/ADC/chconf.h
+++ b/testhal/STM32/STM32L4xx/ADC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32L4xx/CAN/chconf.h b/testhal/STM32/STM32L4xx/CAN/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/testhal/STM32/STM32L4xx/CAN/chconf.h
+++ b/testhal/STM32/STM32L4xx/CAN/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32L4xx/EXT/chconf.h b/testhal/STM32/STM32L4xx/EXT/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/testhal/STM32/STM32L4xx/EXT/chconf.h
+++ b/testhal/STM32/STM32L4xx/EXT/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32L4xx/GPT-ADC/chconf.h b/testhal/STM32/STM32L4xx/GPT-ADC/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/testhal/STM32/STM32L4xx/GPT-ADC/chconf.h
+++ b/testhal/STM32/STM32L4xx/GPT-ADC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32L4xx/IRQ_STORM/chconf.h b/testhal/STM32/STM32L4xx/IRQ_STORM/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/testhal/STM32/STM32L4xx/IRQ_STORM/chconf.h
+++ b/testhal/STM32/STM32L4xx/IRQ_STORM/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/STM32L4xx/USB_CDC/chconf.h b/testhal/STM32/STM32L4xx/USB_CDC/chconf.h
index d375b1caa..54022abeb 100644
--- a/testhal/STM32/STM32L4xx/USB_CDC/chconf.h
+++ b/testhal/STM32/STM32L4xx/USB_CDC/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f051_discovery/chconf.h b/testhal/STM32/multi/PAL/cfg-stm32f051_discovery/chconf.h
index 7704ae907..fac296c7b 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f051_discovery/chconf.h
+++ b/testhal/STM32/multi/PAL/cfg-stm32f051_discovery/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f103_olimex/chconf.h b/testhal/STM32/multi/PAL/cfg-stm32f103_olimex/chconf.h
index 875724c89..6b6c9aae3 100755
--- a/testhal/STM32/multi/PAL/cfg-stm32f103_olimex/chconf.h
+++ b/testhal/STM32/multi/PAL/cfg-stm32f103_olimex/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f303_discovery/chconf.h b/testhal/STM32/multi/PAL/cfg-stm32f303_discovery/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f303_discovery/chconf.h
+++ b/testhal/STM32/multi/PAL/cfg-stm32f303_discovery/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f373_eval/chconf.h b/testhal/STM32/multi/PAL/cfg-stm32f373_eval/chconf.h
index e753a82fb..34a0dcc70 100755
--- a/testhal/STM32/multi/PAL/cfg-stm32f373_eval/chconf.h
+++ b/testhal/STM32/multi/PAL/cfg-stm32f373_eval/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f407_discovery/chconf.h b/testhal/STM32/multi/PAL/cfg-stm32f407_discovery/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f407_discovery/chconf.h
+++ b/testhal/STM32/multi/PAL/cfg-stm32f407_discovery/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f429_discovery/chconf.h b/testhal/STM32/multi/PAL/cfg-stm32f429_discovery/chconf.h
index e753a82fb..34a0dcc70 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f429_discovery/chconf.h
+++ b/testhal/STM32/multi/PAL/cfg-stm32f429_discovery/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f746_discovery/chconf.h b/testhal/STM32/multi/PAL/cfg-stm32f746_discovery/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f746_discovery/chconf.h
+++ b/testhal/STM32/multi/PAL/cfg-stm32f746_discovery/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/multi/PAL/cfg-stm32l053_discovery/chconf.h b/testhal/STM32/multi/PAL/cfg-stm32l053_discovery/chconf.h
index f28ac4e86..9df4609ac 100755
--- a/testhal/STM32/multi/PAL/cfg-stm32l053_discovery/chconf.h
+++ b/testhal/STM32/multi/PAL/cfg-stm32l053_discovery/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/multi/PAL/cfg-stm32l151_discovery/chconf.h b/testhal/STM32/multi/PAL/cfg-stm32l151_discovery/chconf.h
index ce29a7404..f973823f4 100755
--- a/testhal/STM32/multi/PAL/cfg-stm32l151_discovery/chconf.h
+++ b/testhal/STM32/multi/PAL/cfg-stm32l151_discovery/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/multi/PAL/cfg-stm32l476_discovery/chconf.h b/testhal/STM32/multi/PAL/cfg-stm32l476_discovery/chconf.h
index d375b1caa..54022abeb 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32l476_discovery/chconf.h
+++ b/testhal/STM32/multi/PAL/cfg-stm32l476_discovery/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/multi/SPI/cfg-stm32f091_nucleo64/chconf.h b/testhal/STM32/multi/SPI/cfg-stm32f091_nucleo64/chconf.h
index 7704ae907..fac296c7b 100644
--- a/testhal/STM32/multi/SPI/cfg-stm32f091_nucleo64/chconf.h
+++ b/testhal/STM32/multi/SPI/cfg-stm32f091_nucleo64/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/multi/USB_CDC/cfg-stm32f303_discovery/chconf.h b/testhal/STM32/multi/USB_CDC/cfg-stm32f303_discovery/chconf.h
index 96d733acf..4f8b0e2a9 100644
--- a/testhal/STM32/multi/USB_CDC/cfg-stm32f303_discovery/chconf.h
+++ b/testhal/STM32/multi/USB_CDC/cfg-stm32f303_discovery/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**
diff --git a/testhal/STM32/multi/USB_CDC/cfg-stm32l476_discovery/chconf.h b/testhal/STM32/multi/USB_CDC/cfg-stm32l476_discovery/chconf.h
index d375b1caa..54022abeb 100644
--- a/testhal/STM32/multi/USB_CDC/cfg-stm32l476_discovery/chconf.h
+++ b/testhal/STM32/multi/USB_CDC/cfg-stm32l476_discovery/chconf.h
@@ -29,6 +29,7 @@
#define CHCONF_H
#define _CHIBIOS_RT_CONF_
+#define _CHIBIOS_RT_CONF_VER_5_0_
/*===========================================================================*/
/**