AP_HAL_ChibiOS: use new AP_PERIPH_ESC_APD_ENABLED define

This commit is contained in:
Shiv Tyagi 2025-03-05 00:46:23 +05:30 committed by Peter Barker
parent c814c05532
commit 3798d6fd32
3 changed files with 8 additions and 2 deletions

View File

@ -12,6 +12,6 @@ PA15 TIM2_CH1 TIM2 PWM(5) GPIO(54)
define AP_PERIPH_RC_OUT_ENABLED 1
# enable APD telemetry on rx1
define HAL_PERIPH_ENABLE_ESC_APD
define AP_PERIPH_ESC_APD_ENABLED 1
define APD_ESC_INSTANCES 1
define APD_ESC_SERIAL_0 0

View File

@ -235,6 +235,9 @@
#ifdef HAL_PERIPH_ENABLE_PWM_HARDPOINT
#error "Change 'define HAL_PERIPH_ENABLE_PWM_HARDPOINT' to 'define AP_PERIPH_PWM_HARDPOINT_ENABLED 1'"
#endif
#ifdef HAL_PERIPH_ENABLE_ESC_APD
#error "Change 'define HAL_PERIPH_ENABLE_ESC_APD' to 'define AP_PERIPH_ESC_APD_ENABLED 1'"
#endif
/*
* defaults for various AP_Periph features:
@ -314,6 +317,9 @@
#ifndef AP_PERIPH_PWM_HARDPOINT_ENABLED
#define AP_PERIPH_PWM_HARDPOINT_ENABLED 0
#endif
#ifndef AP_PERIPH_ESC_APD_ENABLED
#define AP_PERIPH_ESC_APD_ENABLED 0
#endif
/*
* turning on of ArduPilot features based on which AP_Periph features

View File

@ -56,7 +56,7 @@ PA0 UART4_TX UART4 SPEED_HIGH DMA
PA1 UART4_RX UART4 SPEED_HIGH DMA
# APD telem
define HAL_PERIPH_ENABLE_ESC_APD 1
define AP_PERIPH_ESC_APD_ENABLED 1
define APD_ESC_INSTANCES 2
define APD_ESC_SERIAL_0 1
define APD_ESC_SERIAL_1 2