From c01e5a7c227e736404c5c3509a23d23216698bdf Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Mon, 13 Dec 2021 15:44:12 +0000 Subject: [PATCH] Added a new CH_CFG_HARDENING_LEVEL option to RT. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15242 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- .../ADUCM/RT-ADUCM360-ADICUP360/cfg/chconf.h | 13 ++++++ demos/AVR/RT-ARDUINO-LEONARDO/cfg/chconf.h | 13 ++++++ demos/AVR/RT-ARDUINO-MEGA/cfg/chconf.h | 13 ++++++ demos/AVR/RT-ARDUINO-MINI/cfg/chconf.h | 13 ++++++ demos/AVR/RT-ARDUINO-NANO/cfg/chconf.h | 13 ++++++ demos/AVR/RT-ARDUINO-UNO/cfg/chconf.h | 13 ++++++ .../AVR/RT-DIGISPARK-ATTINY-167/cfg/chconf.h | 13 ++++++ demos/AVR/RT-MT-DB-X4/cfg/chconf.h | 13 ++++++ demos/AVR/RT-PRO-MICRO/cfg/chconf.h | 13 ++++++ demos/AVR/RT-TEENSY2-USB/cfg/chconf.h | 13 ++++++ demos/AVR/TEST-SUITE-OSLIB/cfg/chconf.h | 13 ++++++ demos/AVR/TEST-SUITE-RT/cfg/chconf.h | 13 ++++++ demos/LPC21xx/RT-LPC214x-OLIMEX/chconf.h | 13 ++++++ demos/RP/RT-RP2040-PICO/cfg/chconf.h | 13 ++++++ demos/SPC5/RT-SPC560B-EVB/chconf.h | 13 ++++++ demos/SPC5/RT-SPC560D-EVB/chconf.h | 13 ++++++ demos/SPC5/RT-SPC560P-EVB/chconf.h | 13 ++++++ demos/SPC5/RT-SPC563M-EVB/chconf.h | 13 ++++++ demos/SPC5/RT-SPC564A-EVB/chconf.h | 13 ++++++ demos/SPC5/RT-SPC56EC-EVB/chconf.h | 13 ++++++ demos/SPC5/RT-SPC56EL-EVB/chconf.h | 13 ++++++ .../CMSIS-STM32F407-DISCOVERY/cfg/chconf.h | 13 ++++++ .../cfg/chconf.h | 16 +++++++- .../cfg/chconf.h | 16 +++++++- .../cfg/stm32f746_discovery/chconf.h | 13 ++++++ .../cfg/stm32f107_goldbull/chconf.h | 13 ++++++ .../cfg/stm32f407_olimex/chconf.h | 13 ++++++ .../cfg/stm32f746_discovery/chconf.h | 13 ++++++ .../cfg/stm32f769_discovery/chconf.h | 13 ++++++ .../RT-STM32F030R8-NUCLEO64/cfg/chconf.h | 13 ++++++ .../RT-STM32F031K6-NUCLEO32/cfg/chconf.h | 13 ++++++ .../RT-STM32F042K6-NUCLEO32/cfg/chconf.h | 13 ++++++ .../STM32/RT-STM32F051-DISCOVERY/cfg/chconf.h | 13 ++++++ .../RT-STM32F070RB-NUCLEO64/cfg/chconf.h | 13 ++++++ .../STM32/RT-STM32F072-DISCOVERY/cfg/chconf.h | 13 ++++++ .../RT-STM32F072RB-NUCLEO64/cfg/chconf.h | 13 ++++++ .../RT-STM32F091RC-NUCLEO64/cfg/chconf.h | 13 ++++++ .../STM32/RT-STM32F100-DISCOVERY/cfg/chconf.h | 13 ++++++ .../STM32/RT-STM32F103-MAPLEMINI/cfg/chconf.h | 13 ++++++ .../cfg/chconf.h | 13 ++++++ .../cfg/chconf.h | 13 ++++++ .../cfg/chconf.h | 13 ++++++ .../RT-STM32F103RB-NUCLEO64/cfg/chconf.h | 13 ++++++ .../cfg/chconf.h | 13 ++++++ .../RT-STM32F302R8-NUCLEO64/cfg/chconf.h | 13 ++++++ .../STM32/RT-STM32F303-DISCOVERY/cfg/chconf.h | 13 ++++++ .../RT-STM32F303K8-NUCLEO32/cfg/chconf.h | 13 ++++++ .../RT-STM32F303RE-NUCLEO64/cfg/chconf.h | 13 ++++++ .../RT-STM32F303ZE-NUCLEO144/cfg/chconf.h | 13 ++++++ .../STM32/RT-STM32F334-DISCOVERY/cfg/chconf.h | 13 ++++++ .../RT-STM32F334R8-NUCLEO64/cfg/chconf.h | 13 ++++++ .../RT-STM32F373-STM32373C_EVAL/cfg/chconf.h | 13 ++++++ .../RT-STM32F401C-DISCOVERY/cfg/chconf.h | 13 ++++++ .../RT-STM32F401RE-NUCLEO64/cfg/chconf.h | 13 ++++++ .../RT-STM32F407-DISCOVERY-G++/cfg/chconf.h | 13 ++++++ .../STM32/RT-STM32F407-DISCOVERY/cfg/chconf.h | 13 ++++++ .../RT-STM32F410RB-NUCLEO64/cfg/chconf.h | 13 ++++++ .../RT-STM32F411RE-NUCLEO64/cfg/chconf.h | 13 ++++++ .../RT-STM32F412ZG-NUCLEO144/cfg/chconf.h | 13 ++++++ .../RT-STM32F413ZH-NUCLEO144/cfg/chconf.h | 13 ++++++ .../STM32/RT-STM32F429-DISCOVERY/cfg/chconf.h | 13 ++++++ .../RT-STM32F429ZI-NUCLEO144/cfg/chconf.h | 13 ++++++ .../RT-STM32F446RE-NUCLEO64/cfg/chconf.h | 13 ++++++ .../RT-STM32F446ZE-NUCLEO144/cfg/chconf.h | 13 ++++++ .../RT-STM32F469I-DISCOVERY/cfg/chconf.h | 13 ++++++ .../RT-STM32F469I-EVAL-SDP-CK1Z/cfg/chconf.h | 13 ++++++ .../RT-STM32F722ZE-NUCLEO144/cfg/chconf.h | 13 ++++++ .../RT-STM32F746G-DISCOVERY/cfg/chconf.h | 13 ++++++ .../RT-STM32F746ZG-NUCLEO144/cfg/chconf.h | 13 ++++++ .../RT-STM32F756ZG-NUCLEO144/cfg/chconf.h | 13 ++++++ .../RT-STM32F767ZI-NUCLEO144/cfg/chconf.h | 13 ++++++ .../RT-STM32F769I-DISCOVERY/cfg/chconf.h | 13 ++++++ .../RT-STM32G031K8-NUCLEO32/cfg/chconf.h | 13 ++++++ .../RT-STM32G071RB-NUCLEO64/cfg/chconf.h | 13 ++++++ .../RT-STM32G0B1RE-NUCLEO64/cfg/chconf.h | 13 ++++++ .../RT-STM32G431RB-NUCLEO64/cfg/chconf.h | 13 ++++++ .../cfg/chconf.h | 13 ++++++ .../cfg/chconf.h | 16 ++++++-- .../main.c | 40 ++++++++++--------- .../cfg/chconf.h | 15 ++++++- .../main.c | 36 +++++++++-------- .../RT-STM32G474RE-NUCLEO64/cfg/chconf.h | 13 ++++++ .../cfg/chconf.h | 13 ++++++ .../RT-STM32H750XB-DISCOVERY/cfg/chconf.h | 13 ++++++ .../RT-STM32H755ZI-NUCLEO144/cfg/chconf.h | 13 ++++++ .../RT-STM32H755ZI_M4-NUCLEO144/cfg/chconf.h | 13 ++++++ .../RT-STM32L031K6-NUCLEO32/cfg/chconf.h | 13 ++++++ .../STM32/RT-STM32L053-DISCOVERY/cfg/chconf.h | 13 ++++++ .../RT-STM32L053R8-NUCLEO64/cfg/chconf.h | 13 ++++++ .../RT-STM32L073RZ-NUCLEO64/cfg/chconf.h | 13 ++++++ .../STM32/RT-STM32L152-DISCOVERY/cfg/chconf.h | 13 ++++++ .../RT-STM32L152RE-NUCLEO64/cfg/chconf.h | 13 ++++++ .../RT-STM32L432KC-NUCLEO32/cfg/chconf.h | 13 ++++++ .../RT-STM32L452RE-NUCLEO64-P/cfg/chconf.h | 13 ++++++ .../STM32/RT-STM32L476-DISCOVERY/cfg/chconf.h | 13 ++++++ .../RT-STM32L476RG-NUCLEO64/cfg/chconf.h | 13 ++++++ .../RT-STM32L496ZG-NUCLEO144/cfg/chconf.h | 13 ++++++ .../RT-STM32L4P5ZG-NUCLEO144/cfg/chconf.h | 13 ++++++ .../RT-STM32L4R5ZI-NUCLEO144/cfg/chconf.h | 13 ++++++ .../STM32/RT-STM32L4R9-DISCOVERY/cfg/chconf.h | 13 ++++++ .../cfg/chconf.h | 13 ++++++ .../cfg/chconf.h | 13 ++++++ .../RT-STM32L552ZE-NUCLEO144/cfg/chconf.h | 13 ++++++ demos/STM32/RT-STM32MP157A-DK1/cfg/chconf.h | 13 ++++++ .../RT-STM32WB55CG-NUCLEO48_USB/cfg/chconf.h | 13 ++++++ .../RT-STM32WB55RG-NUCLEO68/cfg/chconf.h | 13 ++++++ .../RT-STM32WL55JC-NUCLEO64/cfg/chconf.h | 13 ++++++ .../cfg/stm32g474re_nucleo64/chconf.h | 13 ++++++ .../cfg/stm32l4r9ai_discovery/chconf.h | 13 ++++++ demos/various/RT-ARM7-GENERIC/chconf.h | 13 ++++++ demos/various/RT-ARMCM0-GENERIC/cfg/chconf.h | 13 ++++++ demos/various/RT-ARMCM4-GENERIC/cfg/chconf.h | 13 ++++++ demos/various/RT-ARMCM4-MAKELIB/cfg/chconf.h | 13 ++++++ demos/various/RT-Posix-Simulator/cfg/chconf.h | 13 ++++++ demos/various/RT-Win32-Simulator/cfg/chconf.h | 13 ++++++ os/rt/include/chchecks.h | 8 ++++ os/rt/src/chcond.c | 6 +-- os/rt/src/chevents.c | 6 +-- os/rt/src/chmtx.c | 6 +-- os/rt/src/chsem.c | 6 +-- os/rt/src/chthreads.c | 6 +-- os/rt/src/chtm.c | 8 ++-- os/rt/src/chvt.c | 6 +-- os/rt/templates/chconf.h | 13 ++++++ readme.txt | 1 + test/rt/testbuild/chconf.h | 13 ++++++ testex/ADUCM/SPI-ADXL355/cfg/chconf.h | 13 ++++++ .../STM32F3xx/I2C-LSM303DLHC/cfg/chconf.h | 13 ++++++ .../STM32/STM32F3xx/SPI-L3GD20/cfg/chconf.h | 13 ++++++ .../STM32/STM32F4xx/I2C-HTS221/cfg/chconf.h | 13 ++++++ .../STM32/STM32F4xx/I2C-IKS01A2/cfg/chconf.h | 13 ++++++ .../STM32/STM32F4xx/I2C-LIS3MDL/cfg/chconf.h | 13 ++++++ .../STM32/STM32F4xx/I2C-LPS22HB/cfg/chconf.h | 13 ++++++ .../STM32/STM32F4xx/I2C-LPS25H/cfg/chconf.h | 13 ++++++ .../STM32F4xx/I2C-LSM303AGR/cfg/chconf.h | 13 ++++++ .../STM32F4xx/I2C-LSM303DLHC/cfg/chconf.h | 13 ++++++ .../STM32/STM32F4xx/I2C-LSM6DS0/cfg/chconf.h | 13 ++++++ .../STM32/STM32F4xx/I2C-LSM6DSL/cfg/chconf.h | 13 ++++++ .../STM32/STM32F4xx/SPI-ADXL355/cfg/chconf.h | 13 ++++++ .../STM32/STM32F4xx/SPI-L3GD20/cfg/chconf.h | 13 ++++++ .../STM32/STM32F4xx/SPI-LIS302DL/cfg/chconf.h | 13 ++++++ .../STM32/STM32F4xx/SPI-LIS3DSH/cfg/chconf.h | 13 ++++++ .../STM32/STM32F7xx/SPI-ADXL355/cfg/chconf.h | 13 ++++++ .../STM32/STM32L4xx/SPI-L3GD20/cfg/chconf.h | 13 ++++++ testhal/ADUCM/ADUCM36x/SPI/cfg/chconf.h | 13 ++++++ testhal/AVR/MEGA/ADC/chconf.h | 13 ++++++ testhal/AVR/MEGA/GPT/chconf.h | 13 ++++++ testhal/AVR/MEGA/I2C/chconf.h | 13 ++++++ testhal/AVR/MEGA/ICU/chconf.h | 13 ++++++ testhal/AVR/MEGA/PWM/chconf.h | 13 ++++++ testhal/AVR/MEGA/SPI/chconf.h | 13 ++++++ testhal/AVR/XMEGA/AES/chconf.h | 13 ++++++ testhal/AVR/XMEGA/SERIAL/chconf.h | 13 ++++++ testhal/AVR/XMEGA/SPI/chconf.h | 13 ++++++ testhal/AVR/XMEGA/TEST-SUITE-OSLIB/chconf.h | 13 ++++++ testhal/AVR/XMEGA/USART/chconf.h | 13 ++++++ testhal/AVR/XMEGA/WDT/chconf.h | 13 ++++++ .../AVR/multi/PAL/cfg/arduino_mega/chconf.h | 13 ++++++ .../AVR/multi/PAL/cfg/arduino_mini/chconf.h | 13 ++++++ .../AVR/multi/PAL/cfg/arduino_nano/chconf.h | 13 ++++++ .../AVR/multi/PAL/cfg/arduino_uno/chconf.h | 13 ++++++ testhal/STM32/STM32F0xx/ADC/chconf.h | 13 ++++++ testhal/STM32/STM32F0xx/CAN/chconf.h | 13 ++++++ testhal/STM32/STM32F0xx/PWM-ICU/chconf.h | 13 ++++++ testhal/STM32/STM32F1xx/ADC/chconf.h | 13 ++++++ testhal/STM32/STM32F1xx/CAN/chconf.h | 13 ++++++ testhal/STM32/STM32F1xx/I2C/chconf.h | 13 ++++++ testhal/STM32/STM32F1xx/PWM-ICU/chconf.h | 13 ++++++ testhal/STM32/STM32F1xx/RTC/chconf.h | 13 ++++++ testhal/STM32/STM32F1xx/UART/chconf.h | 13 ++++++ testhal/STM32/STM32F1xx/USB_CDC/chconf.h | 13 ++++++ testhal/STM32/STM32F1xx/USB_CDC_F107/chconf.h | 13 ++++++ testhal/STM32/STM32F37x/ADC/chconf.h | 13 ++++++ testhal/STM32/STM32F37x/CAN/chconf.h | 13 ++++++ testhal/STM32/STM32F37x/I2C/chconf.h | 13 ++++++ testhal/STM32/STM32F37x/PWM-ICU/chconf.h | 13 ++++++ testhal/STM32/STM32F37x/SDADC/chconf.h | 13 ++++++ testhal/STM32/STM32F37x/UART/chconf.h | 13 ++++++ testhal/STM32/STM32F37x/USB_CDC/chconf.h | 13 ++++++ testhal/STM32/STM32F3xx/ADC/chconf.h | 13 ++++++ testhal/STM32/STM32F3xx/ADC_DUAL/chconf.h | 13 ++++++ testhal/STM32/STM32F3xx/CAN/chconf.h | 13 ++++++ testhal/STM32/STM32F3xx/DAC/chconf.h | 13 ++++++ testhal/STM32/STM32F3xx/PWM-ICU/chconf.h | 13 ++++++ testhal/STM32/STM32F3xx/USB_CDC_IAD/chconf.h | 13 ++++++ testhal/STM32/STM32F4xx/ADC/chconf.h | 13 ++++++ testhal/STM32/STM32F4xx/CAN/chconf.h | 13 ++++++ testhal/STM32/STM32F4xx/DAC/chconf.h | 13 ++++++ testhal/STM32/STM32F4xx/DAC_DUAL/chconf.h | 13 ++++++ testhal/STM32/STM32F4xx/DMA_STORM/chconf.h | 13 ++++++ testhal/STM32/STM32F4xx/I2S/chconf.h | 13 ++++++ testhal/STM32/STM32F4xx/PWM-ICU/chconf.h | 13 ++++++ testhal/STM32/STM32F4xx/RTC/chconf.h | 13 ++++++ testhal/STM32/STM32F4xx/SDC/chconf.h | 13 ++++++ testhal/STM32/STM32F4xx/USB_CDC_IAD/chconf.h | 13 ++++++ testhal/STM32/STM32F7xx/GPT-ADC/chconf.h | 13 ++++++ testhal/STM32/STM32F7xx/PWM-ICU/chconf.h | 13 ++++++ testhal/STM32/STM32F7xx/USB_RAW/chconf.h | 13 ++++++ testhal/STM32/STM32L1xx/ADC/chconf.h | 13 ++++++ testhal/STM32/STM32L1xx/DAC/chconf.h | 13 ++++++ testhal/STM32/STM32L1xx/PWM-ICU/chconf.h | 13 ++++++ testhal/STM32/STM32L1xx/UART/chconf.h | 13 ++++++ testhal/STM32/STM32L4xx/CAN/chconf.h | 13 ++++++ testhal/STM32/STM32WLxx/I2S/cfg/chconf.h | 13 ++++++ testhal/STM32/STM32WLxx/SPI/cfg/chconf.h | 13 ++++++ .../STM32/STM32WLxx/SYSTICKv2/cfg/chconf.h | 13 ++++++ testhal/STM32/STM32WLxx/WDG/cfg/chconf.h | 13 ++++++ .../ADC/cfg/stm32g071rb_nucleo64/chconf.h | 13 ++++++ .../ADC/cfg/stm32g474re_nucleo64/chconf.h | 13 ++++++ .../ADC/cfg/stm32h743zi_nucleo144/chconf.h | 13 ++++++ .../ADC/cfg/stm32l053r8_nucleo64/chconf.h | 13 ++++++ .../ADC/cfg/stm32l476_discovery/chconf.h | 13 ++++++ .../ADC/cfg/stm32l4r5zi_nucleo144/chconf.h | 13 ++++++ .../ADC/cfg/stm32wb55rg_nucleo68/chconf.h | 13 ++++++ .../ADC/cfg/stm32wl55jc_nucleo64/chconf.h | 13 ++++++ .../CRYPTO/cfg/stm32f756zg_nucleo144/chconf.h | 13 ++++++ .../DAC/cfg/stm32g474re_nucleo64/chconf.h | 13 ++++++ .../DAC/cfg/stm32h743_nucleo144/chconf.h | 13 ++++++ .../DAC/cfg/stm32l476_discovery/chconf.h | 13 ++++++ .../DAC/cfg/stm32l4r5zi_nucleo144/chconf.h | 13 ++++++ .../DAC/cfg/stm32wl55jc_nucleo64/chconf.h | 13 ++++++ .../EFL-MFS/cfg/stm32f302_nucleo64/chconf.h | 13 ++++++ .../EFL-MFS/cfg/stm32l476_discovery/chconf.h | 13 ++++++ .../EFL-MFS/cfg/stm32wl55jc_nucleo64/chconf.h | 13 ++++++ .../PAL/cfg/stm32f051_discovery/chconf.h | 13 ++++++ .../multi/PAL/cfg/stm32f103_olimex/chconf.h | 13 ++++++ .../PAL/cfg/stm32f303_discovery/chconf.h | 13 ++++++ .../multi/PAL/cfg/stm32f373_eval/chconf.h | 13 ++++++ .../PAL/cfg/stm32f407_discovery/chconf.h | 13 ++++++ .../PAL/cfg/stm32f429_discovery/chconf.h | 13 ++++++ .../PAL/cfg/stm32f746_discovery/chconf.h | 13 ++++++ .../PAL/cfg/stm32l053_discovery/chconf.h | 13 ++++++ .../PAL/cfg/stm32l152rb_discovery/chconf.h | 13 ++++++ .../PAL/cfg/stm32l476_discovery/chconf.h | 13 ++++++ .../PAL/cfg/stm32wb55rg_nucleo68/chconf.h | 13 ++++++ .../PAL/cfg/stm32wl55jc_nucleo64/chconf.h | 13 ++++++ .../RTC/cfg/stm32f051_discovery/chconf.h | 13 ++++++ .../RTC/cfg/stm32f303_discovery/chconf.h | 13 ++++++ .../RTC/cfg/stm32f407_discovery/chconf.h | 13 ++++++ .../RTC/cfg/stm32f746_discovery/chconf.h | 13 ++++++ .../multi/RTC/cfg/stm32g071_nucleo64/chconf.h | 13 ++++++ .../RTC/cfg/stm32l053_discovery/chconf.h | 13 ++++++ .../RTC/cfg/stm32l476_discovery/chconf.h | 13 ++++++ .../RTC/cfg/stm32l4r5_nucleo144/chconf.h | 13 ++++++ .../RTC/cfg/stm32wb55rg_nucleo68/chconf.h | 13 ++++++ .../cfg/stm32l4r9ai_discovery/chconf.h | 13 ++++++ .../SDMMC/cfg/stm32l4r9ai_discovery/chconf.h | 13 ++++++ .../multi/SPI/cfg/stm32f091_nucleo64/chconf.h | 13 ++++++ .../multi/SPI/cfg/stm32f103rb_olimex/chconf.h | 13 ++++++ .../SPI/cfg/stm32f303_discovery/chconf.h | 13 ++++++ .../multi/SPI/cfg/stm32f373vc_eval/chconf.h | 13 ++++++ .../SPI/cfg/stm32f407_discovery/chconf.h | 13 ++++++ .../SPI/cfg/stm32f746ng_discovery/chconf.h | 13 ++++++ .../SPI/cfg/stm32g474re_nucleo64/chconf.h | 13 ++++++ .../SPI/cfg/stm32h743_nucleo144/chconf.h | 13 ++++++ .../SPI/cfg/stm32h755_nucleo144/chconf.h | 13 ++++++ .../SPI/cfg/stm32l053r8_nucleo64/chconf.h | 13 ++++++ .../SPI/cfg/stm32l152rb_discovery/chconf.h | 13 ++++++ .../SPI/cfg/stm32l476_discovery/chconf.h | 13 ++++++ .../SPI/cfg/stm32l4r5_nucleo144/chconf.h | 13 ++++++ .../SPI/cfg/stm32l4r9_discovery/chconf.h | 13 ++++++ .../TRNG/cfg/stm32l476_discovery/chconf.h | 13 ++++++ .../TRNG/cfg/stm32l4r5zi_nucleo144/chconf.h | 13 ++++++ .../TRNG/cfg/stm32wb55rg_nucleo68/chconf.h | 13 ++++++ .../TRNG/cfg/stm32wl55jc_nucleo64/chconf.h | 13 ++++++ .../UART/cfg/stm32f091_nucleo64/chconf.h | 13 ++++++ .../UART/cfg/stm32f303_discovery/chconf.h | 13 ++++++ .../UART/cfg/stm32f407_discovery/chconf.h | 13 ++++++ .../UART/cfg/stm32f746_discovery/chconf.h | 13 ++++++ .../UART/cfg/stm32wb55rg_nucleo68/chconf.h | 13 ++++++ .../UART/cfg/stm32wl55jc_nucleo64/chconf.h | 13 ++++++ .../USB_CDC/cfg/stm32f072_discovery/chconf.h | 13 ++++++ .../USB_CDC/cfg/stm32f303_discovery/chconf.h | 13 ++++++ .../USB_CDC/cfg/stm32f407_discovery/chconf.h | 13 ++++++ .../USB_CDC/cfg/stm32f746_discovery/chconf.h | 13 ++++++ .../USB_CDC/cfg/stm32g0b1re_nucleo64/chconf.h | 13 ++++++ .../cfg/stm32g474re_discovery_dpow1/chconf.h | 13 ++++++ .../USB_CDC/cfg/stm32g474re_nucleo64/chconf.h | 13 ++++++ .../USB_CDC/cfg/stm32h743_nucleo144/chconf.h | 13 ++++++ .../USB_CDC/cfg/stm32l073rz_nucleo64/chconf.h | 13 ++++++ .../USB_CDC/cfg/stm32l476_discovery/chconf.h | 13 ++++++ .../USB_CDC/cfg/stm32l4r5_nucleo144/chconf.h | 13 ++++++ .../USB_CDC/cfg/stm32wb55cg_nucleo48/chconf.h | 13 ++++++ .../USB_CDC/cfg/stm32wb55rg_nucleo68/chconf.h | 13 ++++++ .../WDG/cfg/stm32f051_discovery/chconf.h | 13 ++++++ .../WDG/cfg/stm32f303_discovery/chconf.h | 13 ++++++ .../WDG/cfg/stm32f407_discovery/chconf.h | 13 ++++++ .../WDG/cfg/stm32wb55rg_nucleo68/chconf.h | 13 ++++++ .../WSPI-MFS/cfg/stm32l476_discovery/chconf.h | 13 ++++++ .../WSPI-MFS/cfg/stm32l4r9_discovery/chconf.h | 13 ++++++ .../cfg/stm32g474re_nucleo64/chconf.h | 13 ++++++ .../cfg/stm32g474re_nucleo64_alt/chconf.h | 13 ++++++ .../cfg/stm32g071rb_nucleo64/chconf.h | 13 ++++++ .../cfg/stm32g474re_nucleo64/chconf.h | 13 ++++++ .../cfg/stm32g474re_nucleo64_alt/chconf.h | 13 ++++++ .../cfg/stm32l476_discovery/chconf.h | 13 ++++++ .../cfg/stm32wl55jc_nucleo64/chconf.h | 13 ++++++ .../cfg/stm32g474re_nucleo64/chconf.h | 13 ++++++ .../cfg/stm32wl55jc_nucleo64/chconf.h | 13 ++++++ .../cfg/stm32wl55jc_nucleo64_v2/chconf.h | 13 ++++++ .../cfg/stm32g474re_nucleo64/chconf.h | 13 ++++++ .../cfg/stm32g474re_nucleo64_alt/chconf.h | 13 ++++++ .../cfg/stm32l552ze_nucleo144/chconf.h | 13 ++++++ .../cfg/stm32l552ze_nucleo144_alt/chconf.h | 13 ++++++ .../processors/conf/chconf_rt/chconf.h.ftl | 13 ++++++ 305 files changed, 3897 insertions(+), 65 deletions(-) diff --git a/demos/ADUCM/RT-ADUCM360-ADICUP360/cfg/chconf.h b/demos/ADUCM/RT-ADUCM360-ADICUP360/cfg/chconf.h index a234ec88c..692efee49 100644 --- a/demos/ADUCM/RT-ADUCM360-ADICUP360/cfg/chconf.h +++ b/demos/ADUCM/RT-ADUCM360-ADICUP360/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/AVR/RT-ARDUINO-LEONARDO/cfg/chconf.h b/demos/AVR/RT-ARDUINO-LEONARDO/cfg/chconf.h index b7a08766c..21d524490 100644 --- a/demos/AVR/RT-ARDUINO-LEONARDO/cfg/chconf.h +++ b/demos/AVR/RT-ARDUINO-LEONARDO/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/AVR/RT-ARDUINO-MEGA/cfg/chconf.h b/demos/AVR/RT-ARDUINO-MEGA/cfg/chconf.h index b7a08766c..21d524490 100644 --- a/demos/AVR/RT-ARDUINO-MEGA/cfg/chconf.h +++ b/demos/AVR/RT-ARDUINO-MEGA/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/AVR/RT-ARDUINO-MINI/cfg/chconf.h b/demos/AVR/RT-ARDUINO-MINI/cfg/chconf.h index b7a08766c..21d524490 100644 --- a/demos/AVR/RT-ARDUINO-MINI/cfg/chconf.h +++ b/demos/AVR/RT-ARDUINO-MINI/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/AVR/RT-ARDUINO-NANO/cfg/chconf.h b/demos/AVR/RT-ARDUINO-NANO/cfg/chconf.h index b7a08766c..21d524490 100644 --- a/demos/AVR/RT-ARDUINO-NANO/cfg/chconf.h +++ b/demos/AVR/RT-ARDUINO-NANO/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/AVR/RT-ARDUINO-UNO/cfg/chconf.h b/demos/AVR/RT-ARDUINO-UNO/cfg/chconf.h index b7a08766c..21d524490 100644 --- a/demos/AVR/RT-ARDUINO-UNO/cfg/chconf.h +++ b/demos/AVR/RT-ARDUINO-UNO/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/AVR/RT-DIGISPARK-ATTINY-167/cfg/chconf.h b/demos/AVR/RT-DIGISPARK-ATTINY-167/cfg/chconf.h index 2f767e416..770f641b1 100644 --- a/demos/AVR/RT-DIGISPARK-ATTINY-167/cfg/chconf.h +++ b/demos/AVR/RT-DIGISPARK-ATTINY-167/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/AVR/RT-MT-DB-X4/cfg/chconf.h b/demos/AVR/RT-MT-DB-X4/cfg/chconf.h index a966df167..fcd97655d 100644 --- a/demos/AVR/RT-MT-DB-X4/cfg/chconf.h +++ b/demos/AVR/RT-MT-DB-X4/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/AVR/RT-PRO-MICRO/cfg/chconf.h b/demos/AVR/RT-PRO-MICRO/cfg/chconf.h index b7a08766c..21d524490 100644 --- a/demos/AVR/RT-PRO-MICRO/cfg/chconf.h +++ b/demos/AVR/RT-PRO-MICRO/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/AVR/RT-TEENSY2-USB/cfg/chconf.h b/demos/AVR/RT-TEENSY2-USB/cfg/chconf.h index 5a053ca4d..3100d99a0 100644 --- a/demos/AVR/RT-TEENSY2-USB/cfg/chconf.h +++ b/demos/AVR/RT-TEENSY2-USB/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/AVR/TEST-SUITE-OSLIB/cfg/chconf.h b/demos/AVR/TEST-SUITE-OSLIB/cfg/chconf.h index b7a08766c..21d524490 100644 --- a/demos/AVR/TEST-SUITE-OSLIB/cfg/chconf.h +++ b/demos/AVR/TEST-SUITE-OSLIB/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/AVR/TEST-SUITE-RT/cfg/chconf.h b/demos/AVR/TEST-SUITE-RT/cfg/chconf.h index b7a08766c..21d524490 100644 --- a/demos/AVR/TEST-SUITE-RT/cfg/chconf.h +++ b/demos/AVR/TEST-SUITE-RT/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/LPC21xx/RT-LPC214x-OLIMEX/chconf.h b/demos/LPC21xx/RT-LPC214x-OLIMEX/chconf.h index 92b894001..e59cf831a 100644 --- a/demos/LPC21xx/RT-LPC214x-OLIMEX/chconf.h +++ b/demos/LPC21xx/RT-LPC214x-OLIMEX/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/RP/RT-RP2040-PICO/cfg/chconf.h b/demos/RP/RT-RP2040-PICO/cfg/chconf.h index c9c205a6c..fb2582e7b 100644 --- a/demos/RP/RT-RP2040-PICO/cfg/chconf.h +++ b/demos/RP/RT-RP2040-PICO/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/SPC5/RT-SPC560B-EVB/chconf.h b/demos/SPC5/RT-SPC560B-EVB/chconf.h index d16ff922d..532102526 100644 --- a/demos/SPC5/RT-SPC560B-EVB/chconf.h +++ b/demos/SPC5/RT-SPC560B-EVB/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/SPC5/RT-SPC560D-EVB/chconf.h b/demos/SPC5/RT-SPC560D-EVB/chconf.h index d16ff922d..532102526 100644 --- a/demos/SPC5/RT-SPC560D-EVB/chconf.h +++ b/demos/SPC5/RT-SPC560D-EVB/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/SPC5/RT-SPC560P-EVB/chconf.h b/demos/SPC5/RT-SPC560P-EVB/chconf.h index d16ff922d..532102526 100644 --- a/demos/SPC5/RT-SPC560P-EVB/chconf.h +++ b/demos/SPC5/RT-SPC560P-EVB/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/SPC5/RT-SPC563M-EVB/chconf.h b/demos/SPC5/RT-SPC563M-EVB/chconf.h index d16ff922d..532102526 100644 --- a/demos/SPC5/RT-SPC563M-EVB/chconf.h +++ b/demos/SPC5/RT-SPC563M-EVB/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/SPC5/RT-SPC564A-EVB/chconf.h b/demos/SPC5/RT-SPC564A-EVB/chconf.h index d16ff922d..532102526 100644 --- a/demos/SPC5/RT-SPC564A-EVB/chconf.h +++ b/demos/SPC5/RT-SPC564A-EVB/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/SPC5/RT-SPC56EC-EVB/chconf.h b/demos/SPC5/RT-SPC56EC-EVB/chconf.h index d16ff922d..532102526 100644 --- a/demos/SPC5/RT-SPC56EC-EVB/chconf.h +++ b/demos/SPC5/RT-SPC56EC-EVB/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/SPC5/RT-SPC56EL-EVB/chconf.h b/demos/SPC5/RT-SPC56EL-EVB/chconf.h index d16ff922d..532102526 100644 --- a/demos/SPC5/RT-SPC56EL-EVB/chconf.h +++ b/demos/SPC5/RT-SPC56EL-EVB/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/CMSIS-STM32F407-DISCOVERY/cfg/chconf.h b/demos/STM32/CMSIS-STM32F407-DISCOVERY/cfg/chconf.h index 10b398e96..9b38b6680 100644 --- a/demos/STM32/CMSIS-STM32F407-DISCOVERY/cfg/chconf.h +++ b/demos/STM32/CMSIS-STM32F407-DISCOVERY/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/NASA-OSAL-STM32F407-DISCOVERY/cfg/chconf.h b/demos/STM32/NASA-OSAL-STM32F407-DISCOVERY/cfg/chconf.h index f9b07a95f..519325ede 100644 --- a/demos/STM32/NASA-OSAL-STM32F407-DISCOVERY/cfg/chconf.h +++ b/demos/STM32/NASA-OSAL-STM32F407-DISCOVERY/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ @@ -703,8 +716,7 @@ * @details User fields added to the end of the @p thread_t structure. */ #define CH_CFG_THREAD_EXTRA_FIELDS \ - /* Add threads custom fields here.*/ \ - void *osal_delete_handler; + /* Add threads custom fields here.*/ /** * @brief Threads initialization hook. diff --git a/demos/STM32/NASA-OSAL-STM32F746G-DISCOVERY/cfg/chconf.h b/demos/STM32/NASA-OSAL-STM32F746G-DISCOVERY/cfg/chconf.h index 4ef290ccc..ff1fb186c 100644 --- a/demos/STM32/NASA-OSAL-STM32F746G-DISCOVERY/cfg/chconf.h +++ b/demos/STM32/NASA-OSAL-STM32F746G-DISCOVERY/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ @@ -703,8 +716,7 @@ * @details User fields added to the end of the @p thread_t structure. */ #define CH_CFG_THREAD_EXTRA_FIELDS \ - /* Add threads custom fields here.*/ \ - void *osal_delete_handler; + /* Add threads custom fields here.*/ /** * @brief Threads initialization hook. diff --git a/demos/STM32/RT-STM32-LWIP-FATFS-USB-HTTPS/cfg/stm32f746_discovery/chconf.h b/demos/STM32/RT-STM32-LWIP-FATFS-USB-HTTPS/cfg/stm32f746_discovery/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32-LWIP-FATFS-USB-HTTPS/cfg/stm32f746_discovery/chconf.h +++ b/demos/STM32/RT-STM32-LWIP-FATFS-USB-HTTPS/cfg/stm32f746_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f107_goldbull/chconf.h b/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f107_goldbull/chconf.h index 851bbbba7..837c1ba86 100644 --- a/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f107_goldbull/chconf.h +++ b/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f107_goldbull/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f407_olimex/chconf.h b/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f407_olimex/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f407_olimex/chconf.h +++ b/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f407_olimex/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f746_discovery/chconf.h b/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f746_discovery/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f746_discovery/chconf.h +++ b/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f746_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f769_discovery/chconf.h b/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f769_discovery/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f769_discovery/chconf.h +++ b/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f769_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F030R8-NUCLEO64/cfg/chconf.h b/demos/STM32/RT-STM32F030R8-NUCLEO64/cfg/chconf.h index e99aa6820..d92466d2e 100644 --- a/demos/STM32/RT-STM32F030R8-NUCLEO64/cfg/chconf.h +++ b/demos/STM32/RT-STM32F030R8-NUCLEO64/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F031K6-NUCLEO32/cfg/chconf.h b/demos/STM32/RT-STM32F031K6-NUCLEO32/cfg/chconf.h index b50d79248..741a7d1cd 100644 --- a/demos/STM32/RT-STM32F031K6-NUCLEO32/cfg/chconf.h +++ b/demos/STM32/RT-STM32F031K6-NUCLEO32/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F042K6-NUCLEO32/cfg/chconf.h b/demos/STM32/RT-STM32F042K6-NUCLEO32/cfg/chconf.h index cc4583b9e..9c0775849 100644 --- a/demos/STM32/RT-STM32F042K6-NUCLEO32/cfg/chconf.h +++ b/demos/STM32/RT-STM32F042K6-NUCLEO32/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F051-DISCOVERY/cfg/chconf.h b/demos/STM32/RT-STM32F051-DISCOVERY/cfg/chconf.h index cc4583b9e..9c0775849 100644 --- a/demos/STM32/RT-STM32F051-DISCOVERY/cfg/chconf.h +++ b/demos/STM32/RT-STM32F051-DISCOVERY/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F070RB-NUCLEO64/cfg/chconf.h b/demos/STM32/RT-STM32F070RB-NUCLEO64/cfg/chconf.h index cb1e05194..39f175d9a 100644 --- a/demos/STM32/RT-STM32F070RB-NUCLEO64/cfg/chconf.h +++ b/demos/STM32/RT-STM32F070RB-NUCLEO64/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F072-DISCOVERY/cfg/chconf.h b/demos/STM32/RT-STM32F072-DISCOVERY/cfg/chconf.h index cc4583b9e..9c0775849 100644 --- a/demos/STM32/RT-STM32F072-DISCOVERY/cfg/chconf.h +++ b/demos/STM32/RT-STM32F072-DISCOVERY/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F072RB-NUCLEO64/cfg/chconf.h b/demos/STM32/RT-STM32F072RB-NUCLEO64/cfg/chconf.h index cc4583b9e..9c0775849 100644 --- a/demos/STM32/RT-STM32F072RB-NUCLEO64/cfg/chconf.h +++ b/demos/STM32/RT-STM32F072RB-NUCLEO64/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F091RC-NUCLEO64/cfg/chconf.h b/demos/STM32/RT-STM32F091RC-NUCLEO64/cfg/chconf.h index cc4583b9e..9c0775849 100644 --- a/demos/STM32/RT-STM32F091RC-NUCLEO64/cfg/chconf.h +++ b/demos/STM32/RT-STM32F091RC-NUCLEO64/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F100-DISCOVERY/cfg/chconf.h b/demos/STM32/RT-STM32F100-DISCOVERY/cfg/chconf.h index d9da20a89..82fab5fcc 100644 --- a/demos/STM32/RT-STM32F100-DISCOVERY/cfg/chconf.h +++ b/demos/STM32/RT-STM32F100-DISCOVERY/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F103-MAPLEMINI/cfg/chconf.h b/demos/STM32/RT-STM32F103-MAPLEMINI/cfg/chconf.h index 0e8d56e0b..2a71801dc 100644 --- a/demos/STM32/RT-STM32F103-MAPLEMINI/cfg/chconf.h +++ b/demos/STM32/RT-STM32F103-MAPLEMINI/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103-FATFS/cfg/chconf.h b/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103-FATFS/cfg/chconf.h index 0e8d56e0b..2a71801dc 100755 --- a/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103-FATFS/cfg/chconf.h +++ b/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103-FATFS/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103/cfg/chconf.h b/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103/cfg/chconf.h index 0e8d56e0b..2a71801dc 100644 --- a/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103/cfg/chconf.h +++ b/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F103-STM3210E_EVAL-FATFS-USB/cfg/chconf.h b/demos/STM32/RT-STM32F103-STM3210E_EVAL-FATFS-USB/cfg/chconf.h index 0e8d56e0b..2a71801dc 100644 --- a/demos/STM32/RT-STM32F103-STM3210E_EVAL-FATFS-USB/cfg/chconf.h +++ b/demos/STM32/RT-STM32F103-STM3210E_EVAL-FATFS-USB/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F103RB-NUCLEO64/cfg/chconf.h b/demos/STM32/RT-STM32F103RB-NUCLEO64/cfg/chconf.h index 97a734e76..d450231b3 100644 --- a/demos/STM32/RT-STM32F103RB-NUCLEO64/cfg/chconf.h +++ b/demos/STM32/RT-STM32F103RB-NUCLEO64/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F107-OLIMEX_P107-LWIP/cfg/chconf.h b/demos/STM32/RT-STM32F107-OLIMEX_P107-LWIP/cfg/chconf.h index 67a773ef1..1cd04f8dd 100644 --- a/demos/STM32/RT-STM32F107-OLIMEX_P107-LWIP/cfg/chconf.h +++ b/demos/STM32/RT-STM32F107-OLIMEX_P107-LWIP/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F302R8-NUCLEO64/cfg/chconf.h b/demos/STM32/RT-STM32F302R8-NUCLEO64/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32F302R8-NUCLEO64/cfg/chconf.h +++ b/demos/STM32/RT-STM32F302R8-NUCLEO64/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F303-DISCOVERY/cfg/chconf.h b/demos/STM32/RT-STM32F303-DISCOVERY/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32F303-DISCOVERY/cfg/chconf.h +++ b/demos/STM32/RT-STM32F303-DISCOVERY/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F303K8-NUCLEO32/cfg/chconf.h b/demos/STM32/RT-STM32F303K8-NUCLEO32/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32F303K8-NUCLEO32/cfg/chconf.h +++ b/demos/STM32/RT-STM32F303K8-NUCLEO32/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F303RE-NUCLEO64/cfg/chconf.h b/demos/STM32/RT-STM32F303RE-NUCLEO64/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32F303RE-NUCLEO64/cfg/chconf.h +++ b/demos/STM32/RT-STM32F303RE-NUCLEO64/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F303ZE-NUCLEO144/cfg/chconf.h b/demos/STM32/RT-STM32F303ZE-NUCLEO144/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32F303ZE-NUCLEO144/cfg/chconf.h +++ b/demos/STM32/RT-STM32F303ZE-NUCLEO144/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F334-DISCOVERY/cfg/chconf.h b/demos/STM32/RT-STM32F334-DISCOVERY/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32F334-DISCOVERY/cfg/chconf.h +++ b/demos/STM32/RT-STM32F334-DISCOVERY/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F334R8-NUCLEO64/cfg/chconf.h b/demos/STM32/RT-STM32F334R8-NUCLEO64/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32F334R8-NUCLEO64/cfg/chconf.h +++ b/demos/STM32/RT-STM32F334R8-NUCLEO64/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F373-STM32373C_EVAL/cfg/chconf.h b/demos/STM32/RT-STM32F373-STM32373C_EVAL/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32F373-STM32373C_EVAL/cfg/chconf.h +++ b/demos/STM32/RT-STM32F373-STM32373C_EVAL/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F401C-DISCOVERY/cfg/chconf.h b/demos/STM32/RT-STM32F401C-DISCOVERY/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32F401C-DISCOVERY/cfg/chconf.h +++ b/demos/STM32/RT-STM32F401C-DISCOVERY/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F401RE-NUCLEO64/cfg/chconf.h b/demos/STM32/RT-STM32F401RE-NUCLEO64/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32F401RE-NUCLEO64/cfg/chconf.h +++ b/demos/STM32/RT-STM32F401RE-NUCLEO64/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F407-DISCOVERY-G++/cfg/chconf.h b/demos/STM32/RT-STM32F407-DISCOVERY-G++/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32F407-DISCOVERY-G++/cfg/chconf.h +++ b/demos/STM32/RT-STM32F407-DISCOVERY-G++/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F407-DISCOVERY/cfg/chconf.h b/demos/STM32/RT-STM32F407-DISCOVERY/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32F407-DISCOVERY/cfg/chconf.h +++ b/demos/STM32/RT-STM32F407-DISCOVERY/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F410RB-NUCLEO64/cfg/chconf.h b/demos/STM32/RT-STM32F410RB-NUCLEO64/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32F410RB-NUCLEO64/cfg/chconf.h +++ b/demos/STM32/RT-STM32F410RB-NUCLEO64/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F411RE-NUCLEO64/cfg/chconf.h b/demos/STM32/RT-STM32F411RE-NUCLEO64/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32F411RE-NUCLEO64/cfg/chconf.h +++ b/demos/STM32/RT-STM32F411RE-NUCLEO64/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F412ZG-NUCLEO144/cfg/chconf.h b/demos/STM32/RT-STM32F412ZG-NUCLEO144/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32F412ZG-NUCLEO144/cfg/chconf.h +++ b/demos/STM32/RT-STM32F412ZG-NUCLEO144/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F413ZH-NUCLEO144/cfg/chconf.h b/demos/STM32/RT-STM32F413ZH-NUCLEO144/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32F413ZH-NUCLEO144/cfg/chconf.h +++ b/demos/STM32/RT-STM32F413ZH-NUCLEO144/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F429-DISCOVERY/cfg/chconf.h b/demos/STM32/RT-STM32F429-DISCOVERY/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32F429-DISCOVERY/cfg/chconf.h +++ b/demos/STM32/RT-STM32F429-DISCOVERY/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F429ZI-NUCLEO144/cfg/chconf.h b/demos/STM32/RT-STM32F429ZI-NUCLEO144/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32F429ZI-NUCLEO144/cfg/chconf.h +++ b/demos/STM32/RT-STM32F429ZI-NUCLEO144/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F446RE-NUCLEO64/cfg/chconf.h b/demos/STM32/RT-STM32F446RE-NUCLEO64/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32F446RE-NUCLEO64/cfg/chconf.h +++ b/demos/STM32/RT-STM32F446RE-NUCLEO64/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F446ZE-NUCLEO144/cfg/chconf.h b/demos/STM32/RT-STM32F446ZE-NUCLEO144/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32F446ZE-NUCLEO144/cfg/chconf.h +++ b/demos/STM32/RT-STM32F446ZE-NUCLEO144/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F469I-DISCOVERY/cfg/chconf.h b/demos/STM32/RT-STM32F469I-DISCOVERY/cfg/chconf.h index 897f2e472..e2d25dc11 100644 --- a/demos/STM32/RT-STM32F469I-DISCOVERY/cfg/chconf.h +++ b/demos/STM32/RT-STM32F469I-DISCOVERY/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F469I-EVAL-SDP-CK1Z/cfg/chconf.h b/demos/STM32/RT-STM32F469I-EVAL-SDP-CK1Z/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32F469I-EVAL-SDP-CK1Z/cfg/chconf.h +++ b/demos/STM32/RT-STM32F469I-EVAL-SDP-CK1Z/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F722ZE-NUCLEO144/cfg/chconf.h b/demos/STM32/RT-STM32F722ZE-NUCLEO144/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32F722ZE-NUCLEO144/cfg/chconf.h +++ b/demos/STM32/RT-STM32F722ZE-NUCLEO144/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F746G-DISCOVERY/cfg/chconf.h b/demos/STM32/RT-STM32F746G-DISCOVERY/cfg/chconf.h index 897f2e472..e2d25dc11 100644 --- a/demos/STM32/RT-STM32F746G-DISCOVERY/cfg/chconf.h +++ b/demos/STM32/RT-STM32F746G-DISCOVERY/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F746ZG-NUCLEO144/cfg/chconf.h b/demos/STM32/RT-STM32F746ZG-NUCLEO144/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32F746ZG-NUCLEO144/cfg/chconf.h +++ b/demos/STM32/RT-STM32F746ZG-NUCLEO144/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F756ZG-NUCLEO144/cfg/chconf.h b/demos/STM32/RT-STM32F756ZG-NUCLEO144/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32F756ZG-NUCLEO144/cfg/chconf.h +++ b/demos/STM32/RT-STM32F756ZG-NUCLEO144/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F767ZI-NUCLEO144/cfg/chconf.h b/demos/STM32/RT-STM32F767ZI-NUCLEO144/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32F767ZI-NUCLEO144/cfg/chconf.h +++ b/demos/STM32/RT-STM32F767ZI-NUCLEO144/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32F769I-DISCOVERY/cfg/chconf.h b/demos/STM32/RT-STM32F769I-DISCOVERY/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32F769I-DISCOVERY/cfg/chconf.h +++ b/demos/STM32/RT-STM32F769I-DISCOVERY/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32G031K8-NUCLEO32/cfg/chconf.h b/demos/STM32/RT-STM32G031K8-NUCLEO32/cfg/chconf.h index cc4583b9e..9c0775849 100644 --- a/demos/STM32/RT-STM32G031K8-NUCLEO32/cfg/chconf.h +++ b/demos/STM32/RT-STM32G031K8-NUCLEO32/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32G071RB-NUCLEO64/cfg/chconf.h b/demos/STM32/RT-STM32G071RB-NUCLEO64/cfg/chconf.h index cc4583b9e..9c0775849 100644 --- a/demos/STM32/RT-STM32G071RB-NUCLEO64/cfg/chconf.h +++ b/demos/STM32/RT-STM32G071RB-NUCLEO64/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32G0B1RE-NUCLEO64/cfg/chconf.h b/demos/STM32/RT-STM32G0B1RE-NUCLEO64/cfg/chconf.h index cc4583b9e..9c0775849 100644 --- a/demos/STM32/RT-STM32G0B1RE-NUCLEO64/cfg/chconf.h +++ b/demos/STM32/RT-STM32G0B1RE-NUCLEO64/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32G431RB-NUCLEO64/cfg/chconf.h b/demos/STM32/RT-STM32G431RB-NUCLEO64/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32G431RB-NUCLEO64/cfg/chconf.h +++ b/demos/STM32/RT-STM32G431RB-NUCLEO64/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32G474RE-DISCOVERY-DPOW1/cfg/chconf.h b/demos/STM32/RT-STM32G474RE-DISCOVERY-DPOW1/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32G474RE-DISCOVERY-DPOW1/cfg/chconf.h +++ b/demos/STM32/RT-STM32G474RE-DISCOVERY-DPOW1/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_DYNAMIC/cfg/chconf.h b/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_DYNAMIC/cfg/chconf.h index dd164cdcb..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_DYNAMIC/cfg/chconf.h +++ b/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_DYNAMIC/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ @@ -822,9 +835,6 @@ /* Port-specific settings (override port settings defaulted in chcore.h). */ /*===========================================================================*/ -#define PORT_USE_SYSCALL TRUE -#define PORT_SWITCHED_REGIONS_NUMBER 2 - #endif /* CHCONF_H */ /** @} */ diff --git a/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_DYNAMIC/main.c b/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_DYNAMIC/main.c index 5a0c3f12d..dc1bf2323 100644 --- a/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_DYNAMIC/main.c +++ b/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_DYNAMIC/main.c @@ -26,17 +26,19 @@ /* Sandbox 1 configuration.*/ static const sb_config_t sb_config1 = { - .code_region = 0U, - .data_region = 1U, - .regions = { + .code_region = 0U, + .data_region = 1U, + .regions = { [0] = { - {STARTUP_FLASH1_BASE, STARTUP_FLASH1_SIZE}, false + .area = {STARTUP_FLASH1_BASE, STARTUP_FLASH1_SIZE}, + .writeable = false }, [1] = { - {STARTUP_RAM1_BASE, STARTUP_RAM1_SIZE}, true + .area = {STARTUP_RAM1_BASE, STARTUP_RAM1_SIZE}, + .writeable = true } }, - .mpuregs = { + .mpuregs = { [0] = { (uint32_t)STARTUP_FLASH1_BASE, MPU_RASR_ATTR_AP_RO_RO | MPU_RASR_ATTR_CACHEABLE_WT_NWA | @@ -50,24 +52,26 @@ static const sb_config_t sb_config1 = { MPU_RASR_ENABLE } }, - .stdin_stream = (SandboxStream *)&LPSD1, - .stdout_stream = (SandboxStream *)&LPSD1, - .stderr_stream = (SandboxStream *)&LPSD1 + .stdin_stream = (SandboxStream *)&LPSD1, + .stdout_stream = (SandboxStream *)&LPSD1, + .stderr_stream = (SandboxStream *)&LPSD1 }; /* Sandbox 2 configuration.*/ static const sb_config_t sb_config2 = { - .code_region = 0U, - .data_region = 1U, - .regions = { + .code_region = 0U, + .data_region = 1U, + .regions = { [0] = { - {STARTUP_FLASH2_BASE, STARTUP_FLASH2_SIZE}, false + .area = {STARTUP_FLASH2_BASE, STARTUP_FLASH2_SIZE}, + .writeable = false }, [1] = { - {STARTUP_RAM2_BASE, STARTUP_RAM2_SIZE}, true + .area = {STARTUP_RAM2_BASE, STARTUP_RAM2_SIZE}, + .writeable = true } }, - .mpuregs = { + .mpuregs = { [0] = { (uint32_t)STARTUP_FLASH2_BASE, MPU_RASR_ATTR_AP_RO_RO | MPU_RASR_ATTR_CACHEABLE_WT_NWA | @@ -81,9 +85,9 @@ static const sb_config_t sb_config2 = { MPU_RASR_ENABLE } }, - .stdin_stream = (SandboxStream *)&LPSD1, - .stdout_stream = (SandboxStream *)&LPSD1, - .stderr_stream = (SandboxStream *)&LPSD1 + .stdin_stream = (SandboxStream *)&LPSD1, + .stdout_stream = (SandboxStream *)&LPSD1, + .stderr_stream = (SandboxStream *)&LPSD1 }; /* Sandbox objects.*/ diff --git a/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_STATIC/cfg/chconf.h b/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_STATIC/cfg/chconf.h index 4694dd614..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_STATIC/cfg/chconf.h +++ b/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_STATIC/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ @@ -822,8 +835,6 @@ /* Port-specific settings (override port settings defaulted in chcore.h). */ /*===========================================================================*/ -#define PORT_USE_SYSCALL TRUE - #endif /* CHCONF_H */ /** @} */ diff --git a/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_STATIC/main.c b/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_STATIC/main.c index cb79d1a99..cfba61ca1 100644 --- a/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_STATIC/main.c +++ b/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_STATIC/main.c @@ -26,36 +26,40 @@ /* Sandbox 1 configuration.*/ static const sb_config_t sb_config1 = { - .code_region = 0U, - .data_region = 1U, - .regions = { + .code_region = 0U, + .data_region = 1U, + .regions = { [0] = { - {STARTUP_FLASH1_BASE, STARTUP_FLASH1_SIZE}, false + .area = {STARTUP_FLASH1_BASE, STARTUP_FLASH1_SIZE}, + .writeable = false }, [1] = { - {STARTUP_RAM1_BASE, STARTUP_RAM1_SIZE}, true + .area = {STARTUP_RAM1_BASE, STARTUP_RAM1_SIZE}, + .writeable = true } }, - .stdin_stream = (SandboxStream *)&LPSD1, - .stdout_stream = (SandboxStream *)&LPSD1, - .stderr_stream = (SandboxStream *)&LPSD1 + .stdin_stream = (SandboxStream *)&LPSD1, + .stdout_stream = (SandboxStream *)&LPSD1, + .stderr_stream = (SandboxStream *)&LPSD1 }; /* Sandbox 2 configuration.*/ static const sb_config_t sb_config2 = { - .code_region = 0U, - .data_region = 1U, - .regions = { + .code_region = 0U, + .data_region = 1U, + .regions = { [0] = { - {STARTUP_FLASH2_BASE, STARTUP_FLASH2_SIZE}, false + .area = {STARTUP_FLASH2_BASE, STARTUP_FLASH2_SIZE}, + .writeable = false }, [1] = { - {STARTUP_RAM2_BASE, STARTUP_RAM2_SIZE}, true + .area = {STARTUP_RAM2_BASE, STARTUP_RAM2_SIZE}, + .writeable = true } }, - .stdin_stream = (SandboxStream *)&LPSD1, - .stdout_stream = (SandboxStream *)&LPSD1, - .stderr_stream = (SandboxStream *)&LPSD1 + .stdin_stream = (SandboxStream *)&LPSD1, + .stdout_stream = (SandboxStream *)&LPSD1, + .stderr_stream = (SandboxStream *)&LPSD1 }; /* Sandbox objects.*/ diff --git a/demos/STM32/RT-STM32G474RE-NUCLEO64/cfg/chconf.h b/demos/STM32/RT-STM32G474RE-NUCLEO64/cfg/chconf.h index 1e9c0e3ba..c27c1320a 100644 --- a/demos/STM32/RT-STM32G474RE-NUCLEO64/cfg/chconf.h +++ b/demos/STM32/RT-STM32G474RE-NUCLEO64/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32H743ZI_REV_XY-NUCLEO144/cfg/chconf.h b/demos/STM32/RT-STM32H743ZI_REV_XY-NUCLEO144/cfg/chconf.h index 897f2e472..e2d25dc11 100644 --- a/demos/STM32/RT-STM32H743ZI_REV_XY-NUCLEO144/cfg/chconf.h +++ b/demos/STM32/RT-STM32H743ZI_REV_XY-NUCLEO144/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32H750XB-DISCOVERY/cfg/chconf.h b/demos/STM32/RT-STM32H750XB-DISCOVERY/cfg/chconf.h index 897f2e472..e2d25dc11 100644 --- a/demos/STM32/RT-STM32H750XB-DISCOVERY/cfg/chconf.h +++ b/demos/STM32/RT-STM32H750XB-DISCOVERY/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32H755ZI-NUCLEO144/cfg/chconf.h b/demos/STM32/RT-STM32H755ZI-NUCLEO144/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32H755ZI-NUCLEO144/cfg/chconf.h +++ b/demos/STM32/RT-STM32H755ZI-NUCLEO144/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32H755ZI_M4-NUCLEO144/cfg/chconf.h b/demos/STM32/RT-STM32H755ZI_M4-NUCLEO144/cfg/chconf.h index 897f2e472..e2d25dc11 100644 --- a/demos/STM32/RT-STM32H755ZI_M4-NUCLEO144/cfg/chconf.h +++ b/demos/STM32/RT-STM32H755ZI_M4-NUCLEO144/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32L031K6-NUCLEO32/cfg/chconf.h b/demos/STM32/RT-STM32L031K6-NUCLEO32/cfg/chconf.h index e99aa6820..d92466d2e 100644 --- a/demos/STM32/RT-STM32L031K6-NUCLEO32/cfg/chconf.h +++ b/demos/STM32/RT-STM32L031K6-NUCLEO32/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32L053-DISCOVERY/cfg/chconf.h b/demos/STM32/RT-STM32L053-DISCOVERY/cfg/chconf.h index e99aa6820..d92466d2e 100644 --- a/demos/STM32/RT-STM32L053-DISCOVERY/cfg/chconf.h +++ b/demos/STM32/RT-STM32L053-DISCOVERY/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32L053R8-NUCLEO64/cfg/chconf.h b/demos/STM32/RT-STM32L053R8-NUCLEO64/cfg/chconf.h index e99aa6820..d92466d2e 100644 --- a/demos/STM32/RT-STM32L053R8-NUCLEO64/cfg/chconf.h +++ b/demos/STM32/RT-STM32L053R8-NUCLEO64/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32L073RZ-NUCLEO64/cfg/chconf.h b/demos/STM32/RT-STM32L073RZ-NUCLEO64/cfg/chconf.h index e99aa6820..d92466d2e 100644 --- a/demos/STM32/RT-STM32L073RZ-NUCLEO64/cfg/chconf.h +++ b/demos/STM32/RT-STM32L073RZ-NUCLEO64/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32L152-DISCOVERY/cfg/chconf.h b/demos/STM32/RT-STM32L152-DISCOVERY/cfg/chconf.h index d9da20a89..82fab5fcc 100644 --- a/demos/STM32/RT-STM32L152-DISCOVERY/cfg/chconf.h +++ b/demos/STM32/RT-STM32L152-DISCOVERY/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32L152RE-NUCLEO64/cfg/chconf.h b/demos/STM32/RT-STM32L152RE-NUCLEO64/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32L152RE-NUCLEO64/cfg/chconf.h +++ b/demos/STM32/RT-STM32L152RE-NUCLEO64/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32L432KC-NUCLEO32/cfg/chconf.h b/demos/STM32/RT-STM32L432KC-NUCLEO32/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32L432KC-NUCLEO32/cfg/chconf.h +++ b/demos/STM32/RT-STM32L432KC-NUCLEO32/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32L452RE-NUCLEO64-P/cfg/chconf.h b/demos/STM32/RT-STM32L452RE-NUCLEO64-P/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32L452RE-NUCLEO64-P/cfg/chconf.h +++ b/demos/STM32/RT-STM32L452RE-NUCLEO64-P/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32L476-DISCOVERY/cfg/chconf.h b/demos/STM32/RT-STM32L476-DISCOVERY/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32L476-DISCOVERY/cfg/chconf.h +++ b/demos/STM32/RT-STM32L476-DISCOVERY/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32L476RG-NUCLEO64/cfg/chconf.h b/demos/STM32/RT-STM32L476RG-NUCLEO64/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32L476RG-NUCLEO64/cfg/chconf.h +++ b/demos/STM32/RT-STM32L476RG-NUCLEO64/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32L496ZG-NUCLEO144/cfg/chconf.h b/demos/STM32/RT-STM32L496ZG-NUCLEO144/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32L496ZG-NUCLEO144/cfg/chconf.h +++ b/demos/STM32/RT-STM32L496ZG-NUCLEO144/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32L4P5ZG-NUCLEO144/cfg/chconf.h b/demos/STM32/RT-STM32L4P5ZG-NUCLEO144/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32L4P5ZG-NUCLEO144/cfg/chconf.h +++ b/demos/STM32/RT-STM32L4P5ZG-NUCLEO144/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/cfg/chconf.h b/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/cfg/chconf.h +++ b/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32L4R9-DISCOVERY/cfg/chconf.h b/demos/STM32/RT-STM32L4R9-DISCOVERY/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32L4R9-DISCOVERY/cfg/chconf.h +++ b/demos/STM32/RT-STM32L4R9-DISCOVERY/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32L552ZE-NUCLEO144-TZ_GUEST/cfg/chconf.h b/demos/STM32/RT-STM32L552ZE-NUCLEO144-TZ_GUEST/cfg/chconf.h index 4b690b3b6..b86ca27c5 100644 --- a/demos/STM32/RT-STM32L552ZE-NUCLEO144-TZ_GUEST/cfg/chconf.h +++ b/demos/STM32/RT-STM32L552ZE-NUCLEO144-TZ_GUEST/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32L552ZE-NUCLEO144-TZ_HOST/cfg/chconf.h b/demos/STM32/RT-STM32L552ZE-NUCLEO144-TZ_HOST/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32L552ZE-NUCLEO144-TZ_HOST/cfg/chconf.h +++ b/demos/STM32/RT-STM32L552ZE-NUCLEO144-TZ_HOST/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32L552ZE-NUCLEO144/cfg/chconf.h b/demos/STM32/RT-STM32L552ZE-NUCLEO144/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/demos/STM32/RT-STM32L552ZE-NUCLEO144/cfg/chconf.h +++ b/demos/STM32/RT-STM32L552ZE-NUCLEO144/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32MP157A-DK1/cfg/chconf.h b/demos/STM32/RT-STM32MP157A-DK1/cfg/chconf.h index de0560a05..a7383763d 100644 --- a/demos/STM32/RT-STM32MP157A-DK1/cfg/chconf.h +++ b/demos/STM32/RT-STM32MP157A-DK1/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32WB55CG-NUCLEO48_USB/cfg/chconf.h b/demos/STM32/RT-STM32WB55CG-NUCLEO48_USB/cfg/chconf.h index 52db15f88..5ffab46f4 100644 --- a/demos/STM32/RT-STM32WB55CG-NUCLEO48_USB/cfg/chconf.h +++ b/demos/STM32/RT-STM32WB55CG-NUCLEO48_USB/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32WB55RG-NUCLEO68/cfg/chconf.h b/demos/STM32/RT-STM32WB55RG-NUCLEO68/cfg/chconf.h index 52db15f88..5ffab46f4 100644 --- a/demos/STM32/RT-STM32WB55RG-NUCLEO68/cfg/chconf.h +++ b/demos/STM32/RT-STM32WB55RG-NUCLEO68/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-STM32WL55JC-NUCLEO64/cfg/chconf.h b/demos/STM32/RT-STM32WL55JC-NUCLEO64/cfg/chconf.h index 52db15f88..5ffab46f4 100644 --- a/demos/STM32/RT-STM32WL55JC-NUCLEO64/cfg/chconf.h +++ b/demos/STM32/RT-STM32WL55JC-NUCLEO64/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-VFS-FATFS/cfg/stm32g474re_nucleo64/chconf.h b/demos/STM32/RT-VFS-FATFS/cfg/stm32g474re_nucleo64/chconf.h index 568d7dbcb..139d18a01 100644 --- a/demos/STM32/RT-VFS-FATFS/cfg/stm32g474re_nucleo64/chconf.h +++ b/demos/STM32/RT-VFS-FATFS/cfg/stm32g474re_nucleo64/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/STM32/RT-VFS-FATFS/cfg/stm32l4r9ai_discovery/chconf.h b/demos/STM32/RT-VFS-FATFS/cfg/stm32l4r9ai_discovery/chconf.h index 568d7dbcb..139d18a01 100644 --- a/demos/STM32/RT-VFS-FATFS/cfg/stm32l4r9ai_discovery/chconf.h +++ b/demos/STM32/RT-VFS-FATFS/cfg/stm32l4r9ai_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/various/RT-ARM7-GENERIC/chconf.h b/demos/various/RT-ARM7-GENERIC/chconf.h index 92b894001..e59cf831a 100644 --- a/demos/various/RT-ARM7-GENERIC/chconf.h +++ b/demos/various/RT-ARM7-GENERIC/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/various/RT-ARMCM0-GENERIC/cfg/chconf.h b/demos/various/RT-ARMCM0-GENERIC/cfg/chconf.h index 92b894001..e59cf831a 100644 --- a/demos/various/RT-ARMCM0-GENERIC/cfg/chconf.h +++ b/demos/various/RT-ARMCM0-GENERIC/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/various/RT-ARMCM4-GENERIC/cfg/chconf.h b/demos/various/RT-ARMCM4-GENERIC/cfg/chconf.h index 67a773ef1..1cd04f8dd 100644 --- a/demos/various/RT-ARMCM4-GENERIC/cfg/chconf.h +++ b/demos/various/RT-ARMCM4-GENERIC/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/various/RT-ARMCM4-MAKELIB/cfg/chconf.h b/demos/various/RT-ARMCM4-MAKELIB/cfg/chconf.h index 67a773ef1..1cd04f8dd 100644 --- a/demos/various/RT-ARMCM4-MAKELIB/cfg/chconf.h +++ b/demos/various/RT-ARMCM4-MAKELIB/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/various/RT-Posix-Simulator/cfg/chconf.h b/demos/various/RT-Posix-Simulator/cfg/chconf.h index d5b9c3acc..0b84751ae 100755 --- a/demos/various/RT-Posix-Simulator/cfg/chconf.h +++ b/demos/various/RT-Posix-Simulator/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/demos/various/RT-Win32-Simulator/cfg/chconf.h b/demos/various/RT-Win32-Simulator/cfg/chconf.h index 244f0626d..b2dd2164a 100644 --- a/demos/various/RT-Win32-Simulator/cfg/chconf.h +++ b/demos/various/RT-Win32-Simulator/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/os/rt/include/chchecks.h b/os/rt/include/chchecks.h index f5eef3203..ced386a79 100644 --- a/os/rt/include/chchecks.h +++ b/os/rt/include/chchecks.h @@ -53,6 +53,14 @@ #error "CH_CFG_SMP_MODE not defined in chconf.h" #endif +#if !defined(CH_CFG_HARDENING_LEVEL) +#error "CH_CFG_HARDENING_LEVEL not defined in chconf.h" +#endif + +#if (CH_CFG_HARDENING_LEVEL < 0) || (CH_CFG_HARDENING_LEVEL > 2) +#error "invalid CH_CFG_HARDENING_LEVEL value in chconf.h" +#endif + /* System timers checks.*/ #if !defined(CH_CFG_ST_RESOLUTION) #error "CH_CFG_ST_RESOLUTION not defined in chconf.h" diff --git a/os/rt/src/chcond.c b/os/rt/src/chcond.c index e08cdf823..d52e1ed95 100644 --- a/os/rt/src/chcond.c +++ b/os/rt/src/chcond.c @@ -86,8 +86,8 @@ void chCondObjectInit(condition_variable_t *cp) { * @note Objects disposing does not involve freeing memory but just * performing checks that make sure that the object is in a * state compatible with operations stop. - * @note If the option @p CH_CFG_ENABLE_HARDENING is enabled then the - * object is also cleared, attempts to use the object would likely + * @note If the option @p CH_CFG_HARDENING_LEVEL is greater than zero then + * the object is also cleared, attempts to use the object would likely * result in a clean memory access violation because dereferencing * of @p NULL pointers rather than dereferencing previously valid * pointers. @@ -102,7 +102,7 @@ void chCondObjectDispose(condition_variable_t *cp) { chDbgAssert(ch_queue_isempty(&cp->queue), "object in use"); -#if 0 /*CH_CFG_ENABLE_HARDENING == TRUE*/ +#if CH_CFG_HARDENING_LEVEL > 0 memset((void *)cp, 0, sizeof (condition_variable_t)); #endif } diff --git a/os/rt/src/chevents.c b/os/rt/src/chevents.c index c8c4895ca..75ca3f025 100644 --- a/os/rt/src/chevents.c +++ b/os/rt/src/chevents.c @@ -108,8 +108,8 @@ void chEvtObjectInit(event_source_t *esp) { * @note Objects disposing does not involve freeing memory but just * performing checks that make sure that the object is in a * state compatible with operations stop. - * @note If the option @p CH_CFG_ENABLE_HARDENING is enabled then the - * object is also cleared, attempts to use the object would likely + * @note If the option @p CH_CFG_HARDENING_LEVEL is greater than zero then + * the object is also cleared, attempts to use the object would likely * result in a clean memory access violation because dereferencing * of @p NULL pointers rather than dereferencing previously valid * pointers. @@ -123,7 +123,7 @@ void chEvtObjectDispose(event_source_t *esp) { chDbgCheck(esp != NULL); chDbgAssert(esp->next != (event_listener_t *)esp, "object in use"); -#if 0 /*CH_CFG_ENABLE_HARDENING == TRUE*/ +#if CH_CFG_HARDENING_LEVEL > 0 memset((void *)esp, 0, sizeof (event_source_t)); #endif } diff --git a/os/rt/src/chmtx.c b/os/rt/src/chmtx.c index f0b0e76be..fa2d5be90 100644 --- a/os/rt/src/chmtx.c +++ b/os/rt/src/chmtx.c @@ -118,8 +118,8 @@ void chMtxObjectInit(mutex_t *mp) { * @note Objects disposing does not involve freeing memory but just * performing checks that make sure that the object is in a * state compatible with operations stop. - * @note If the option @p CH_CFG_ENABLE_HARDENING is enabled then the - * object is also cleared, attempts to use the object would likely + * @note If the option @p CH_CFG_HARDENING_LEVEL is greater than zero then + * the object is also cleared, attempts to use the object would likely * result in a clean memory access violation because dereferencing * of @p NULL pointers rather than dereferencing previously valid * pointers. @@ -137,7 +137,7 @@ void chMtxObjectDispose(mutex_t *mp) { chDbgAssert(mp->cnt == (cnt_t)0, "object in use"); #endif -#if 0 /*CH_CFG_ENABLE_HARDENING == TRUE*/ +#if CH_CFG_HARDENING_LEVEL > 0 memset((void *)mp, 0, sizeof (mutex_t)); #endif } diff --git a/os/rt/src/chsem.c b/os/rt/src/chsem.c index 2d6cb063f..02a09dad9 100644 --- a/os/rt/src/chsem.c +++ b/os/rt/src/chsem.c @@ -109,8 +109,8 @@ void chSemObjectInit(semaphore_t *sp, cnt_t n) { * @note Objects disposing does not involve freeing memory but just * performing checks that make sure that the object is in a * state compatible with operations stop. - * @note If the option @p CH_CFG_ENABLE_HARDENING is enabled then the - * object is also cleared, attempts to use the object would likely + * @note If the option @p CH_CFG_HARDENING_LEVEL is greater than zero then + * the object is also cleared, attempts to use the object would likely * result in a clean memory access violation because dereferencing * of @p NULL pointers rather than dereferencing previously valid * pointers. @@ -125,7 +125,7 @@ void chSemObjectDispose(semaphore_t *sp) { chDbgAssert(ch_queue_isempty(&sp->queue) && (sp->cnt >= (cnt_t)0), "object in use"); -#if 0 /*CH_CFG_ENABLE_HARDENING == TRUE*/ +#if CH_CFG_HARDENING_LEVEL > 0 memset((void *)sp, 0, sizeof (semaphore_t)); #endif } diff --git a/os/rt/src/chthreads.c b/os/rt/src/chthreads.c index 2a42b45e9..b30d0deca 100644 --- a/os/rt/src/chthreads.c +++ b/os/rt/src/chthreads.c @@ -865,8 +865,8 @@ void chThdQueueObjectInit(threads_queue_t *tqp) { * @note Objects disposing does not involve freeing memory but just * performing checks that make sure that the object is in a * state compatible with operations stop. - * @note If the option @p CH_CFG_ENABLE_HARDENING is enabled then the - * object is also cleared, attempts to use the object would likely + * @note If the option @p CH_CFG_HARDENING_LEVEL is greater than zero then + * the object is also cleared, attempts to use the object would likely * result in a clean memory access violation because dereferencing * of @p NULL pointers rather than dereferencing previously valid * pointers. @@ -881,7 +881,7 @@ void chThdObjectDispose(threads_queue_t *tqp) { chDbgAssert(ch_queue_isempty(&tqp->queue), "object in use"); -#if 0 /*CH_CFG_ENABLE_HARDENING == TRUE*/ +#if CH_CFG_HARDENING_LEVEL > 0 memset((void *)tqp, 0, sizeof (threads_queue_t)); #endif } diff --git a/os/rt/src/chtm.c b/os/rt/src/chtm.c index a2b397abf..88d4fdc25 100644 --- a/os/rt/src/chtm.c +++ b/os/rt/src/chtm.c @@ -92,8 +92,8 @@ void chTMObjectInit(time_measurement_t *tmp) { * @note Objects disposing does not involve freeing memory but just * performing checks that make sure that the object is in a * state compatible with operations stop. - * @note If the option @p CH_CFG_ENABLE_HARDENING is enabled then the - * object is also cleared, attempts to use the object would likely + * @note If the option @p CH_CFG_HARDENING_LEVEL is greater than zero then + * the object is also cleared, attempts to use the object would likely * result in a clean memory access violation because dereferencing * of @p NULL pointers rather than dereferencing previously valid * pointers. @@ -106,8 +106,8 @@ void chTMObjectDispose(time_measurement_t *tmp) { chDbgCheck(tmp != NULL); -#if 0 /*CH_CFG_ENABLE_HARDENING == TRUE*/ - memset((tmp)sp, 0, sizeof (time_measurement_t)); +#if CH_CFG_HARDENING_LEVEL > 0 + memset((void *)tmp, 0, sizeof (time_measurement_t)); #endif } diff --git a/os/rt/src/chvt.c b/os/rt/src/chvt.c index 92881fb07..7cc23fa48 100644 --- a/os/rt/src/chvt.c +++ b/os/rt/src/chvt.c @@ -263,8 +263,8 @@ void chVTObjectInit(virtual_timer_t *vtp) { * @note Objects disposing does not involve freeing memory but just * performing checks that make sure that the object is in a * state compatible with operations stop. - * @note If the option @p CH_CFG_ENABLE_HARDENING is enabled then the - * object is also cleared, attempts to use the object would likely + * @note If the option @p CH_CFG_HARDENING_LEVEL is greater than zero then + * the object is also cleared, attempts to use the object would likely * result in a clean memory access violation because dereferencing * of @p NULL pointers rather than dereferencing previously valid * pointers. @@ -278,7 +278,7 @@ void chVTObjectDispose(virtual_timer_t *vtp) { chDbgCheck(vtp != NULL); chDbgAssert(vtp->dlist.next != NULL, "object in use"); -#if 0 /*CH_CFG_ENABLE_HARDENING == TRUE*/ +#if CH_CFG_HARDENING_LEVEL > 0 memset((void *)vtp, 0, sizeof (virtual_timer_t)); #endif } diff --git a/os/rt/templates/chconf.h b/os/rt/templates/chconf.h index a823ef614..db8124c95 100644 --- a/os/rt/templates/chconf.h +++ b/os/rt/templates/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/readme.txt b/readme.txt index 9745baec0..29fd7c13a 100644 --- a/readme.txt +++ b/readme.txt @@ -74,6 +74,7 @@ ***************************************************************************** *** Next *** +- NEW: Added a new CH_CFG_HARDENING_LEVEL option to RT. - NEW: Added a chXXXDispose() function to all objects in NIL. - NEW: Added a chXXXDispose() function to all objects in RT. - NEW: Added VFS-related commands to the shell, disabled by default. diff --git a/test/rt/testbuild/chconf.h b/test/rt/testbuild/chconf.h index e4de71fa0..91e684e4d 100644 --- a/test/rt/testbuild/chconf.h +++ b/test/rt/testbuild/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testex/ADUCM/SPI-ADXL355/cfg/chconf.h b/testex/ADUCM/SPI-ADXL355/cfg/chconf.h index a234ec88c..692efee49 100644 --- a/testex/ADUCM/SPI-ADXL355/cfg/chconf.h +++ b/testex/ADUCM/SPI-ADXL355/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testex/STM32/STM32F3xx/I2C-LSM303DLHC/cfg/chconf.h b/testex/STM32/STM32F3xx/I2C-LSM303DLHC/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/testex/STM32/STM32F3xx/I2C-LSM303DLHC/cfg/chconf.h +++ b/testex/STM32/STM32F3xx/I2C-LSM303DLHC/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testex/STM32/STM32F3xx/SPI-L3GD20/cfg/chconf.h b/testex/STM32/STM32F3xx/SPI-L3GD20/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/testex/STM32/STM32F3xx/SPI-L3GD20/cfg/chconf.h +++ b/testex/STM32/STM32F3xx/SPI-L3GD20/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testex/STM32/STM32F4xx/I2C-HTS221/cfg/chconf.h b/testex/STM32/STM32F4xx/I2C-HTS221/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/testex/STM32/STM32F4xx/I2C-HTS221/cfg/chconf.h +++ b/testex/STM32/STM32F4xx/I2C-HTS221/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testex/STM32/STM32F4xx/I2C-IKS01A2/cfg/chconf.h b/testex/STM32/STM32F4xx/I2C-IKS01A2/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/testex/STM32/STM32F4xx/I2C-IKS01A2/cfg/chconf.h +++ b/testex/STM32/STM32F4xx/I2C-IKS01A2/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testex/STM32/STM32F4xx/I2C-LIS3MDL/cfg/chconf.h b/testex/STM32/STM32F4xx/I2C-LIS3MDL/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/testex/STM32/STM32F4xx/I2C-LIS3MDL/cfg/chconf.h +++ b/testex/STM32/STM32F4xx/I2C-LIS3MDL/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testex/STM32/STM32F4xx/I2C-LPS22HB/cfg/chconf.h b/testex/STM32/STM32F4xx/I2C-LPS22HB/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/testex/STM32/STM32F4xx/I2C-LPS22HB/cfg/chconf.h +++ b/testex/STM32/STM32F4xx/I2C-LPS22HB/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testex/STM32/STM32F4xx/I2C-LPS25H/cfg/chconf.h b/testex/STM32/STM32F4xx/I2C-LPS25H/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/testex/STM32/STM32F4xx/I2C-LPS25H/cfg/chconf.h +++ b/testex/STM32/STM32F4xx/I2C-LPS25H/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testex/STM32/STM32F4xx/I2C-LSM303AGR/cfg/chconf.h b/testex/STM32/STM32F4xx/I2C-LSM303AGR/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/testex/STM32/STM32F4xx/I2C-LSM303AGR/cfg/chconf.h +++ b/testex/STM32/STM32F4xx/I2C-LSM303AGR/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testex/STM32/STM32F4xx/I2C-LSM303DLHC/cfg/chconf.h b/testex/STM32/STM32F4xx/I2C-LSM303DLHC/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/testex/STM32/STM32F4xx/I2C-LSM303DLHC/cfg/chconf.h +++ b/testex/STM32/STM32F4xx/I2C-LSM303DLHC/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testex/STM32/STM32F4xx/I2C-LSM6DS0/cfg/chconf.h b/testex/STM32/STM32F4xx/I2C-LSM6DS0/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/testex/STM32/STM32F4xx/I2C-LSM6DS0/cfg/chconf.h +++ b/testex/STM32/STM32F4xx/I2C-LSM6DS0/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testex/STM32/STM32F4xx/I2C-LSM6DSL/cfg/chconf.h b/testex/STM32/STM32F4xx/I2C-LSM6DSL/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/testex/STM32/STM32F4xx/I2C-LSM6DSL/cfg/chconf.h +++ b/testex/STM32/STM32F4xx/I2C-LSM6DSL/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testex/STM32/STM32F4xx/SPI-ADXL355/cfg/chconf.h b/testex/STM32/STM32F4xx/SPI-ADXL355/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/testex/STM32/STM32F4xx/SPI-ADXL355/cfg/chconf.h +++ b/testex/STM32/STM32F4xx/SPI-ADXL355/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testex/STM32/STM32F4xx/SPI-L3GD20/cfg/chconf.h b/testex/STM32/STM32F4xx/SPI-L3GD20/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/testex/STM32/STM32F4xx/SPI-L3GD20/cfg/chconf.h +++ b/testex/STM32/STM32F4xx/SPI-L3GD20/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testex/STM32/STM32F4xx/SPI-LIS302DL/cfg/chconf.h b/testex/STM32/STM32F4xx/SPI-LIS302DL/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/testex/STM32/STM32F4xx/SPI-LIS302DL/cfg/chconf.h +++ b/testex/STM32/STM32F4xx/SPI-LIS302DL/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testex/STM32/STM32F4xx/SPI-LIS3DSH/cfg/chconf.h b/testex/STM32/STM32F4xx/SPI-LIS3DSH/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/testex/STM32/STM32F4xx/SPI-LIS3DSH/cfg/chconf.h +++ b/testex/STM32/STM32F4xx/SPI-LIS3DSH/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testex/STM32/STM32F7xx/SPI-ADXL355/cfg/chconf.h b/testex/STM32/STM32F7xx/SPI-ADXL355/cfg/chconf.h index b309ac464..31944b17a 100644 --- a/testex/STM32/STM32F7xx/SPI-ADXL355/cfg/chconf.h +++ b/testex/STM32/STM32F7xx/SPI-ADXL355/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testex/STM32/STM32L4xx/SPI-L3GD20/cfg/chconf.h b/testex/STM32/STM32L4xx/SPI-L3GD20/cfg/chconf.h index 457751050..ae7d2d5fd 100644 --- a/testex/STM32/STM32L4xx/SPI-L3GD20/cfg/chconf.h +++ b/testex/STM32/STM32L4xx/SPI-L3GD20/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/ADUCM/ADUCM36x/SPI/cfg/chconf.h b/testhal/ADUCM/ADUCM36x/SPI/cfg/chconf.h index 583e33eb1..e30c65f7e 100644 --- a/testhal/ADUCM/ADUCM36x/SPI/cfg/chconf.h +++ b/testhal/ADUCM/ADUCM36x/SPI/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/AVR/MEGA/ADC/chconf.h b/testhal/AVR/MEGA/ADC/chconf.h index f6d2dfcce..6c487efd8 100644 --- a/testhal/AVR/MEGA/ADC/chconf.h +++ b/testhal/AVR/MEGA/ADC/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/AVR/MEGA/GPT/chconf.h b/testhal/AVR/MEGA/GPT/chconf.h index f6d2dfcce..6c487efd8 100644 --- a/testhal/AVR/MEGA/GPT/chconf.h +++ b/testhal/AVR/MEGA/GPT/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/AVR/MEGA/I2C/chconf.h b/testhal/AVR/MEGA/I2C/chconf.h index f6d2dfcce..6c487efd8 100644 --- a/testhal/AVR/MEGA/I2C/chconf.h +++ b/testhal/AVR/MEGA/I2C/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/AVR/MEGA/ICU/chconf.h b/testhal/AVR/MEGA/ICU/chconf.h index f6d2dfcce..6c487efd8 100644 --- a/testhal/AVR/MEGA/ICU/chconf.h +++ b/testhal/AVR/MEGA/ICU/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/AVR/MEGA/PWM/chconf.h b/testhal/AVR/MEGA/PWM/chconf.h index f6d2dfcce..6c487efd8 100644 --- a/testhal/AVR/MEGA/PWM/chconf.h +++ b/testhal/AVR/MEGA/PWM/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/AVR/MEGA/SPI/chconf.h b/testhal/AVR/MEGA/SPI/chconf.h index f6d2dfcce..6c487efd8 100644 --- a/testhal/AVR/MEGA/SPI/chconf.h +++ b/testhal/AVR/MEGA/SPI/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/AVR/XMEGA/AES/chconf.h b/testhal/AVR/XMEGA/AES/chconf.h index a966df167..fcd97655d 100644 --- a/testhal/AVR/XMEGA/AES/chconf.h +++ b/testhal/AVR/XMEGA/AES/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/AVR/XMEGA/SERIAL/chconf.h b/testhal/AVR/XMEGA/SERIAL/chconf.h index a966df167..fcd97655d 100644 --- a/testhal/AVR/XMEGA/SERIAL/chconf.h +++ b/testhal/AVR/XMEGA/SERIAL/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/AVR/XMEGA/SPI/chconf.h b/testhal/AVR/XMEGA/SPI/chconf.h index a966df167..fcd97655d 100644 --- a/testhal/AVR/XMEGA/SPI/chconf.h +++ b/testhal/AVR/XMEGA/SPI/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/AVR/XMEGA/TEST-SUITE-OSLIB/chconf.h b/testhal/AVR/XMEGA/TEST-SUITE-OSLIB/chconf.h index a966df167..fcd97655d 100644 --- a/testhal/AVR/XMEGA/TEST-SUITE-OSLIB/chconf.h +++ b/testhal/AVR/XMEGA/TEST-SUITE-OSLIB/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/AVR/XMEGA/USART/chconf.h b/testhal/AVR/XMEGA/USART/chconf.h index a966df167..fcd97655d 100644 --- a/testhal/AVR/XMEGA/USART/chconf.h +++ b/testhal/AVR/XMEGA/USART/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/AVR/XMEGA/WDT/chconf.h b/testhal/AVR/XMEGA/WDT/chconf.h index a966df167..fcd97655d 100644 --- a/testhal/AVR/XMEGA/WDT/chconf.h +++ b/testhal/AVR/XMEGA/WDT/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/AVR/multi/PAL/cfg/arduino_mega/chconf.h b/testhal/AVR/multi/PAL/cfg/arduino_mega/chconf.h index b7a08766c..21d524490 100644 --- a/testhal/AVR/multi/PAL/cfg/arduino_mega/chconf.h +++ b/testhal/AVR/multi/PAL/cfg/arduino_mega/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/AVR/multi/PAL/cfg/arduino_mini/chconf.h b/testhal/AVR/multi/PAL/cfg/arduino_mini/chconf.h index b7a08766c..21d524490 100644 --- a/testhal/AVR/multi/PAL/cfg/arduino_mini/chconf.h +++ b/testhal/AVR/multi/PAL/cfg/arduino_mini/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/AVR/multi/PAL/cfg/arduino_nano/chconf.h b/testhal/AVR/multi/PAL/cfg/arduino_nano/chconf.h index b7a08766c..21d524490 100644 --- a/testhal/AVR/multi/PAL/cfg/arduino_nano/chconf.h +++ b/testhal/AVR/multi/PAL/cfg/arduino_nano/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/AVR/multi/PAL/cfg/arduino_uno/chconf.h b/testhal/AVR/multi/PAL/cfg/arduino_uno/chconf.h index b7a08766c..21d524490 100644 --- a/testhal/AVR/multi/PAL/cfg/arduino_uno/chconf.h +++ b/testhal/AVR/multi/PAL/cfg/arduino_uno/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F0xx/ADC/chconf.h b/testhal/STM32/STM32F0xx/ADC/chconf.h index 23a39ecdb..2fa801d49 100644 --- a/testhal/STM32/STM32F0xx/ADC/chconf.h +++ b/testhal/STM32/STM32F0xx/ADC/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F0xx/CAN/chconf.h b/testhal/STM32/STM32F0xx/CAN/chconf.h index 23a39ecdb..2fa801d49 100644 --- a/testhal/STM32/STM32F0xx/CAN/chconf.h +++ b/testhal/STM32/STM32F0xx/CAN/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F0xx/PWM-ICU/chconf.h b/testhal/STM32/STM32F0xx/PWM-ICU/chconf.h index 23a39ecdb..2fa801d49 100644 --- a/testhal/STM32/STM32F0xx/PWM-ICU/chconf.h +++ b/testhal/STM32/STM32F0xx/PWM-ICU/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F1xx/ADC/chconf.h b/testhal/STM32/STM32F1xx/ADC/chconf.h index e835ef600..1e5559716 100644 --- a/testhal/STM32/STM32F1xx/ADC/chconf.h +++ b/testhal/STM32/STM32F1xx/ADC/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F1xx/CAN/chconf.h b/testhal/STM32/STM32F1xx/CAN/chconf.h index e835ef600..1e5559716 100644 --- a/testhal/STM32/STM32F1xx/CAN/chconf.h +++ b/testhal/STM32/STM32F1xx/CAN/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F1xx/I2C/chconf.h b/testhal/STM32/STM32F1xx/I2C/chconf.h index e835ef600..1e5559716 100644 --- a/testhal/STM32/STM32F1xx/I2C/chconf.h +++ b/testhal/STM32/STM32F1xx/I2C/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F1xx/PWM-ICU/chconf.h b/testhal/STM32/STM32F1xx/PWM-ICU/chconf.h index e835ef600..1e5559716 100644 --- a/testhal/STM32/STM32F1xx/PWM-ICU/chconf.h +++ b/testhal/STM32/STM32F1xx/PWM-ICU/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F1xx/RTC/chconf.h b/testhal/STM32/STM32F1xx/RTC/chconf.h index e8f7e81ba..b7cd73a0a 100644 --- a/testhal/STM32/STM32F1xx/RTC/chconf.h +++ b/testhal/STM32/STM32F1xx/RTC/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F1xx/UART/chconf.h b/testhal/STM32/STM32F1xx/UART/chconf.h index e835ef600..1e5559716 100644 --- a/testhal/STM32/STM32F1xx/UART/chconf.h +++ b/testhal/STM32/STM32F1xx/UART/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F1xx/USB_CDC/chconf.h b/testhal/STM32/STM32F1xx/USB_CDC/chconf.h index e835ef600..1e5559716 100644 --- a/testhal/STM32/STM32F1xx/USB_CDC/chconf.h +++ b/testhal/STM32/STM32F1xx/USB_CDC/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F1xx/USB_CDC_F107/chconf.h b/testhal/STM32/STM32F1xx/USB_CDC_F107/chconf.h index 8c9658eab..3d6ad0601 100644 --- a/testhal/STM32/STM32F1xx/USB_CDC_F107/chconf.h +++ b/testhal/STM32/STM32F1xx/USB_CDC_F107/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F37x/ADC/chconf.h b/testhal/STM32/STM32F37x/ADC/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/STM32F37x/ADC/chconf.h +++ b/testhal/STM32/STM32F37x/ADC/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F37x/CAN/chconf.h b/testhal/STM32/STM32F37x/CAN/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/STM32F37x/CAN/chconf.h +++ b/testhal/STM32/STM32F37x/CAN/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F37x/I2C/chconf.h b/testhal/STM32/STM32F37x/I2C/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/STM32F37x/I2C/chconf.h +++ b/testhal/STM32/STM32F37x/I2C/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F37x/PWM-ICU/chconf.h b/testhal/STM32/STM32F37x/PWM-ICU/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/STM32F37x/PWM-ICU/chconf.h +++ b/testhal/STM32/STM32F37x/PWM-ICU/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F37x/SDADC/chconf.h b/testhal/STM32/STM32F37x/SDADC/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/STM32F37x/SDADC/chconf.h +++ b/testhal/STM32/STM32F37x/SDADC/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F37x/UART/chconf.h b/testhal/STM32/STM32F37x/UART/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/STM32F37x/UART/chconf.h +++ b/testhal/STM32/STM32F37x/UART/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F37x/USB_CDC/chconf.h b/testhal/STM32/STM32F37x/USB_CDC/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/STM32F37x/USB_CDC/chconf.h +++ b/testhal/STM32/STM32F37x/USB_CDC/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F3xx/ADC/chconf.h b/testhal/STM32/STM32F3xx/ADC/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/STM32F3xx/ADC/chconf.h +++ b/testhal/STM32/STM32F3xx/ADC/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F3xx/ADC_DUAL/chconf.h b/testhal/STM32/STM32F3xx/ADC_DUAL/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/STM32F3xx/ADC_DUAL/chconf.h +++ b/testhal/STM32/STM32F3xx/ADC_DUAL/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F3xx/CAN/chconf.h b/testhal/STM32/STM32F3xx/CAN/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/STM32F3xx/CAN/chconf.h +++ b/testhal/STM32/STM32F3xx/CAN/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F3xx/DAC/chconf.h b/testhal/STM32/STM32F3xx/DAC/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/STM32F3xx/DAC/chconf.h +++ b/testhal/STM32/STM32F3xx/DAC/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F3xx/PWM-ICU/chconf.h b/testhal/STM32/STM32F3xx/PWM-ICU/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/STM32F3xx/PWM-ICU/chconf.h +++ b/testhal/STM32/STM32F3xx/PWM-ICU/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F3xx/USB_CDC_IAD/chconf.h b/testhal/STM32/STM32F3xx/USB_CDC_IAD/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/STM32F3xx/USB_CDC_IAD/chconf.h +++ b/testhal/STM32/STM32F3xx/USB_CDC_IAD/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F4xx/ADC/chconf.h b/testhal/STM32/STM32F4xx/ADC/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/STM32F4xx/ADC/chconf.h +++ b/testhal/STM32/STM32F4xx/ADC/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F4xx/CAN/chconf.h b/testhal/STM32/STM32F4xx/CAN/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/STM32F4xx/CAN/chconf.h +++ b/testhal/STM32/STM32F4xx/CAN/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F4xx/DAC/chconf.h b/testhal/STM32/STM32F4xx/DAC/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/STM32F4xx/DAC/chconf.h +++ b/testhal/STM32/STM32F4xx/DAC/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F4xx/DAC_DUAL/chconf.h b/testhal/STM32/STM32F4xx/DAC_DUAL/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/STM32F4xx/DAC_DUAL/chconf.h +++ b/testhal/STM32/STM32F4xx/DAC_DUAL/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F4xx/DMA_STORM/chconf.h b/testhal/STM32/STM32F4xx/DMA_STORM/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/STM32F4xx/DMA_STORM/chconf.h +++ b/testhal/STM32/STM32F4xx/DMA_STORM/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F4xx/I2S/chconf.h b/testhal/STM32/STM32F4xx/I2S/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/STM32F4xx/I2S/chconf.h +++ b/testhal/STM32/STM32F4xx/I2S/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F4xx/PWM-ICU/chconf.h b/testhal/STM32/STM32F4xx/PWM-ICU/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/STM32F4xx/PWM-ICU/chconf.h +++ b/testhal/STM32/STM32F4xx/PWM-ICU/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F4xx/RTC/chconf.h b/testhal/STM32/STM32F4xx/RTC/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/STM32F4xx/RTC/chconf.h +++ b/testhal/STM32/STM32F4xx/RTC/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F4xx/SDC/chconf.h b/testhal/STM32/STM32F4xx/SDC/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/STM32F4xx/SDC/chconf.h +++ b/testhal/STM32/STM32F4xx/SDC/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F4xx/USB_CDC_IAD/chconf.h b/testhal/STM32/STM32F4xx/USB_CDC_IAD/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/STM32F4xx/USB_CDC_IAD/chconf.h +++ b/testhal/STM32/STM32F4xx/USB_CDC_IAD/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F7xx/GPT-ADC/chconf.h b/testhal/STM32/STM32F7xx/GPT-ADC/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/STM32F7xx/GPT-ADC/chconf.h +++ b/testhal/STM32/STM32F7xx/GPT-ADC/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F7xx/PWM-ICU/chconf.h b/testhal/STM32/STM32F7xx/PWM-ICU/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/STM32F7xx/PWM-ICU/chconf.h +++ b/testhal/STM32/STM32F7xx/PWM-ICU/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32F7xx/USB_RAW/chconf.h b/testhal/STM32/STM32F7xx/USB_RAW/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/STM32F7xx/USB_RAW/chconf.h +++ b/testhal/STM32/STM32F7xx/USB_RAW/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32L1xx/ADC/chconf.h b/testhal/STM32/STM32L1xx/ADC/chconf.h index d7a36b71e..49ad57c73 100644 --- a/testhal/STM32/STM32L1xx/ADC/chconf.h +++ b/testhal/STM32/STM32L1xx/ADC/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32L1xx/DAC/chconf.h b/testhal/STM32/STM32L1xx/DAC/chconf.h index d7a36b71e..49ad57c73 100644 --- a/testhal/STM32/STM32L1xx/DAC/chconf.h +++ b/testhal/STM32/STM32L1xx/DAC/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32L1xx/PWM-ICU/chconf.h b/testhal/STM32/STM32L1xx/PWM-ICU/chconf.h index d7a36b71e..49ad57c73 100644 --- a/testhal/STM32/STM32L1xx/PWM-ICU/chconf.h +++ b/testhal/STM32/STM32L1xx/PWM-ICU/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32L1xx/UART/chconf.h b/testhal/STM32/STM32L1xx/UART/chconf.h index d7a36b71e..49ad57c73 100644 --- a/testhal/STM32/STM32L1xx/UART/chconf.h +++ b/testhal/STM32/STM32L1xx/UART/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32L4xx/CAN/chconf.h b/testhal/STM32/STM32L4xx/CAN/chconf.h index 457751050..ae7d2d5fd 100644 --- a/testhal/STM32/STM32L4xx/CAN/chconf.h +++ b/testhal/STM32/STM32L4xx/CAN/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32WLxx/I2S/cfg/chconf.h b/testhal/STM32/STM32WLxx/I2S/cfg/chconf.h index 52db15f88..5ffab46f4 100644 --- a/testhal/STM32/STM32WLxx/I2S/cfg/chconf.h +++ b/testhal/STM32/STM32WLxx/I2S/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32WLxx/SPI/cfg/chconf.h b/testhal/STM32/STM32WLxx/SPI/cfg/chconf.h index 52db15f88..5ffab46f4 100644 --- a/testhal/STM32/STM32WLxx/SPI/cfg/chconf.h +++ b/testhal/STM32/STM32WLxx/SPI/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32WLxx/SYSTICKv2/cfg/chconf.h b/testhal/STM32/STM32WLxx/SYSTICKv2/cfg/chconf.h index cd3d78ad5..c8ebc7fad 100644 --- a/testhal/STM32/STM32WLxx/SYSTICKv2/cfg/chconf.h +++ b/testhal/STM32/STM32WLxx/SYSTICKv2/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/STM32WLxx/WDG/cfg/chconf.h b/testhal/STM32/STM32WLxx/WDG/cfg/chconf.h index cd3d78ad5..c8ebc7fad 100644 --- a/testhal/STM32/STM32WLxx/WDG/cfg/chconf.h +++ b/testhal/STM32/STM32WLxx/WDG/cfg/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/ADC/cfg/stm32g071rb_nucleo64/chconf.h b/testhal/STM32/multi/ADC/cfg/stm32g071rb_nucleo64/chconf.h index 4061510fd..14488f2dc 100644 --- a/testhal/STM32/multi/ADC/cfg/stm32g071rb_nucleo64/chconf.h +++ b/testhal/STM32/multi/ADC/cfg/stm32g071rb_nucleo64/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/ADC/cfg/stm32g474re_nucleo64/chconf.h b/testhal/STM32/multi/ADC/cfg/stm32g474re_nucleo64/chconf.h index 568d7dbcb..139d18a01 100644 --- a/testhal/STM32/multi/ADC/cfg/stm32g474re_nucleo64/chconf.h +++ b/testhal/STM32/multi/ADC/cfg/stm32g474re_nucleo64/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/ADC/cfg/stm32h743zi_nucleo144/chconf.h b/testhal/STM32/multi/ADC/cfg/stm32h743zi_nucleo144/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/multi/ADC/cfg/stm32h743zi_nucleo144/chconf.h +++ b/testhal/STM32/multi/ADC/cfg/stm32h743zi_nucleo144/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/ADC/cfg/stm32l053r8_nucleo64/chconf.h b/testhal/STM32/multi/ADC/cfg/stm32l053r8_nucleo64/chconf.h index 4061510fd..14488f2dc 100644 --- a/testhal/STM32/multi/ADC/cfg/stm32l053r8_nucleo64/chconf.h +++ b/testhal/STM32/multi/ADC/cfg/stm32l053r8_nucleo64/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/ADC/cfg/stm32l476_discovery/chconf.h b/testhal/STM32/multi/ADC/cfg/stm32l476_discovery/chconf.h index 568d7dbcb..139d18a01 100644 --- a/testhal/STM32/multi/ADC/cfg/stm32l476_discovery/chconf.h +++ b/testhal/STM32/multi/ADC/cfg/stm32l476_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/ADC/cfg/stm32l4r5zi_nucleo144/chconf.h b/testhal/STM32/multi/ADC/cfg/stm32l4r5zi_nucleo144/chconf.h index 568d7dbcb..139d18a01 100644 --- a/testhal/STM32/multi/ADC/cfg/stm32l4r5zi_nucleo144/chconf.h +++ b/testhal/STM32/multi/ADC/cfg/stm32l4r5zi_nucleo144/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/ADC/cfg/stm32wb55rg_nucleo68/chconf.h b/testhal/STM32/multi/ADC/cfg/stm32wb55rg_nucleo68/chconf.h index 52db15f88..5ffab46f4 100644 --- a/testhal/STM32/multi/ADC/cfg/stm32wb55rg_nucleo68/chconf.h +++ b/testhal/STM32/multi/ADC/cfg/stm32wb55rg_nucleo68/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/ADC/cfg/stm32wl55jc_nucleo64/chconf.h b/testhal/STM32/multi/ADC/cfg/stm32wl55jc_nucleo64/chconf.h index 52db15f88..5ffab46f4 100644 --- a/testhal/STM32/multi/ADC/cfg/stm32wl55jc_nucleo64/chconf.h +++ b/testhal/STM32/multi/ADC/cfg/stm32wl55jc_nucleo64/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/CRYPTO/cfg/stm32f756zg_nucleo144/chconf.h b/testhal/STM32/multi/CRYPTO/cfg/stm32f756zg_nucleo144/chconf.h index 568d7dbcb..139d18a01 100644 --- a/testhal/STM32/multi/CRYPTO/cfg/stm32f756zg_nucleo144/chconf.h +++ b/testhal/STM32/multi/CRYPTO/cfg/stm32f756zg_nucleo144/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/DAC/cfg/stm32g474re_nucleo64/chconf.h b/testhal/STM32/multi/DAC/cfg/stm32g474re_nucleo64/chconf.h index 457751050..ae7d2d5fd 100644 --- a/testhal/STM32/multi/DAC/cfg/stm32g474re_nucleo64/chconf.h +++ b/testhal/STM32/multi/DAC/cfg/stm32g474re_nucleo64/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/DAC/cfg/stm32h743_nucleo144/chconf.h b/testhal/STM32/multi/DAC/cfg/stm32h743_nucleo144/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/multi/DAC/cfg/stm32h743_nucleo144/chconf.h +++ b/testhal/STM32/multi/DAC/cfg/stm32h743_nucleo144/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/DAC/cfg/stm32l476_discovery/chconf.h b/testhal/STM32/multi/DAC/cfg/stm32l476_discovery/chconf.h index 568d7dbcb..139d18a01 100644 --- a/testhal/STM32/multi/DAC/cfg/stm32l476_discovery/chconf.h +++ b/testhal/STM32/multi/DAC/cfg/stm32l476_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/DAC/cfg/stm32l4r5zi_nucleo144/chconf.h b/testhal/STM32/multi/DAC/cfg/stm32l4r5zi_nucleo144/chconf.h index 568d7dbcb..139d18a01 100644 --- a/testhal/STM32/multi/DAC/cfg/stm32l4r5zi_nucleo144/chconf.h +++ b/testhal/STM32/multi/DAC/cfg/stm32l4r5zi_nucleo144/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/DAC/cfg/stm32wl55jc_nucleo64/chconf.h b/testhal/STM32/multi/DAC/cfg/stm32wl55jc_nucleo64/chconf.h index 52db15f88..5ffab46f4 100644 --- a/testhal/STM32/multi/DAC/cfg/stm32wl55jc_nucleo64/chconf.h +++ b/testhal/STM32/multi/DAC/cfg/stm32wl55jc_nucleo64/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/EFL-MFS/cfg/stm32f302_nucleo64/chconf.h b/testhal/STM32/multi/EFL-MFS/cfg/stm32f302_nucleo64/chconf.h index 568d7dbcb..139d18a01 100644 --- a/testhal/STM32/multi/EFL-MFS/cfg/stm32f302_nucleo64/chconf.h +++ b/testhal/STM32/multi/EFL-MFS/cfg/stm32f302_nucleo64/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/EFL-MFS/cfg/stm32l476_discovery/chconf.h b/testhal/STM32/multi/EFL-MFS/cfg/stm32l476_discovery/chconf.h index 568d7dbcb..139d18a01 100644 --- a/testhal/STM32/multi/EFL-MFS/cfg/stm32l476_discovery/chconf.h +++ b/testhal/STM32/multi/EFL-MFS/cfg/stm32l476_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/EFL-MFS/cfg/stm32wl55jc_nucleo64/chconf.h b/testhal/STM32/multi/EFL-MFS/cfg/stm32wl55jc_nucleo64/chconf.h index 52db15f88..5ffab46f4 100644 --- a/testhal/STM32/multi/EFL-MFS/cfg/stm32wl55jc_nucleo64/chconf.h +++ b/testhal/STM32/multi/EFL-MFS/cfg/stm32wl55jc_nucleo64/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/PAL/cfg/stm32f051_discovery/chconf.h b/testhal/STM32/multi/PAL/cfg/stm32f051_discovery/chconf.h index 23a39ecdb..2fa801d49 100644 --- a/testhal/STM32/multi/PAL/cfg/stm32f051_discovery/chconf.h +++ b/testhal/STM32/multi/PAL/cfg/stm32f051_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/PAL/cfg/stm32f103_olimex/chconf.h b/testhal/STM32/multi/PAL/cfg/stm32f103_olimex/chconf.h index 19ac91467..1efa09bda 100644 --- a/testhal/STM32/multi/PAL/cfg/stm32f103_olimex/chconf.h +++ b/testhal/STM32/multi/PAL/cfg/stm32f103_olimex/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/PAL/cfg/stm32f303_discovery/chconf.h b/testhal/STM32/multi/PAL/cfg/stm32f303_discovery/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/multi/PAL/cfg/stm32f303_discovery/chconf.h +++ b/testhal/STM32/multi/PAL/cfg/stm32f303_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/PAL/cfg/stm32f373_eval/chconf.h b/testhal/STM32/multi/PAL/cfg/stm32f373_eval/chconf.h index 457751050..ae7d2d5fd 100644 --- a/testhal/STM32/multi/PAL/cfg/stm32f373_eval/chconf.h +++ b/testhal/STM32/multi/PAL/cfg/stm32f373_eval/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/PAL/cfg/stm32f407_discovery/chconf.h b/testhal/STM32/multi/PAL/cfg/stm32f407_discovery/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/multi/PAL/cfg/stm32f407_discovery/chconf.h +++ b/testhal/STM32/multi/PAL/cfg/stm32f407_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/PAL/cfg/stm32f429_discovery/chconf.h b/testhal/STM32/multi/PAL/cfg/stm32f429_discovery/chconf.h index 457751050..ae7d2d5fd 100644 --- a/testhal/STM32/multi/PAL/cfg/stm32f429_discovery/chconf.h +++ b/testhal/STM32/multi/PAL/cfg/stm32f429_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/PAL/cfg/stm32f746_discovery/chconf.h b/testhal/STM32/multi/PAL/cfg/stm32f746_discovery/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/multi/PAL/cfg/stm32f746_discovery/chconf.h +++ b/testhal/STM32/multi/PAL/cfg/stm32f746_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/PAL/cfg/stm32l053_discovery/chconf.h b/testhal/STM32/multi/PAL/cfg/stm32l053_discovery/chconf.h index 4061510fd..14488f2dc 100644 --- a/testhal/STM32/multi/PAL/cfg/stm32l053_discovery/chconf.h +++ b/testhal/STM32/multi/PAL/cfg/stm32l053_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/PAL/cfg/stm32l152rb_discovery/chconf.h b/testhal/STM32/multi/PAL/cfg/stm32l152rb_discovery/chconf.h index d9da20a89..82fab5fcc 100644 --- a/testhal/STM32/multi/PAL/cfg/stm32l152rb_discovery/chconf.h +++ b/testhal/STM32/multi/PAL/cfg/stm32l152rb_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/PAL/cfg/stm32l476_discovery/chconf.h b/testhal/STM32/multi/PAL/cfg/stm32l476_discovery/chconf.h index 568d7dbcb..139d18a01 100644 --- a/testhal/STM32/multi/PAL/cfg/stm32l476_discovery/chconf.h +++ b/testhal/STM32/multi/PAL/cfg/stm32l476_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/PAL/cfg/stm32wb55rg_nucleo68/chconf.h b/testhal/STM32/multi/PAL/cfg/stm32wb55rg_nucleo68/chconf.h index 52db15f88..5ffab46f4 100644 --- a/testhal/STM32/multi/PAL/cfg/stm32wb55rg_nucleo68/chconf.h +++ b/testhal/STM32/multi/PAL/cfg/stm32wb55rg_nucleo68/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/PAL/cfg/stm32wl55jc_nucleo64/chconf.h b/testhal/STM32/multi/PAL/cfg/stm32wl55jc_nucleo64/chconf.h index 52db15f88..5ffab46f4 100644 --- a/testhal/STM32/multi/PAL/cfg/stm32wl55jc_nucleo64/chconf.h +++ b/testhal/STM32/multi/PAL/cfg/stm32wl55jc_nucleo64/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/RTC/cfg/stm32f051_discovery/chconf.h b/testhal/STM32/multi/RTC/cfg/stm32f051_discovery/chconf.h index cc4583b9e..9c0775849 100644 --- a/testhal/STM32/multi/RTC/cfg/stm32f051_discovery/chconf.h +++ b/testhal/STM32/multi/RTC/cfg/stm32f051_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/RTC/cfg/stm32f303_discovery/chconf.h b/testhal/STM32/multi/RTC/cfg/stm32f303_discovery/chconf.h index 568d7dbcb..139d18a01 100644 --- a/testhal/STM32/multi/RTC/cfg/stm32f303_discovery/chconf.h +++ b/testhal/STM32/multi/RTC/cfg/stm32f303_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/RTC/cfg/stm32f407_discovery/chconf.h b/testhal/STM32/multi/RTC/cfg/stm32f407_discovery/chconf.h index 568d7dbcb..139d18a01 100644 --- a/testhal/STM32/multi/RTC/cfg/stm32f407_discovery/chconf.h +++ b/testhal/STM32/multi/RTC/cfg/stm32f407_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/RTC/cfg/stm32f746_discovery/chconf.h b/testhal/STM32/multi/RTC/cfg/stm32f746_discovery/chconf.h index 568d7dbcb..139d18a01 100644 --- a/testhal/STM32/multi/RTC/cfg/stm32f746_discovery/chconf.h +++ b/testhal/STM32/multi/RTC/cfg/stm32f746_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/RTC/cfg/stm32g071_nucleo64/chconf.h b/testhal/STM32/multi/RTC/cfg/stm32g071_nucleo64/chconf.h index cc4583b9e..9c0775849 100644 --- a/testhal/STM32/multi/RTC/cfg/stm32g071_nucleo64/chconf.h +++ b/testhal/STM32/multi/RTC/cfg/stm32g071_nucleo64/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/RTC/cfg/stm32l053_discovery/chconf.h b/testhal/STM32/multi/RTC/cfg/stm32l053_discovery/chconf.h index e99aa6820..d92466d2e 100644 --- a/testhal/STM32/multi/RTC/cfg/stm32l053_discovery/chconf.h +++ b/testhal/STM32/multi/RTC/cfg/stm32l053_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/RTC/cfg/stm32l476_discovery/chconf.h b/testhal/STM32/multi/RTC/cfg/stm32l476_discovery/chconf.h index 568d7dbcb..139d18a01 100644 --- a/testhal/STM32/multi/RTC/cfg/stm32l476_discovery/chconf.h +++ b/testhal/STM32/multi/RTC/cfg/stm32l476_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/RTC/cfg/stm32l4r5_nucleo144/chconf.h b/testhal/STM32/multi/RTC/cfg/stm32l4r5_nucleo144/chconf.h index 568d7dbcb..139d18a01 100644 --- a/testhal/STM32/multi/RTC/cfg/stm32l4r5_nucleo144/chconf.h +++ b/testhal/STM32/multi/RTC/cfg/stm32l4r5_nucleo144/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/RTC/cfg/stm32wb55rg_nucleo68/chconf.h b/testhal/STM32/multi/RTC/cfg/stm32wb55rg_nucleo68/chconf.h index 52db15f88..5ffab46f4 100644 --- a/testhal/STM32/multi/RTC/cfg/stm32wb55rg_nucleo68/chconf.h +++ b/testhal/STM32/multi/RTC/cfg/stm32wb55rg_nucleo68/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/SDMMC-FATFS/cfg/stm32l4r9ai_discovery/chconf.h b/testhal/STM32/multi/SDMMC-FATFS/cfg/stm32l4r9ai_discovery/chconf.h index 568d7dbcb..139d18a01 100644 --- a/testhal/STM32/multi/SDMMC-FATFS/cfg/stm32l4r9ai_discovery/chconf.h +++ b/testhal/STM32/multi/SDMMC-FATFS/cfg/stm32l4r9ai_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/SDMMC/cfg/stm32l4r9ai_discovery/chconf.h b/testhal/STM32/multi/SDMMC/cfg/stm32l4r9ai_discovery/chconf.h index 568d7dbcb..139d18a01 100644 --- a/testhal/STM32/multi/SDMMC/cfg/stm32l4r9ai_discovery/chconf.h +++ b/testhal/STM32/multi/SDMMC/cfg/stm32l4r9ai_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/SPI/cfg/stm32f091_nucleo64/chconf.h b/testhal/STM32/multi/SPI/cfg/stm32f091_nucleo64/chconf.h index 23a39ecdb..2fa801d49 100644 --- a/testhal/STM32/multi/SPI/cfg/stm32f091_nucleo64/chconf.h +++ b/testhal/STM32/multi/SPI/cfg/stm32f091_nucleo64/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/SPI/cfg/stm32f103rb_olimex/chconf.h b/testhal/STM32/multi/SPI/cfg/stm32f103rb_olimex/chconf.h index e835ef600..1e5559716 100644 --- a/testhal/STM32/multi/SPI/cfg/stm32f103rb_olimex/chconf.h +++ b/testhal/STM32/multi/SPI/cfg/stm32f103rb_olimex/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/SPI/cfg/stm32f303_discovery/chconf.h b/testhal/STM32/multi/SPI/cfg/stm32f303_discovery/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/multi/SPI/cfg/stm32f303_discovery/chconf.h +++ b/testhal/STM32/multi/SPI/cfg/stm32f303_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/SPI/cfg/stm32f373vc_eval/chconf.h b/testhal/STM32/multi/SPI/cfg/stm32f373vc_eval/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/multi/SPI/cfg/stm32f373vc_eval/chconf.h +++ b/testhal/STM32/multi/SPI/cfg/stm32f373vc_eval/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/SPI/cfg/stm32f407_discovery/chconf.h b/testhal/STM32/multi/SPI/cfg/stm32f407_discovery/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/multi/SPI/cfg/stm32f407_discovery/chconf.h +++ b/testhal/STM32/multi/SPI/cfg/stm32f407_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/SPI/cfg/stm32f746ng_discovery/chconf.h b/testhal/STM32/multi/SPI/cfg/stm32f746ng_discovery/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/multi/SPI/cfg/stm32f746ng_discovery/chconf.h +++ b/testhal/STM32/multi/SPI/cfg/stm32f746ng_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/SPI/cfg/stm32g474re_nucleo64/chconf.h b/testhal/STM32/multi/SPI/cfg/stm32g474re_nucleo64/chconf.h index 568d7dbcb..139d18a01 100644 --- a/testhal/STM32/multi/SPI/cfg/stm32g474re_nucleo64/chconf.h +++ b/testhal/STM32/multi/SPI/cfg/stm32g474re_nucleo64/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/SPI/cfg/stm32h743_nucleo144/chconf.h b/testhal/STM32/multi/SPI/cfg/stm32h743_nucleo144/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/multi/SPI/cfg/stm32h743_nucleo144/chconf.h +++ b/testhal/STM32/multi/SPI/cfg/stm32h743_nucleo144/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/SPI/cfg/stm32h755_nucleo144/chconf.h b/testhal/STM32/multi/SPI/cfg/stm32h755_nucleo144/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/multi/SPI/cfg/stm32h755_nucleo144/chconf.h +++ b/testhal/STM32/multi/SPI/cfg/stm32h755_nucleo144/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/SPI/cfg/stm32l053r8_nucleo64/chconf.h b/testhal/STM32/multi/SPI/cfg/stm32l053r8_nucleo64/chconf.h index 4061510fd..14488f2dc 100644 --- a/testhal/STM32/multi/SPI/cfg/stm32l053r8_nucleo64/chconf.h +++ b/testhal/STM32/multi/SPI/cfg/stm32l053r8_nucleo64/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/SPI/cfg/stm32l152rb_discovery/chconf.h b/testhal/STM32/multi/SPI/cfg/stm32l152rb_discovery/chconf.h index d7a36b71e..49ad57c73 100644 --- a/testhal/STM32/multi/SPI/cfg/stm32l152rb_discovery/chconf.h +++ b/testhal/STM32/multi/SPI/cfg/stm32l152rb_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/SPI/cfg/stm32l476_discovery/chconf.h b/testhal/STM32/multi/SPI/cfg/stm32l476_discovery/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/multi/SPI/cfg/stm32l476_discovery/chconf.h +++ b/testhal/STM32/multi/SPI/cfg/stm32l476_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/SPI/cfg/stm32l4r5_nucleo144/chconf.h b/testhal/STM32/multi/SPI/cfg/stm32l4r5_nucleo144/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/multi/SPI/cfg/stm32l4r5_nucleo144/chconf.h +++ b/testhal/STM32/multi/SPI/cfg/stm32l4r5_nucleo144/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/SPI/cfg/stm32l4r9_discovery/chconf.h b/testhal/STM32/multi/SPI/cfg/stm32l4r9_discovery/chconf.h index 568d7dbcb..139d18a01 100644 --- a/testhal/STM32/multi/SPI/cfg/stm32l4r9_discovery/chconf.h +++ b/testhal/STM32/multi/SPI/cfg/stm32l4r9_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/TRNG/cfg/stm32l476_discovery/chconf.h b/testhal/STM32/multi/TRNG/cfg/stm32l476_discovery/chconf.h index 568d7dbcb..139d18a01 100644 --- a/testhal/STM32/multi/TRNG/cfg/stm32l476_discovery/chconf.h +++ b/testhal/STM32/multi/TRNG/cfg/stm32l476_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/TRNG/cfg/stm32l4r5zi_nucleo144/chconf.h b/testhal/STM32/multi/TRNG/cfg/stm32l4r5zi_nucleo144/chconf.h index 568d7dbcb..139d18a01 100644 --- a/testhal/STM32/multi/TRNG/cfg/stm32l4r5zi_nucleo144/chconf.h +++ b/testhal/STM32/multi/TRNG/cfg/stm32l4r5zi_nucleo144/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/TRNG/cfg/stm32wb55rg_nucleo68/chconf.h b/testhal/STM32/multi/TRNG/cfg/stm32wb55rg_nucleo68/chconf.h index 52db15f88..5ffab46f4 100644 --- a/testhal/STM32/multi/TRNG/cfg/stm32wb55rg_nucleo68/chconf.h +++ b/testhal/STM32/multi/TRNG/cfg/stm32wb55rg_nucleo68/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/TRNG/cfg/stm32wl55jc_nucleo64/chconf.h b/testhal/STM32/multi/TRNG/cfg/stm32wl55jc_nucleo64/chconf.h index 52db15f88..5ffab46f4 100644 --- a/testhal/STM32/multi/TRNG/cfg/stm32wl55jc_nucleo64/chconf.h +++ b/testhal/STM32/multi/TRNG/cfg/stm32wl55jc_nucleo64/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/UART/cfg/stm32f091_nucleo64/chconf.h b/testhal/STM32/multi/UART/cfg/stm32f091_nucleo64/chconf.h index 23a39ecdb..2fa801d49 100644 --- a/testhal/STM32/multi/UART/cfg/stm32f091_nucleo64/chconf.h +++ b/testhal/STM32/multi/UART/cfg/stm32f091_nucleo64/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/UART/cfg/stm32f303_discovery/chconf.h b/testhal/STM32/multi/UART/cfg/stm32f303_discovery/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/multi/UART/cfg/stm32f303_discovery/chconf.h +++ b/testhal/STM32/multi/UART/cfg/stm32f303_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/UART/cfg/stm32f407_discovery/chconf.h b/testhal/STM32/multi/UART/cfg/stm32f407_discovery/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/multi/UART/cfg/stm32f407_discovery/chconf.h +++ b/testhal/STM32/multi/UART/cfg/stm32f407_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/UART/cfg/stm32f746_discovery/chconf.h b/testhal/STM32/multi/UART/cfg/stm32f746_discovery/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/multi/UART/cfg/stm32f746_discovery/chconf.h +++ b/testhal/STM32/multi/UART/cfg/stm32f746_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/UART/cfg/stm32wb55rg_nucleo68/chconf.h b/testhal/STM32/multi/UART/cfg/stm32wb55rg_nucleo68/chconf.h index 0380240fe..74311c090 100644 --- a/testhal/STM32/multi/UART/cfg/stm32wb55rg_nucleo68/chconf.h +++ b/testhal/STM32/multi/UART/cfg/stm32wb55rg_nucleo68/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/UART/cfg/stm32wl55jc_nucleo64/chconf.h b/testhal/STM32/multi/UART/cfg/stm32wl55jc_nucleo64/chconf.h index 52db15f88..5ffab46f4 100644 --- a/testhal/STM32/multi/UART/cfg/stm32wl55jc_nucleo64/chconf.h +++ b/testhal/STM32/multi/UART/cfg/stm32wl55jc_nucleo64/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/USB_CDC/cfg/stm32f072_discovery/chconf.h b/testhal/STM32/multi/USB_CDC/cfg/stm32f072_discovery/chconf.h index 96304c2fa..f41406326 100644 --- a/testhal/STM32/multi/USB_CDC/cfg/stm32f072_discovery/chconf.h +++ b/testhal/STM32/multi/USB_CDC/cfg/stm32f072_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ 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 a823ef614..db8124c95 100644 --- a/testhal/STM32/multi/USB_CDC/cfg/stm32f303_discovery/chconf.h +++ b/testhal/STM32/multi/USB_CDC/cfg/stm32f303_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/USB_CDC/cfg/stm32f407_discovery/chconf.h b/testhal/STM32/multi/USB_CDC/cfg/stm32f407_discovery/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/multi/USB_CDC/cfg/stm32f407_discovery/chconf.h +++ b/testhal/STM32/multi/USB_CDC/cfg/stm32f407_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/USB_CDC/cfg/stm32f746_discovery/chconf.h b/testhal/STM32/multi/USB_CDC/cfg/stm32f746_discovery/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/multi/USB_CDC/cfg/stm32f746_discovery/chconf.h +++ b/testhal/STM32/multi/USB_CDC/cfg/stm32f746_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/USB_CDC/cfg/stm32g0b1re_nucleo64/chconf.h b/testhal/STM32/multi/USB_CDC/cfg/stm32g0b1re_nucleo64/chconf.h index cc4583b9e..9c0775849 100644 --- a/testhal/STM32/multi/USB_CDC/cfg/stm32g0b1re_nucleo64/chconf.h +++ b/testhal/STM32/multi/USB_CDC/cfg/stm32g0b1re_nucleo64/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/USB_CDC/cfg/stm32g474re_discovery_dpow1/chconf.h b/testhal/STM32/multi/USB_CDC/cfg/stm32g474re_discovery_dpow1/chconf.h index 568d7dbcb..139d18a01 100644 --- a/testhal/STM32/multi/USB_CDC/cfg/stm32g474re_discovery_dpow1/chconf.h +++ b/testhal/STM32/multi/USB_CDC/cfg/stm32g474re_discovery_dpow1/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/USB_CDC/cfg/stm32g474re_nucleo64/chconf.h b/testhal/STM32/multi/USB_CDC/cfg/stm32g474re_nucleo64/chconf.h index 568d7dbcb..139d18a01 100644 --- a/testhal/STM32/multi/USB_CDC/cfg/stm32g474re_nucleo64/chconf.h +++ b/testhal/STM32/multi/USB_CDC/cfg/stm32g474re_nucleo64/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/USB_CDC/cfg/stm32h743_nucleo144/chconf.h b/testhal/STM32/multi/USB_CDC/cfg/stm32h743_nucleo144/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/multi/USB_CDC/cfg/stm32h743_nucleo144/chconf.h +++ b/testhal/STM32/multi/USB_CDC/cfg/stm32h743_nucleo144/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/USB_CDC/cfg/stm32l073rz_nucleo64/chconf.h b/testhal/STM32/multi/USB_CDC/cfg/stm32l073rz_nucleo64/chconf.h index 3b13dd0ef..bb9b151a2 100644 --- a/testhal/STM32/multi/USB_CDC/cfg/stm32l073rz_nucleo64/chconf.h +++ b/testhal/STM32/multi/USB_CDC/cfg/stm32l073rz_nucleo64/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ 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 568d7dbcb..139d18a01 100644 --- a/testhal/STM32/multi/USB_CDC/cfg/stm32l476_discovery/chconf.h +++ b/testhal/STM32/multi/USB_CDC/cfg/stm32l476_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/USB_CDC/cfg/stm32l4r5_nucleo144/chconf.h b/testhal/STM32/multi/USB_CDC/cfg/stm32l4r5_nucleo144/chconf.h index 568d7dbcb..139d18a01 100644 --- a/testhal/STM32/multi/USB_CDC/cfg/stm32l4r5_nucleo144/chconf.h +++ b/testhal/STM32/multi/USB_CDC/cfg/stm32l4r5_nucleo144/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/USB_CDC/cfg/stm32wb55cg_nucleo48/chconf.h b/testhal/STM32/multi/USB_CDC/cfg/stm32wb55cg_nucleo48/chconf.h index 5b941f01e..53ff3f562 100644 --- a/testhal/STM32/multi/USB_CDC/cfg/stm32wb55cg_nucleo48/chconf.h +++ b/testhal/STM32/multi/USB_CDC/cfg/stm32wb55cg_nucleo48/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/USB_CDC/cfg/stm32wb55rg_nucleo68/chconf.h b/testhal/STM32/multi/USB_CDC/cfg/stm32wb55rg_nucleo68/chconf.h index 5b941f01e..53ff3f562 100644 --- a/testhal/STM32/multi/USB_CDC/cfg/stm32wb55rg_nucleo68/chconf.h +++ b/testhal/STM32/multi/USB_CDC/cfg/stm32wb55rg_nucleo68/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/WDG/cfg/stm32f051_discovery/chconf.h b/testhal/STM32/multi/WDG/cfg/stm32f051_discovery/chconf.h index 23a39ecdb..2fa801d49 100644 --- a/testhal/STM32/multi/WDG/cfg/stm32f051_discovery/chconf.h +++ b/testhal/STM32/multi/WDG/cfg/stm32f051_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/WDG/cfg/stm32f303_discovery/chconf.h b/testhal/STM32/multi/WDG/cfg/stm32f303_discovery/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/multi/WDG/cfg/stm32f303_discovery/chconf.h +++ b/testhal/STM32/multi/WDG/cfg/stm32f303_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/WDG/cfg/stm32f407_discovery/chconf.h b/testhal/STM32/multi/WDG/cfg/stm32f407_discovery/chconf.h index a823ef614..db8124c95 100644 --- a/testhal/STM32/multi/WDG/cfg/stm32f407_discovery/chconf.h +++ b/testhal/STM32/multi/WDG/cfg/stm32f407_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/WDG/cfg/stm32wb55rg_nucleo68/chconf.h b/testhal/STM32/multi/WDG/cfg/stm32wb55rg_nucleo68/chconf.h index 5b941f01e..53ff3f562 100644 --- a/testhal/STM32/multi/WDG/cfg/stm32wb55rg_nucleo68/chconf.h +++ b/testhal/STM32/multi/WDG/cfg/stm32wb55rg_nucleo68/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/WSPI-MFS/cfg/stm32l476_discovery/chconf.h b/testhal/STM32/multi/WSPI-MFS/cfg/stm32l476_discovery/chconf.h index 568d7dbcb..139d18a01 100644 --- a/testhal/STM32/multi/WSPI-MFS/cfg/stm32l476_discovery/chconf.h +++ b/testhal/STM32/multi/WSPI-MFS/cfg/stm32l476_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/WSPI-MFS/cfg/stm32l4r9_discovery/chconf.h b/testhal/STM32/multi/WSPI-MFS/cfg/stm32l4r9_discovery/chconf.h index 568d7dbcb..139d18a01 100644 --- a/testhal/STM32/multi/WSPI-MFS/cfg/stm32l4r9_discovery/chconf.h +++ b/testhal/STM32/multi/WSPI-MFS/cfg/stm32l4r9_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testrt/FPU_STORM/cfg/stm32g474re_nucleo64/chconf.h b/testrt/FPU_STORM/cfg/stm32g474re_nucleo64/chconf.h index 457751050..ae7d2d5fd 100644 --- a/testrt/FPU_STORM/cfg/stm32g474re_nucleo64/chconf.h +++ b/testrt/FPU_STORM/cfg/stm32g474re_nucleo64/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testrt/FPU_STORM/cfg/stm32g474re_nucleo64_alt/chconf.h b/testrt/FPU_STORM/cfg/stm32g474re_nucleo64_alt/chconf.h index 457751050..ae7d2d5fd 100644 --- a/testrt/FPU_STORM/cfg/stm32g474re_nucleo64_alt/chconf.h +++ b/testrt/FPU_STORM/cfg/stm32g474re_nucleo64_alt/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testrt/IRQ_STORM/cfg/stm32g071rb_nucleo64/chconf.h b/testrt/IRQ_STORM/cfg/stm32g071rb_nucleo64/chconf.h index cc4583b9e..9c0775849 100644 --- a/testrt/IRQ_STORM/cfg/stm32g071rb_nucleo64/chconf.h +++ b/testrt/IRQ_STORM/cfg/stm32g071rb_nucleo64/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testrt/IRQ_STORM/cfg/stm32g474re_nucleo64/chconf.h b/testrt/IRQ_STORM/cfg/stm32g474re_nucleo64/chconf.h index 457751050..ae7d2d5fd 100644 --- a/testrt/IRQ_STORM/cfg/stm32g474re_nucleo64/chconf.h +++ b/testrt/IRQ_STORM/cfg/stm32g474re_nucleo64/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testrt/IRQ_STORM/cfg/stm32g474re_nucleo64_alt/chconf.h b/testrt/IRQ_STORM/cfg/stm32g474re_nucleo64_alt/chconf.h index 457751050..ae7d2d5fd 100644 --- a/testrt/IRQ_STORM/cfg/stm32g474re_nucleo64_alt/chconf.h +++ b/testrt/IRQ_STORM/cfg/stm32g474re_nucleo64_alt/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testrt/IRQ_STORM/cfg/stm32l476_discovery/chconf.h b/testrt/IRQ_STORM/cfg/stm32l476_discovery/chconf.h index 568d7dbcb..139d18a01 100644 --- a/testrt/IRQ_STORM/cfg/stm32l476_discovery/chconf.h +++ b/testrt/IRQ_STORM/cfg/stm32l476_discovery/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testrt/IRQ_STORM/cfg/stm32wl55jc_nucleo64/chconf.h b/testrt/IRQ_STORM/cfg/stm32wl55jc_nucleo64/chconf.h index 568d7dbcb..139d18a01 100644 --- a/testrt/IRQ_STORM/cfg/stm32wl55jc_nucleo64/chconf.h +++ b/testrt/IRQ_STORM/cfg/stm32wl55jc_nucleo64/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testrt/VT_STORM/cfg/stm32g474re_nucleo64/chconf.h b/testrt/VT_STORM/cfg/stm32g474re_nucleo64/chconf.h index 6d8da4830..d3ab17eb7 100644 --- a/testrt/VT_STORM/cfg/stm32g474re_nucleo64/chconf.h +++ b/testrt/VT_STORM/cfg/stm32g474re_nucleo64/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testrt/VT_STORM/cfg/stm32wl55jc_nucleo64/chconf.h b/testrt/VT_STORM/cfg/stm32wl55jc_nucleo64/chconf.h index aaf0a6601..e229b81b1 100644 --- a/testrt/VT_STORM/cfg/stm32wl55jc_nucleo64/chconf.h +++ b/testrt/VT_STORM/cfg/stm32wl55jc_nucleo64/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testrt/VT_STORM/cfg/stm32wl55jc_nucleo64_v2/chconf.h b/testrt/VT_STORM/cfg/stm32wl55jc_nucleo64_v2/chconf.h index d5ce161e9..7c7d09376 100644 --- a/testrt/VT_STORM/cfg/stm32wl55jc_nucleo64_v2/chconf.h +++ b/testrt/VT_STORM/cfg/stm32wl55jc_nucleo64_v2/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testrt/WKP_STORM/cfg/stm32g474re_nucleo64/chconf.h b/testrt/WKP_STORM/cfg/stm32g474re_nucleo64/chconf.h index 457751050..ae7d2d5fd 100644 --- a/testrt/WKP_STORM/cfg/stm32g474re_nucleo64/chconf.h +++ b/testrt/WKP_STORM/cfg/stm32g474re_nucleo64/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testrt/WKP_STORM/cfg/stm32g474re_nucleo64_alt/chconf.h b/testrt/WKP_STORM/cfg/stm32g474re_nucleo64_alt/chconf.h index 457751050..ae7d2d5fd 100644 --- a/testrt/WKP_STORM/cfg/stm32g474re_nucleo64_alt/chconf.h +++ b/testrt/WKP_STORM/cfg/stm32g474re_nucleo64_alt/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testrt/WKP_STORM/cfg/stm32l552ze_nucleo144/chconf.h b/testrt/WKP_STORM/cfg/stm32l552ze_nucleo144/chconf.h index 457751050..ae7d2d5fd 100644 --- a/testrt/WKP_STORM/cfg/stm32l552ze_nucleo144/chconf.h +++ b/testrt/WKP_STORM/cfg/stm32l552ze_nucleo144/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/testrt/WKP_STORM/cfg/stm32l552ze_nucleo144_alt/chconf.h b/testrt/WKP_STORM/cfg/stm32l552ze_nucleo144_alt/chconf.h index 457751050..ae7d2d5fd 100644 --- a/testrt/WKP_STORM/cfg/stm32l552ze_nucleo144_alt/chconf.h +++ b/testrt/WKP_STORM/cfg/stm32l552ze_nucleo144_alt/chconf.h @@ -139,6 +139,19 @@ #define CH_CFG_NO_IDLE_THREAD FALSE #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL 0 +#endif + /** @} */ /*===========================================================================*/ diff --git a/tools/ftl/processors/conf/chconf_rt/chconf.h.ftl b/tools/ftl/processors/conf/chconf_rt/chconf.h.ftl index da922fbd0..ab9cb27f4 100644 --- a/tools/ftl/processors/conf/chconf_rt/chconf.h.ftl +++ b/tools/ftl/processors/conf/chconf_rt/chconf.h.ftl @@ -60,6 +60,19 @@ #define CH_CFG_SMP_MODE ${doc.CH_CFG_SMP_MODE!"FALSE"} #endif +/** + * @brief Kernel hardening level. + * @details This option is the level of functional-safety checks enabled + * in the kerkel. The meaning is: + * - 0: No checks, maximum performance. + * - 1: Reasonable checks. + * - 2: All checks. + * . + */ +#if !defined(CH_CFG_HARDENING_LEVEL) +#define CH_CFG_HARDENING_LEVEL ${doc.CH_CFG_HARDENING_LEVEL!"0"} +#endif + /** @} */ /*===========================================================================*/