AP_HAL_ChibiOS: use new AP_PERIPH_EFI_ENABLED define

This commit is contained in:
Shiv Tyagi 2025-02-19 23:56:01 +05:30 committed by Peter Barker
parent 9b226edf3a
commit 49755d6212
4 changed files with 9 additions and 3 deletions

View File

@ -54,7 +54,7 @@ define AP_PERIPH_RCIN_ENABLED 1
# ----------- EFI
define HAL_PERIPH_ENABLE_EFI
define AP_PERIPH_EFI_ENABLED 1
define HAL_EFI_ENABLED 1

View File

@ -5,7 +5,7 @@ define STM32_ADC_USE_ADC1 FALSE
define HAL_DISABLE_ADC_DRIVER TRUE
# support all serial EFI types
define HAL_PERIPH_ENABLE_EFI
define AP_PERIPH_EFI_ENABLED 1
define HAL_EFI_ENABLED 1
define AP_PERIPH_EFI_PORT_DEFAULT 2

View File

@ -181,6 +181,9 @@
#ifdef HAL_PERIPH_ENABLE_RANGEFINDER
#error "Change 'define HAL_PERIPH_ENABLE_RANGEFINDER' to 'define AP_PERIPH_RANGEFINDER_ENABLED 1'"
#endif
#ifdef HAL_PERIPH_ENABLE_EFI
#error "Change 'define AP_PERIPH_EFI_ENABLED' to 'define AP_PERIPH_EFI_ENABLED 1'"
#endif
#ifdef HAL_PERIPH_ENABLE_IMU
#error "Change 'define HAL_PERIPH_ENABLE_IMU' to 'define AP_PERIPH_IMU_ENABLED 1'"
#endif
@ -236,6 +239,9 @@
#ifndef AP_PERIPH_IMU_ENABLED
#define AP_PERIPH_IMU_ENABLED 0
#endif
#ifndef AP_PERIPH_EFI_ENABLED
#define AP_PERIPH_EFI_ENABLED 0
#endif
#ifndef AP_PERIPH_RTC_ENABLED
#define AP_PERIPH_RTC_ENABLED 0
#endif

View File

@ -78,7 +78,7 @@ PC9 I2C3_SDA I2C3
# EFI
define AP_PERIPH_EFI_PORT_DEFAULT 0
define HAL_PERIPH_ENABLE_EFI 1
define AP_PERIPH_EFI_ENABLED 1
define HAL_EFI_ENABLED 1
define HAL_PERIPH_EFI_BAUDRATE_DEFAULT 115200