Skip to content

Commit 3798d6f

Browse files
shiv-tyagipeterbarker
authored andcommitted
AP_HAL_ChibiOS: use new AP_PERIPH_ESC_APD_ENABLED define
1 parent c814c05 commit 3798d6f

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

libraries/AP_HAL_ChibiOS/hwdef/MatekL431-APDTelem/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ PA15 TIM2_CH1 TIM2 PWM(5) GPIO(54)
1212
define 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
1616
define APD_ESC_INSTANCES 1
1717
define APD_ESC_SERIAL_0 0

libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_periph.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,9 @@
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:
@@ -314,6 +317,9 @@
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

libraries/AP_HAL_ChibiOS/hwdef/sw-boom-f407/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ PA0 UART4_TX UART4 SPEED_HIGH DMA
5656
PA1 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
6060
define APD_ESC_INSTANCES 2
6161
define APD_ESC_SERIAL_0 1
6262
define APD_ESC_SERIAL_1 2

0 commit comments

Comments
 (0)