File tree Expand file tree Collapse file tree 38 files changed +43
-37
lines changed
libraries/AP_HAL_ChibiOS/hwdef Expand file tree Collapse file tree 38 files changed +43
-37
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ define HAL_COMPASS_MAX_SENSORS 1
113
113
define AP_PERIPH_GPS_ENABLED 1
114
114
define AP_PERIPH_MAG_ENABLED 1
115
115
define AP_PERIPH_BARO_ENABLED 1
116
- define HAL_PERIPH_ENABLE_RC_OUT
116
+ define AP_PERIPH_RC_OUT_ENABLED 1
117
117
define AP_PERIPH_NOTIFY_ENABLED 1
118
118
119
119
define CAN_APP_NODE_NAME "org.ardupilot.ARK_CANNODE"
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ define AP_PERIPH_GPS_ENABLED 1
114
114
define AP_PERIPH_MAG_ENABLED 1
115
115
define AP_PERIPH_BARO_ENABLED 1
116
116
define HAL_PERIPH_ENABLE_BUZZER
117
- define HAL_PERIPH_ENABLE_RC_OUT
117
+ define AP_PERIPH_RC_OUT_ENABLED 1
118
118
define AP_PERIPH_NOTIFY_ENABLED 1
119
119
120
120
# GPS on 2nd port
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ define AP_PERIPH_MAG_ENABLED 1
127
127
define AP_PERIPH_BARO_ENABLED 1
128
128
define HAL_PERIPH_ENABLE_BUZZER
129
129
define AP_PERIPH_NOTIFY_ENABLED 1
130
- define HAL_PERIPH_ENABLE_RC_OUT
130
+ define AP_PERIPH_RC_OUT_ENABLED 1
131
131
132
132
# GPS on 2nd port
133
133
define HAL_PERIPH_GPS_PORT_DEFAULT 1
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ define HAL_USE_ADC FALSE
94
94
define HAL_NO_TIMER_THREAD
95
95
96
96
# enable LED
97
- define HAL_PERIPH_ENABLE_RC_OUT
97
+ define AP_PERIPH_RC_OUT_ENABLED 1
98
98
define AP_PERIPH_NOTIFY_ENABLED 1
99
99
100
100
#GPIO LED
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ PA3 TIM2_CH4 TIM2 PWM(7) GPIO(56)
41
41
PA1 TIM2_CH2 TIM2 PWM(8) GPIO(57)
42
42
PA6 TIM16_CH1 TIM16 PWM(9) GPIO(58) NODMA
43
43
44
- define HAL_PERIPH_ENABLE_RC_OUT
44
+ define AP_PERIPH_RC_OUT_ENABLED 1
45
45
define AP_PERIPH_NOTIFY_ENABLED 1
46
46
47
47
# enable ESC control
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ define GPS_MAX_INSTANCES 1
99
99
define HAL_COMPASS_MAX_SENSORS 1
100
100
101
101
# RCOU+GPS+MAG+BARO+Buzzer+NeoPixels
102
- define HAL_PERIPH_ENABLE_RC_OUT
102
+ define AP_PERIPH_RC_OUT_ENABLED 1
103
103
define AP_PERIPH_GPS_ENABLED 1
104
104
define AP_PERIPH_MAG_ENABLED 1
105
105
define AP_PERIPH_BARO_ENABLED 1
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ define AP_PARAM_MAX_EMBEDDED_PARAM 512
114
114
115
115
define AP_PERIPH_MAG_ENABLED 1
116
116
define AP_PERIPH_BARO_ENABLED 1
117
- define HAL_PERIPH_ENABLE_RC_OUT
117
+ define AP_PERIPH_RC_OUT_ENABLED 1
118
118
119
119
# enable ESC control
120
120
define HAL_SERIAL_ESC_COMM_ENABLED 1
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ define AP_PARAM_MAX_EMBEDDED_PARAM 512
117
117
118
118
define AP_PERIPH_MAG_ENABLED 1
119
119
define AP_PERIPH_BARO_ENABLED 1
120
- define HAL_PERIPH_ENABLE_RC_OUT
120
+ define AP_PERIPH_RC_OUT_ENABLED 1
121
121
122
122
# enable ESC control
123
123
define HAL_SERIAL_ESC_COMM_ENABLED 1
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ env AP_PERIPH 1
27
27
define AP_PERIPH_GPS_ENABLED 1
28
28
define AP_PERIPH_MAG_ENABLED 1
29
29
define AP_PERIPH_BARO_ENABLED 1
30
- define HAL_PERIPH_ENABLE_RC_OUT
30
+ define AP_PERIPH_RC_OUT_ENABLED 1
31
31
32
32
33
33
# single GPS and compass for peripherals
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ define AP_PERIPH_BATTERY_ENABLED 1
20
20
define AP_PERIPH_GPS_ENABLED 1
21
21
define AP_PERIPH_MAG_ENABLED 1
22
22
define AP_PERIPH_BARO_ENABLED 1
23
- define HAL_PERIPH_ENABLE_RC_OUT
23
+ define AP_PERIPH_RC_OUT_ENABLED 1
24
24
define AP_PERIPH_NOTIFY_ENABLED 1
25
25
define AP_PERIPH_IMU_ENABLED 1
26
26
define HAL_LOGGING_ENABLED TRUE
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ define AP_PERIPH_BATTERY_ENABLED 1
20
20
define AP_PERIPH_GPS_ENABLED 1
21
21
define AP_PERIPH_MAG_ENABLED 1
22
22
define AP_PERIPH_BARO_ENABLED 1
23
- define HAL_PERIPH_ENABLE_RC_OUT
23
+ define AP_PERIPH_RC_OUT_ENABLED 1
24
24
define AP_PERIPH_NOTIFY_ENABLED 1
25
25
define AP_PERIPH_IMU_ENABLED 1
26
26
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ define HAL_COMPASS_MAX_SENSORS 1
125
125
define AP_PERIPH_GPS_ENABLED 1
126
126
define AP_PERIPH_MAG_ENABLED 1
127
127
define AP_PERIPH_BARO_ENABLED 1
128
- define HAL_PERIPH_ENABLE_RC_OUT
128
+ define AP_PERIPH_RC_OUT_ENABLED 1
129
129
define AP_PERIPH_NOTIFY_ENABLED 1
130
130
131
131
# use NCP5623 RGB LED on I2C1
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ PA8 TIM1_CH1 TIM1 PWM(1) GPIO(50)
123
123
# LED on timer
124
124
PA15 TIM2_CH1 TIM2 PWM(2) GPIO(51)
125
125
126
- define HAL_PERIPH_ENABLE_RC_OUT
126
+ define AP_PERIPH_RC_OUT_ENABLED 1
127
127
128
128
define HAL_UART_MIN_TX_SIZE 256
129
129
define HAL_UART_MIN_RX_SIZE 128
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ define HAL_PERIPH_GPS_PORT_DEFAULT 3
129
129
# PD13 GPS_ENABLE OUTPUT HIGH GPIO(20)
130
130
131
131
# for ProfiLed we need RC out and notify
132
- define HAL_PERIPH_ENABLE_RC_OUT
132
+ define AP_PERIPH_RC_OUT_ENABLED 1
133
133
define AP_PERIPH_NOTIFY_ENABLED 1
134
134
define AP_SERIALLED_ENABLED 1
135
135
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ define AP_PERIPH_GPS_ENABLED 1
145
145
define AP_PERIPH_MAG_ENABLED 1
146
146
define AP_PERIPH_BARO_ENABLED 1
147
147
define AP_PERIPH_NOTIFY_ENABLED 1
148
- define HAL_PERIPH_ENABLE_RC_OUT
148
+ define AP_PERIPH_RC_OUT_ENABLED 1
149
149
150
150
# GPS on 2nd port
151
151
define HAL_PERIPH_GPS_PORT_DEFAULT 1
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ define AP_PERIPH_GPS_ENABLED 1
141
141
define AP_PERIPH_MAG_ENABLED 1
142
142
define AP_PERIPH_BARO_ENABLED 1
143
143
define AP_PERIPH_NOTIFY_ENABLED 1
144
- define HAL_PERIPH_ENABLE_RC_OUT
144
+ define AP_PERIPH_RC_OUT_ENABLED 1
145
145
146
146
# GPS on 2nd port
147
147
define HAL_PERIPH_GPS_PORT_DEFAULT 1
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ PC6 TIM8_CH1 TIM8 PWM(9) GPIO(58)
13
13
PB9 TIM8_CH3 TIM8 PWM(10) GPIO(59)
14
14
PB2 TIM5_CH1 TIM5 PWM(11) GPIO(60)
15
15
16
- define HAL_PERIPH_ENABLE_RC_OUT
16
+ define AP_PERIPH_RC_OUT_ENABLED 1
17
17
define AP_PERIPH_NOTIFY_ENABLED 1
18
18
19
19
# enable ESC control
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ define AP_PERIPH_BARO_ENABLED 1
22
22
define AP_PERIPH_AIRSPEED_ENABLED 1
23
23
define AP_PERIPH_ADSB_ENABLED 1
24
24
define AP_PERIPH_RANGEFINDER_ENABLED 1
25
- define HAL_PERIPH_ENABLE_RC_OUT
25
+ define AP_PERIPH_RC_OUT_ENABLED 1
26
26
define AP_PERIPH_BATTERY_ENABLED 1
27
27
28
28
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ PA10 TIM1_CH3 TIM1 PWM(3) GPIO(52)
9
9
PA11 TIM1_CH4 TIM1 PWM(4) GPIO(53)
10
10
PA15 TIM2_CH1 TIM2 PWM(5) GPIO(54)
11
11
12
- define HAL_PERIPH_ENABLE_RC_OUT
12
+ define AP_PERIPH_RC_OUT_ENABLED 1
13
13
14
14
# enable APD telemetry on rx1
15
15
define HAL_PERIPH_ENABLE_ESC_APD
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ PA1 TIM2_CH2 TIM2 PWM(8) GPIO(57)
25
25
# "beeper" pin -- PWM9
26
26
PA6 TIM16_CH1 TIM16 PWM(9) GPIO(58) NODMA
27
27
28
- define HAL_PERIPH_ENABLE_RC_OUT
28
+ define AP_PERIPH_RC_OUT_ENABLED 1
29
29
define AP_PERIPH_NOTIFY_ENABLED 1
30
30
31
31
# enable ESC control
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ PB0 BATT2_VOLTAGE_SENS ADC1 SCALE(1)
78
78
PB1 BATT2_CURRENT_SENS ADC1 SCALE(1)
79
79
80
80
# -------------------- Buzzer+NeoPixels --------------d------
81
- define HAL_PERIPH_ENABLE_RC_OUT
81
+ define AP_PERIPH_RC_OUT_ENABLED 1
82
82
define AP_PERIPH_NOTIFY_ENABLED 1
83
83
84
84
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ PA9 TIM1_CH2 TIM1 PWM(2) GPIO(51)
19
19
PA10 TIM1_CH3 TIM1 PWM(3) GPIO(52)
20
20
PA11 TIM1_CH4 TIM1 PWM(4) GPIO(53)
21
21
22
- define HAL_PERIPH_ENABLE_RC_OUT
22
+ define AP_PERIPH_RC_OUT_ENABLED 1
23
23
define AP_PERIPH_NOTIFY_ENABLED 1
24
24
25
25
# enable ESC control
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ PA1 TIM2_CH2 TIM2 PWM(8) GPIO(57)
27
27
# "beeper" pin -- PWM9
28
28
PA6 TIM16_CH1 TIM16 PWM(9) GPIO(58) NODMA
29
29
30
- define HAL_PERIPH_ENABLE_RC_OUT
30
+ define AP_PERIPH_RC_OUT_ENABLED 1
31
31
define AP_PERIPH_NOTIFY_ENABLED 1
32
32
33
33
# enable ESC control
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ define AP_PERIPH_MAG_ENABLED 1
71
71
define AP_PERIPH_BARO_ENABLED 1
72
72
73
73
define AP_PERIPH_BATTERY_ENABLED 1
74
- define HAL_PERIPH_ENABLE_RC_OUT
74
+ define AP_PERIPH_RC_OUT_ENABLED 1
75
75
76
76
define AP_PERIPH_RANGEFINDER_ENABLED 1
77
77
define AP_PERIPH_RANGEFINDER_PORT_DEFAULT 1
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ define STM32_ADC_USE_ADC1 TRUE
101
101
PA0 VSENSE ADC1 SCALE(2)
102
102
103
103
# -------------------- Buzzer+NeoPixels --------------------
104
- define HAL_PERIPH_ENABLE_RC_OUT
104
+ define AP_PERIPH_RC_OUT_ENABLED 1
105
105
define AP_PERIPH_NOTIFY_ENABLED 1
106
106
107
107
# Enable the sensor voltage pin
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ define AP_PERIPH_GPS_ENABLED 1
104
104
define HAL_PERIPH_GPS_PORT_DEFAULT 3
105
105
define AP_PERIPH_MAG_ENABLED 1
106
106
define AP_PERIPH_BARO_ENABLED 1
107
- define HAL_PERIPH_ENABLE_RC_OUT
107
+ define AP_PERIPH_RC_OUT_ENABLED 1
108
108
define AP_PERIPH_NOTIFY_ENABLED 1
109
109
110
110
# reserve 256 bytes for comms between app and bootloader
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ define HAL_COMPASS_MAX_SENSORS 1
115
115
define AP_PERIPH_GPS_ENABLED 1
116
116
define AP_PERIPH_MAG_ENABLED 1
117
117
define AP_PERIPH_BARO_ENABLED 1
118
- define HAL_PERIPH_ENABLE_RC_OUT
118
+ define AP_PERIPH_RC_OUT_ENABLED 1
119
119
define AP_PERIPH_NOTIFY_ENABLED 1
120
120
define CONFIGURE_PPS_PIN TRUE
121
121
define GPS_MOVING_BASELINE 1
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ define HAL_COMPASS_MAX_SENSORS 1
111
111
define AP_PERIPH_GPS_ENABLED 1
112
112
define AP_PERIPH_MAG_ENABLED 1
113
113
define AP_PERIPH_BARO_ENABLED 1
114
- define HAL_PERIPH_ENABLE_RC_OUT
114
+ define AP_PERIPH_RC_OUT_ENABLED 1
115
115
define AP_PERIPH_NOTIFY_ENABLED 1
116
116
117
117
# PB5 GPS_PPS INPUT FLOATING GPIO(6)
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ env ROMFS_UNCOMPRESSED True
89
89
define AP_PERIPH_GPS_ENABLED 1
90
90
define AP_PERIPH_MAG_ENABLED 1
91
91
define AP_PERIPH_BARO_ENABLED 1
92
- define HAL_PERIPH_ENABLE_RC_OUT
92
+ define AP_PERIPH_RC_OUT_ENABLED 1
93
93
define AP_PERIPH_NOTIFY_ENABLED 1
94
94
95
95
# disable dual GPS and GPS blending to save flash space
Original file line number Diff line number Diff line change @@ -26,5 +26,5 @@ PB14 TIM1_CH2N TIM1 PWM(3) GPIO(52)
26
26
PB15 TIM1_CH3N TIM1 PWM(4) GPIO(53)
27
27
28
28
# enable PWM
29
- define HAL_PERIPH_ENABLE_RC_OUT
29
+ define AP_PERIPH_RC_OUT_ENABLED 1
30
30
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ undef PB0
15
15
PB0 TIM3_CH3 TIM3 PWM(1) GPIO(2)
16
16
PB1 TIM3_CH4 TIM3 PWM(2) GPIO(3)
17
17
18
- define HAL_PERIPH_ENABLE_RC_OUT
18
+ define AP_PERIPH_RC_OUT_ENABLED 1
19
19
20
20
21
21
define AP_PERIPH_BATTERY_ENABLED 1
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ define HAL_BATT2_VOLT_SCALE 11.0
211
211
212
212
213
213
# -------------------- Buzzer+NeoPixels --------------d------
214
- define HAL_PERIPH_ENABLE_RC_OUT
214
+ define AP_PERIPH_RC_OUT_ENABLED 1
215
215
define AP_PERIPH_NOTIFY_ENABLED 1
216
216
217
217
define DEFAULT_NTF_LED_TYPES 455
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ PA7 TIM3_CH2 TIM3 PWM(10) GPIO(59)
81
81
PB0 TIM3_CH3 TIM3 PWM(11) GPIO(60)
82
82
PB1 TIM3_CH4 TIM3 PWM(12) GPIO(61)
83
83
84
- define HAL_PERIPH_ENABLE_RC_OUT
84
+ define AP_PERIPH_RC_OUT_ENABLED 1
85
85
#define AP_PERIPH_NOTIFY_ENABLED 1
86
86
87
87
# enable ESC control
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ define AP_PERIPH_GPS_ENABLED 1
118
118
define AP_PERIPH_MAG_ENABLED 1
119
119
define AP_PERIPH_BARO_ENABLED 1
120
120
define AP_PERIPH_NOTIFY_ENABLED 1
121
- define HAL_PERIPH_ENABLE_RC_OUT
121
+ define AP_PERIPH_RC_OUT_ENABLED 1
122
122
123
123
# single baro
124
124
define BARO_MAX_INSTANCES 1
Original file line number Diff line number Diff line change 181
181
#ifdef HAL_PERIPH_ENABLE_BARO
182
182
#error "Change 'define HAL_PERIPH_ENABLE_BARO' to 'define AP_PERIPH_BARO_ENABLED 1'"
183
183
#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
184
187
#ifdef HAL_PERIPH_ENABLE_RANGEFINDER
185
188
#error "Change 'define HAL_PERIPH_ENABLE_RANGEFINDER' to 'define AP_PERIPH_RANGEFINDER_ENABLED 1'"
186
189
#endif
248
251
#ifndef AP_PERIPH_IMU_ENABLED
249
252
#define AP_PERIPH_IMU_ENABLED 0
250
253
#endif
254
+ #ifndef AP_PERIPH_RC_OUT_ENABLED
255
+ #define AP_PERIPH_RC_OUT_ENABLED 0
256
+ #endif
251
257
#ifndef AP_PERIPH_EFI_ENABLED
252
258
#define AP_PERIPH_EFI_ENABLED 0
253
259
#endif
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ define APD_ESC_SERIAL_0 1
62
62
define APD_ESC_SERIAL_1 2
63
63
64
64
# pwm
65
- define HAL_PERIPH_ENABLE_RC_OUT
65
+ define AP_PERIPH_RC_OUT_ENABLED 1
66
66
PE9 TIM1_CH1 TIM1 PWM(1) GPIO(51) # esc front
67
67
PE11 TIM1_CH2 TIM1 PWM(2) GPIO(52) # esc rear
68
68
PB11 TIM2_CH4 TIM2 PWM(4) GPIO(54) # aux 3
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ define HAL_COMPASS_MAX_SENSORS 1
64
64
65
65
# notify led
66
66
define AP_PERIPH_NOTIFY_ENABLED 1
67
- define HAL_PERIPH_ENABLE_RC_OUT
67
+ define AP_PERIPH_RC_OUT_ENABLED 1
68
68
69
69
define DEFAULT_NTF_LED_TYPES 131072 # discrete rgb led (1 << 17)
70
70
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ PB10 USART3_TX USART3 SPEED_HIGH DMA
58
58
PB11 USART3_RX USART3 SPEED_HIGH DMA
59
59
60
60
# throttle pwm
61
- define HAL_PERIPH_ENABLE_RC_OUT
61
+ define AP_PERIPH_RC_OUT_ENABLED 1
62
62
PA15 TIM2_CH1 TIM2 PWM(1)
63
63
64
64
# i2c
You can’t perform that action at this time.
0 commit comments