File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
libraries/AP_HAL_ChibiOS/hwdef Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,6 @@ PA15 TIM2_CH1 TIM2 PWM(5) GPIO(54)
1212define AP_PERIPH_RC_OUT_ENABLED 1
1313
1414# enable APD telemetry on rx1
15- define HAL_PERIPH_ENABLE_ESC_APD
15+ define AP_PERIPH_ESC_APD_ENABLED 1
1616define APD_ESC_INSTANCES 1
1717define APD_ESC_SERIAL_0 0
Original file line number Diff line number Diff line change 235235#ifdef HAL_PERIPH_ENABLE_PWM_HARDPOINT
236236#error "Change 'define HAL_PERIPH_ENABLE_PWM_HARDPOINT' to 'define AP_PERIPH_PWM_HARDPOINT_ENABLED 1'"
237237#endif
238+ #ifdef HAL_PERIPH_ENABLE_ESC_APD
239+ #error "Change 'define HAL_PERIPH_ENABLE_ESC_APD' to 'define AP_PERIPH_ESC_APD_ENABLED 1'"
240+ #endif
238241
239242/*
240243 * defaults for various AP_Periph features:
314317#ifndef AP_PERIPH_PWM_HARDPOINT_ENABLED
315318#define AP_PERIPH_PWM_HARDPOINT_ENABLED 0
316319#endif
320+ #ifndef AP_PERIPH_ESC_APD_ENABLED
321+ #define AP_PERIPH_ESC_APD_ENABLED 0
322+ #endif
317323
318324/*
319325 * turning on of ArduPilot features based on which AP_Periph features
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ PA0 UART4_TX UART4 SPEED_HIGH DMA
5656PA1 UART4_RX UART4 SPEED_HIGH DMA
5757
5858# APD telem
59- define HAL_PERIPH_ENABLE_ESC_APD 1
59+ define AP_PERIPH_ESC_APD_ENABLED 1
6060define APD_ESC_INSTANCES 2
6161define APD_ESC_SERIAL_0 1
6262define APD_ESC_SERIAL_1 2
You can’t perform that action at this time.
0 commit comments