Skip to content

Commit 11e42a9

Browse files
shiv-tyagipeterbarker
authored andcommitted
AP_HAL_ChibiOS: use new AP_PERIPH_RC_OUT_ENABLED define
1 parent 6a429b8 commit 11e42a9

File tree

38 files changed

+43
-37
lines changed

38 files changed

+43
-37
lines changed

libraries/AP_HAL_ChibiOS/hwdef/ARK_CANNODE/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ define HAL_COMPASS_MAX_SENSORS 1
113113
define AP_PERIPH_GPS_ENABLED 1
114114
define AP_PERIPH_MAG_ENABLED 1
115115
define AP_PERIPH_BARO_ENABLED 1
116-
define HAL_PERIPH_ENABLE_RC_OUT
116+
define AP_PERIPH_RC_OUT_ENABLED 1
117117
define AP_PERIPH_NOTIFY_ENABLED 1
118118

119119
define CAN_APP_NODE_NAME "org.ardupilot.ARK_CANNODE"

libraries/AP_HAL_ChibiOS/hwdef/ARK_GPS/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ define AP_PERIPH_GPS_ENABLED 1
114114
define AP_PERIPH_MAG_ENABLED 1
115115
define AP_PERIPH_BARO_ENABLED 1
116116
define HAL_PERIPH_ENABLE_BUZZER
117-
define HAL_PERIPH_ENABLE_RC_OUT
117+
define AP_PERIPH_RC_OUT_ENABLED 1
118118
define AP_PERIPH_NOTIFY_ENABLED 1
119119

120120
# GPS on 2nd port

libraries/AP_HAL_ChibiOS/hwdef/ARK_RTK_GPS/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ define AP_PERIPH_MAG_ENABLED 1
127127
define AP_PERIPH_BARO_ENABLED 1
128128
define HAL_PERIPH_ENABLE_BUZZER
129129
define AP_PERIPH_NOTIFY_ENABLED 1
130-
define HAL_PERIPH_ENABLE_RC_OUT
130+
define AP_PERIPH_RC_OUT_ENABLED 1
131131

132132
# GPS on 2nd port
133133
define HAL_PERIPH_GPS_PORT_DEFAULT 1

libraries/AP_HAL_ChibiOS/hwdef/AeroFox-GNSS_F9P/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ define HAL_USE_ADC FALSE
9494
define HAL_NO_TIMER_THREAD
9595

9696
# enable LED
97-
define HAL_PERIPH_ENABLE_RC_OUT
97+
define AP_PERIPH_RC_OUT_ENABLED 1
9898
define AP_PERIPH_NOTIFY_ENABLED 1
9999

100100
#GPIO LED

libraries/AP_HAL_ChibiOS/hwdef/AeroFox-PMU/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ PA3 TIM2_CH4 TIM2 PWM(7) GPIO(56)
4141
PA1 TIM2_CH2 TIM2 PWM(8) GPIO(57)
4242
PA6 TIM16_CH1 TIM16 PWM(9) GPIO(58) NODMA
4343

44-
define HAL_PERIPH_ENABLE_RC_OUT
44+
define AP_PERIPH_RC_OUT_ENABLED 1
4545
define AP_PERIPH_NOTIFY_ENABLED 1
4646

4747
# enable ESC control

libraries/AP_HAL_ChibiOS/hwdef/BirdCANdy/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ define GPS_MAX_INSTANCES 1
9999
define HAL_COMPASS_MAX_SENSORS 1
100100

101101
# RCOU+GPS+MAG+BARO+Buzzer+NeoPixels
102-
define HAL_PERIPH_ENABLE_RC_OUT
102+
define AP_PERIPH_RC_OUT_ENABLED 1
103103
define AP_PERIPH_GPS_ENABLED 1
104104
define AP_PERIPH_MAG_ENABLED 1
105105
define AP_PERIPH_BARO_ENABLED 1

libraries/AP_HAL_ChibiOS/hwdef/CarbonixF405/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ define AP_PARAM_MAX_EMBEDDED_PARAM 512
114114

115115
define AP_PERIPH_MAG_ENABLED 1
116116
define AP_PERIPH_BARO_ENABLED 1
117-
define HAL_PERIPH_ENABLE_RC_OUT
117+
define AP_PERIPH_RC_OUT_ENABLED 1
118118

119119
# enable ESC control
120120
define HAL_SERIAL_ESC_COMM_ENABLED 1

libraries/AP_HAL_ChibiOS/hwdef/CarbonixL496/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ define AP_PARAM_MAX_EMBEDDED_PARAM 512
117117

118118
define AP_PERIPH_MAG_ENABLED 1
119119
define AP_PERIPH_BARO_ENABLED 1
120-
define HAL_PERIPH_ENABLE_RC_OUT
120+
define AP_PERIPH_RC_OUT_ENABLED 1
121121

122122
# enable ESC control
123123
define HAL_SERIAL_ESC_COMM_ENABLED 1

libraries/AP_HAL_ChibiOS/hwdef/CubeBlack-periph/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ env AP_PERIPH 1
2727
define AP_PERIPH_GPS_ENABLED 1
2828
define AP_PERIPH_MAG_ENABLED 1
2929
define AP_PERIPH_BARO_ENABLED 1
30-
define HAL_PERIPH_ENABLE_RC_OUT
30+
define AP_PERIPH_RC_OUT_ENABLED 1
3131

3232

3333
# single GPS and compass for peripherals

libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-periph-heavy/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ define AP_PERIPH_BATTERY_ENABLED 1
2020
define AP_PERIPH_GPS_ENABLED 1
2121
define AP_PERIPH_MAG_ENABLED 1
2222
define AP_PERIPH_BARO_ENABLED 1
23-
define HAL_PERIPH_ENABLE_RC_OUT
23+
define AP_PERIPH_RC_OUT_ENABLED 1
2424
define AP_PERIPH_NOTIFY_ENABLED 1
2525
define AP_PERIPH_IMU_ENABLED 1
2626
define HAL_LOGGING_ENABLED TRUE

libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-periph/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ define AP_PERIPH_BATTERY_ENABLED 1
2020
define AP_PERIPH_GPS_ENABLED 1
2121
define AP_PERIPH_MAG_ENABLED 1
2222
define AP_PERIPH_BARO_ENABLED 1
23-
define HAL_PERIPH_ENABLE_RC_OUT
23+
define AP_PERIPH_RC_OUT_ENABLED 1
2424
define AP_PERIPH_NOTIFY_ENABLED 1
2525
define AP_PERIPH_IMU_ENABLED 1
2626

libraries/AP_HAL_ChibiOS/hwdef/FreeflyRTK/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ define HAL_COMPASS_MAX_SENSORS 1
125125
define AP_PERIPH_GPS_ENABLED 1
126126
define AP_PERIPH_MAG_ENABLED 1
127127
define AP_PERIPH_BARO_ENABLED 1
128-
define HAL_PERIPH_ENABLE_RC_OUT
128+
define AP_PERIPH_RC_OUT_ENABLED 1
129129
define AP_PERIPH_NOTIFY_ENABLED 1
130130

131131
# use NCP5623 RGB LED on I2C1

libraries/AP_HAL_ChibiOS/hwdef/G4-ESC/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ PA8 TIM1_CH1 TIM1 PWM(1) GPIO(50)
123123
# LED on timer
124124
PA15 TIM2_CH1 TIM2 PWM(2) GPIO(51)
125125

126-
define HAL_PERIPH_ENABLE_RC_OUT
126+
define AP_PERIPH_RC_OUT_ENABLED 1
127127

128128
define HAL_UART_MIN_TX_SIZE 256
129129
define HAL_UART_MIN_RX_SIZE 128

libraries/AP_HAL_ChibiOS/hwdef/Here4AP/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ define HAL_PERIPH_GPS_PORT_DEFAULT 3
129129
# PD13 GPS_ENABLE OUTPUT HIGH GPIO(20)
130130

131131
# for ProfiLed we need RC out and notify
132-
define HAL_PERIPH_ENABLE_RC_OUT
132+
define AP_PERIPH_RC_OUT_ENABLED 1
133133
define AP_PERIPH_NOTIFY_ENABLED 1
134134
define AP_SERIALLED_ENABLED 1
135135

libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_GPS/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ define AP_PERIPH_GPS_ENABLED 1
145145
define AP_PERIPH_MAG_ENABLED 1
146146
define AP_PERIPH_BARO_ENABLED 1
147147
define AP_PERIPH_NOTIFY_ENABLED 1
148-
define HAL_PERIPH_ENABLE_RC_OUT
148+
define AP_PERIPH_RC_OUT_ENABLED 1
149149

150150
# GPS on 2nd port
151151
define HAL_PERIPH_GPS_PORT_DEFAULT 1

libraries/AP_HAL_ChibiOS/hwdef/HolybroGPS/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ define AP_PERIPH_GPS_ENABLED 1
141141
define AP_PERIPH_MAG_ENABLED 1
142142
define AP_PERIPH_BARO_ENABLED 1
143143
define AP_PERIPH_NOTIFY_ENABLED 1
144-
define HAL_PERIPH_ENABLE_RC_OUT
144+
define AP_PERIPH_RC_OUT_ENABLED 1
145145

146146
# GPS on 2nd port
147147
define HAL_PERIPH_GPS_PORT_DEFAULT 1

libraries/AP_HAL_ChibiOS/hwdef/MatekG474-DShot/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ PC6 TIM8_CH1 TIM8 PWM(9) GPIO(58)
1313
PB9 TIM8_CH3 TIM8 PWM(10) GPIO(59)
1414
PB2 TIM5_CH1 TIM5 PWM(11) GPIO(60)
1515

16-
define HAL_PERIPH_ENABLE_RC_OUT
16+
define AP_PERIPH_RC_OUT_ENABLED 1
1717
define AP_PERIPH_NOTIFY_ENABLED 1
1818

1919
# enable ESC control

libraries/AP_HAL_ChibiOS/hwdef/MatekH743-periph/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ define AP_PERIPH_BARO_ENABLED 1
2222
define AP_PERIPH_AIRSPEED_ENABLED 1
2323
define AP_PERIPH_ADSB_ENABLED 1
2424
define AP_PERIPH_RANGEFINDER_ENABLED 1
25-
define HAL_PERIPH_ENABLE_RC_OUT
25+
define AP_PERIPH_RC_OUT_ENABLED 1
2626
define AP_PERIPH_BATTERY_ENABLED 1
2727

2828

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ PA10 TIM1_CH3 TIM1 PWM(3) GPIO(52)
99
PA11 TIM1_CH4 TIM1 PWM(4) GPIO(53)
1010
PA15 TIM2_CH1 TIM2 PWM(5) GPIO(54)
1111

12-
define HAL_PERIPH_ENABLE_RC_OUT
12+
define AP_PERIPH_RC_OUT_ENABLED 1
1313

1414
# enable APD telemetry on rx1
1515
define HAL_PERIPH_ENABLE_ESC_APD

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ PA1 TIM2_CH2 TIM2 PWM(8) GPIO(57)
2525
# "beeper" pin -- PWM9
2626
PA6 TIM16_CH1 TIM16 PWM(9) GPIO(58) NODMA
2727

28-
define HAL_PERIPH_ENABLE_RC_OUT
28+
define AP_PERIPH_RC_OUT_ENABLED 1
2929
define AP_PERIPH_NOTIFY_ENABLED 1
3030

3131
# enable ESC control

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ PB0 BATT2_VOLTAGE_SENS ADC1 SCALE(1)
7878
PB1 BATT2_CURRENT_SENS ADC1 SCALE(1)
7979

8080
# -------------------- Buzzer+NeoPixels --------------d------
81-
define HAL_PERIPH_ENABLE_RC_OUT
81+
define AP_PERIPH_RC_OUT_ENABLED 1
8282
define AP_PERIPH_NOTIFY_ENABLED 1
8383

8484

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ PA9 TIM1_CH2 TIM1 PWM(2) GPIO(51)
1919
PA10 TIM1_CH3 TIM1 PWM(3) GPIO(52)
2020
PA11 TIM1_CH4 TIM1 PWM(4) GPIO(53)
2121

22-
define HAL_PERIPH_ENABLE_RC_OUT
22+
define AP_PERIPH_RC_OUT_ENABLED 1
2323
define AP_PERIPH_NOTIFY_ENABLED 1
2424

2525
# enable ESC control

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ PA1 TIM2_CH2 TIM2 PWM(8) GPIO(57)
2727
# "beeper" pin -- PWM9
2828
PA6 TIM16_CH1 TIM16 PWM(9) GPIO(58) NODMA
2929

30-
define HAL_PERIPH_ENABLE_RC_OUT
30+
define AP_PERIPH_RC_OUT_ENABLED 1
3131
define AP_PERIPH_NOTIFY_ENABLED 1
3232

3333
# enable ESC control

libraries/AP_HAL_ChibiOS/hwdef/Pixracer-periph/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ define AP_PERIPH_MAG_ENABLED 1
7171
define AP_PERIPH_BARO_ENABLED 1
7272

7373
define AP_PERIPH_BATTERY_ENABLED 1
74-
define HAL_PERIPH_ENABLE_RC_OUT
74+
define AP_PERIPH_RC_OUT_ENABLED 1
7575

7676
define AP_PERIPH_RANGEFINDER_ENABLED 1
7777
define AP_PERIPH_RANGEFINDER_PORT_DEFAULT 1

libraries/AP_HAL_ChibiOS/hwdef/Sierra-F405/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ define STM32_ADC_USE_ADC1 TRUE
101101
PA0 VSENSE ADC1 SCALE(2)
102102

103103
# -------------------- Buzzer+NeoPixels --------------------
104-
define HAL_PERIPH_ENABLE_RC_OUT
104+
define AP_PERIPH_RC_OUT_ENABLED 1
105105
define AP_PERIPH_NOTIFY_ENABLED 1
106106

107107
# Enable the sensor voltage pin

libraries/AP_HAL_ChibiOS/hwdef/Sierra-F412/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ define AP_PERIPH_GPS_ENABLED 1
104104
define HAL_PERIPH_GPS_PORT_DEFAULT 3
105105
define AP_PERIPH_MAG_ENABLED 1
106106
define AP_PERIPH_BARO_ENABLED 1
107-
define HAL_PERIPH_ENABLE_RC_OUT
107+
define AP_PERIPH_RC_OUT_ENABLED 1
108108
define AP_PERIPH_NOTIFY_ENABLED 1
109109

110110
# reserve 256 bytes for comms between app and bootloader

libraries/AP_HAL_ChibiOS/hwdef/Sierra-F9P/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ define HAL_COMPASS_MAX_SENSORS 1
115115
define AP_PERIPH_GPS_ENABLED 1
116116
define AP_PERIPH_MAG_ENABLED 1
117117
define AP_PERIPH_BARO_ENABLED 1
118-
define HAL_PERIPH_ENABLE_RC_OUT
118+
define AP_PERIPH_RC_OUT_ENABLED 1
119119
define AP_PERIPH_NOTIFY_ENABLED 1
120120
define CONFIGURE_PPS_PIN TRUE
121121
define GPS_MOVING_BASELINE 1

libraries/AP_HAL_ChibiOS/hwdef/Sierra-PrecisionPoint/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ define HAL_COMPASS_MAX_SENSORS 1
111111
define AP_PERIPH_GPS_ENABLED 1
112112
define AP_PERIPH_MAG_ENABLED 1
113113
define AP_PERIPH_BARO_ENABLED 1
114-
define HAL_PERIPH_ENABLE_RC_OUT
114+
define AP_PERIPH_RC_OUT_ENABLED 1
115115
define AP_PERIPH_NOTIFY_ENABLED 1
116116

117117
# PB5 GPS_PPS INPUT FLOATING GPIO(6)

libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueNavPro/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ env ROMFS_UNCOMPRESSED True
8989
define AP_PERIPH_GPS_ENABLED 1
9090
define AP_PERIPH_MAG_ENABLED 1
9191
define AP_PERIPH_BARO_ENABLED 1
92-
define HAL_PERIPH_ENABLE_RC_OUT
92+
define AP_PERIPH_RC_OUT_ENABLED 1
9393
define AP_PERIPH_NOTIFY_ENABLED 1
9494

9595
# disable dual GPS and GPS blending to save flash space

libraries/AP_HAL_ChibiOS/hwdef/f303-PWM/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ PB14 TIM1_CH2N TIM1 PWM(3) GPIO(52)
2626
PB15 TIM1_CH3N TIM1 PWM(4) GPIO(53)
2727

2828
# enable PWM
29-
define HAL_PERIPH_ENABLE_RC_OUT
29+
define AP_PERIPH_RC_OUT_ENABLED 1
3030

libraries/AP_HAL_ChibiOS/hwdef/f303-TempSensor/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ undef PB0
1515
PB0 TIM3_CH3 TIM3 PWM(1) GPIO(2)
1616
PB1 TIM3_CH4 TIM3 PWM(2) GPIO(3)
1717

18-
define HAL_PERIPH_ENABLE_RC_OUT
18+
define AP_PERIPH_RC_OUT_ENABLED 1
1919

2020

2121
define AP_PERIPH_BATTERY_ENABLED 1

libraries/AP_HAL_ChibiOS/hwdef/f405-MatekGPS/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ define HAL_BATT2_VOLT_SCALE 11.0
211211

212212

213213
# -------------------- Buzzer+NeoPixels --------------d------
214-
define HAL_PERIPH_ENABLE_RC_OUT
214+
define AP_PERIPH_RC_OUT_ENABLED 1
215215
define AP_PERIPH_NOTIFY_ENABLED 1
216216

217217
define DEFAULT_NTF_LED_TYPES 455

libraries/AP_HAL_ChibiOS/hwdef/mRoCANPWM-M10126/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ PA7 TIM3_CH2 TIM3 PWM(10) GPIO(59)
8181
PB0 TIM3_CH3 TIM3 PWM(11) GPIO(60)
8282
PB1 TIM3_CH4 TIM3 PWM(12) GPIO(61)
8383

84-
define HAL_PERIPH_ENABLE_RC_OUT
84+
define AP_PERIPH_RC_OUT_ENABLED 1
8585
#define AP_PERIPH_NOTIFY_ENABLED 1
8686

8787
# enable ESC control

libraries/AP_HAL_ChibiOS/hwdef/rGNSS/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ define AP_PERIPH_GPS_ENABLED 1
118118
define AP_PERIPH_MAG_ENABLED 1
119119
define AP_PERIPH_BARO_ENABLED 1
120120
define AP_PERIPH_NOTIFY_ENABLED 1
121-
define HAL_PERIPH_ENABLE_RC_OUT
121+
define AP_PERIPH_RC_OUT_ENABLED 1
122122

123123
# single baro
124124
define BARO_MAX_INSTANCES 1

libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_periph.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@
181181
#ifdef HAL_PERIPH_ENABLE_BARO
182182
#error "Change 'define HAL_PERIPH_ENABLE_BARO' to 'define AP_PERIPH_BARO_ENABLED 1'"
183183
#endif
184+
#ifdef HAL_PERIPH_ENABLE_RC_OUT
185+
#error "Change 'define HAL_PERIPH_ENABLE_RC_OUT' to 'define AP_PERIPH_RC_OUT_ENABLED 1'"
186+
#endif
184187
#ifdef HAL_PERIPH_ENABLE_RANGEFINDER
185188
#error "Change 'define HAL_PERIPH_ENABLE_RANGEFINDER' to 'define AP_PERIPH_RANGEFINDER_ENABLED 1'"
186189
#endif
@@ -248,6 +251,9 @@
248251
#ifndef AP_PERIPH_IMU_ENABLED
249252
#define AP_PERIPH_IMU_ENABLED 0
250253
#endif
254+
#ifndef AP_PERIPH_RC_OUT_ENABLED
255+
#define AP_PERIPH_RC_OUT_ENABLED 0
256+
#endif
251257
#ifndef AP_PERIPH_EFI_ENABLED
252258
#define AP_PERIPH_EFI_ENABLED 0
253259
#endif

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ define APD_ESC_SERIAL_0 1
6262
define APD_ESC_SERIAL_1 2
6363

6464
# pwm
65-
define HAL_PERIPH_ENABLE_RC_OUT
65+
define AP_PERIPH_RC_OUT_ENABLED 1
6666
PE9 TIM1_CH1 TIM1 PWM(1) GPIO(51) # esc front
6767
PE11 TIM1_CH2 TIM1 PWM(2) GPIO(52) # esc rear
6868
PB11 TIM2_CH4 TIM2 PWM(4) GPIO(54) # aux 3

libraries/AP_HAL_ChibiOS/hwdef/sw-nav-f405/hwdef.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ define HAL_COMPASS_MAX_SENSORS 1
6464

6565
# notify led
6666
define AP_PERIPH_NOTIFY_ENABLED 1
67-
define HAL_PERIPH_ENABLE_RC_OUT
67+
define AP_PERIPH_RC_OUT_ENABLED 1
6868

6969
define DEFAULT_NTF_LED_TYPES 131072 # discrete rgb led (1 << 17)
7070

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ PB10 USART3_TX USART3 SPEED_HIGH DMA
5858
PB11 USART3_RX USART3 SPEED_HIGH DMA
5959

6060
# throttle pwm
61-
define HAL_PERIPH_ENABLE_RC_OUT
61+
define AP_PERIPH_RC_OUT_ENABLED 1
6262
PA15 TIM2_CH1 TIM2 PWM(1)
6363

6464
# i2c

0 commit comments

Comments
 (0)