mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-28 18:53:57 -04:00
AP_HAL_ChibiOS: use new AP_PERIPH_EFI_ENABLED define
This commit is contained in:
parent
9b226edf3a
commit
49755d6212
@ -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
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user