Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove DISABLE_SERIAL_ESC_COMM boilerplate #26665

Merged
merged 2 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions libraries/AP_HAL/AP_HAL_Boards.h
Original file line number Diff line number Diff line change
Expand Up @@ -302,12 +302,8 @@
#endif

#ifndef HAL_SERIAL_ESC_COMM_ENABLED
#ifdef DISABLE_SERIAL_ESC_COMM
#define HAL_SERIAL_ESC_COMM_ENABLED 0
#else
#define HAL_SERIAL_ESC_COMM_ENABLED 1
#endif
#endif

#ifndef AP_BOOTLOADER_FLASHING_ENABLED
#define AP_BOOTLOADER_FLASHING_ENABLED 0
Expand Down
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/ARK_CANNODE/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ define HAL_PERIPH_ENABLE_NOTIFY
define CAN_APP_NODE_NAME "org.ardupilot.ARK_CANNODE"

# enable ESC control
define HAL_SERIAL_ESC_COMM_ENABLED 1
define HAL_SUPPORT_RCOUT_SERIAL 1
define HAL_WITH_ESC_TELEM 1
define AP_SERIALLED_ENABLED 1
Expand Down
3 changes: 1 addition & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/ARK_GPS/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,4 @@ define HAL_PERIPH_ENABLE_NOTIFY
define HAL_PERIPH_GPS_PORT_DEFAULT 1




define HAL_SERIAL_ESC_COMM_ENABLED 1
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/ARK_RTK_GPS/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,4 @@ define HAL_PERIPH_ENABLE_RC_OUT
# GPS on 2nd port
define HAL_PERIPH_GPS_PORT_DEFAULT 1

define HAL_SERIAL_ESC_COMM_ENABLED 1
2 changes: 2 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/AeroFox-PMU/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,5 @@ define HAL_GPIO_B_LED_PIN 1
define HAL_GPIO_C_LED_PIN 2
define HAL_GPIO_LED_ON 0
define HAL_GPIO_LED_OFF 1

define HAL_SERIAL_ESC_COMM_ENABLED 1
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/BirdCANdy/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ define HAL_NO_GPIO_IRQ
define HAL_NO_RCIN_THREAD

define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE

define DMA_RESERVE_SIZE 0

Expand Down
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/CUAV_GPS/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ define HAL_NO_GPIO_IRQ
define HAL_NO_RCIN_THREAD

define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE

define DMA_RESERVE_SIZE 0

Expand Down
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/CarbonixF405/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ define HAL_PERIPH_ENABLE_BARO
define HAL_PERIPH_ENABLE_RC_OUT

# enable ESC control
define HAL_SERIAL_ESC_COMM_ENABLED 1
define HAL_SUPPORT_RCOUT_SERIAL 1
define HAL_WITH_ESC_TELEM 1

Expand Down
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/CarbonixL496/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ define HAL_PERIPH_ENABLE_BARO
define HAL_PERIPH_ENABLE_RC_OUT

# enable ESC control
define HAL_SERIAL_ESC_COMM_ENABLED 1
define HAL_SUPPORT_RCOUT_SERIAL 1
define HAL_WITH_ESC_TELEM 1

Expand Down
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/CubeBlack-periph/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ define HAL_NO_MONITOR_THREAD
define HAL_DISABLE_LOOP_DELAY

define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE

define HAL_NO_RCIN_THREAD

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ define HAL_NO_MONITOR_THREAD
define HAL_DISABLE_LOOP_DELAY

define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE

define HAL_GCS_ENABLED 1

Expand Down
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-periph/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ define HAL_NO_MONITOR_THREAD
define HAL_DISABLE_LOOP_DELAY

define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE

define HAL_NO_RCIN_THREAD

Expand Down
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/CubePilot-CANMod/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ define HAL_PERIPH_ENABLE_NETWORKING
# ---------------------------------------------------------------------------------------------
# AP_Periph - boiler-plate configurations that all HW AP-Periph need
# ---------------------------------------------------------------------------------------------
define DISABLE_SERIAL_ESC_COMM TRUE
define HAL_NO_RCIN_THREAD
#define HAL_NO_GPIO_IRQ
define HAL_DISABLE_LOOP_DELAY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ define HAL_NO_MONITOR_THREAD
define HAL_DISABLE_LOOP_DELAY

define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE

define HAL_NO_RCIN_THREAD

Expand Down
2 changes: 2 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/G4-ESC/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,5 @@ env ROMFS_UNCOMPRESSED True

# don't share any DMA channels (there are enough for everyone)
DMA_NOSHARE *

define HAL_SERIAL_ESC_COMM_ENABLED 1
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/H757I_EVAL/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ define HAL_DISABLE_ADC_DRIVER TRUE
# avoid timer and RCIN threads to save memory
define HAL_NO_RCIN_THREAD
define HAL_NO_GPIO_IRQ
define DISABLE_SERIAL_ESC_COMM TRUE

PB13 VBUS INPUT OPENDRAIN

Expand Down
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/H757I_EVAL_intf/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ define HAL_DISABLE_ADC_DRIVER TRUE
# avoid timer and RCIN threads to save memory
define HAL_NO_RCIN_THREAD
define HAL_NO_GPIO_IRQ
define DISABLE_SERIAL_ESC_COMM TRUE

PB13 VBUS INPUT OPENDRAIN

Expand Down
2 changes: 2 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Here4AP/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,5 @@ define HAL_PERIPH_GPS_PORT_DEFAULT 3
# for ProfiLed we need RC out and notify
define HAL_PERIPH_ENABLE_RC_OUT
define HAL_PERIPH_ENABLE_NOTIFY

define HAL_SERIAL_ESC_COMM_ENABLED 1
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/HitecMosaic/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ define SERIAL_BUFFERS_SIZE 512
define HAL_NO_RCIN_THREAD

define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE

define DMA_RESERVE_SIZE 0

Expand Down
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_Compass/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ define HAL_NO_GPIO_IRQ
define HAL_NO_RCIN_THREAD

define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE

define DMA_RESERVE_SIZE 0

Expand Down
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_GPS/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ define HAL_NO_GPIO_IRQ
define HAL_NO_RCIN_THREAD

define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE

define DMA_RESERVE_SIZE 0

Expand Down
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/HolybroGPS/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ define HAL_NO_GPIO_IRQ
define HAL_NO_RCIN_THREAD

define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE

define DMA_RESERVE_SIZE 0

Expand Down
3 changes: 2 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/MatekH743-periph/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ define HAL_PERIPH_ADSB_BAUD_DEFAULT 0
define HAL_NO_MONITOR_THREAD
define HAL_DISABLE_LOOP_DELAY
define HAL_USE_RTC FALSE
#define DISABLE_SERIAL_ESC_COMM TRUE
define HAL_NO_RCIN_THREAD


Expand All @@ -63,3 +62,5 @@ define HAL_MSP_ENABLED 1

# bootloader embedding / bootloader flashing not available
define AP_BOOTLOADER_FLASHING_ENABLED 0

define HAL_SERIAL_ESC_COMM_ENABLED 1
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/MatekL431-DShot/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ define HAL_PERIPH_ENABLE_RC_OUT
define HAL_PERIPH_ENABLE_NOTIFY

# enable ESC control
define HAL_SERIAL_ESC_COMM_ENABLED 1
define HAL_SUPPORT_RCOUT_SERIAL 1
define HAL_WITH_ESC_TELEM 1
2 changes: 2 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/MatekL431-Periph/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,5 @@ PB1 BATT2_CURRENT_SENS ADC1 SCALE(1)
define HAL_PERIPH_ENABLE_RC_OUT
define HAL_PERIPH_ENABLE_NOTIFY


define HAL_SERIAL_ESC_COMM_ENABLED 1
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/MatekL431-RC/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ define HAL_PERIPH_ENABLE_RC_OUT
define HAL_PERIPH_ENABLE_NOTIFY

# enable ESC control
define HAL_SERIAL_ESC_COMM_ENABLED 1
define HAL_SUPPORT_RCOUT_SERIAL 1
define HAL_WITH_ESC_TELEM 1
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/MatekL431-bdshot/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ define HAL_PERIPH_ENABLE_RC_OUT
define HAL_PERIPH_ENABLE_NOTIFY

# enable ESC control
define HAL_SERIAL_ESC_COMM_ENABLED 1
define HAL_SUPPORT_RCOUT_SERIAL 1
define HAL_WITH_ESC_TELEM 1
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/Pixhawk6X-PPPGW/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ define HAL_NO_MONITOR_THREAD
define HAL_DISABLE_LOOP_DELAY

define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE

define HAL_NO_RCIN_THREAD

Expand Down
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/Pixracer-periph/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ define HAL_NO_MONITOR_THREAD
define HAL_DISABLE_LOOP_DELAY

define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE

define HAL_NO_RCIN_THREAD

Expand Down
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/Sierra-F405/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ define DMA_RESERVE_SIZE 0

define HAL_DISABLE_LOOP_DELAY
define HAL_NO_MONITOR_THREAD
define DISABLE_SERIAL_ESC_COMM TRUE

define HAL_DEVICE_THREAD_STACK 768

Expand Down
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/Sierra-F412/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ define HAL_NO_GPIO_IRQ
# avoid RCIN thread to save memory
define HAL_NO_RCIN_THREAD
define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE
define DMA_RESERVE_SIZE 0
define PERIPH_FW TRUE
define HAL_DISABLE_LOOP_DELAY
Expand Down
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/Sierra-F9P/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ define HAL_NO_GPIO_IRQ
# avoid RCIN thread to save memory
define HAL_NO_RCIN_THREAD
define HAL_USE_RTC TRUE
define DISABLE_SERIAL_ESC_COMM TRUE
define DMA_RESERVE_SIZE 0
define HAL_DISABLE_LOOP_DELAY
define PERIPH_FW TRUE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,5 @@ define HAL_PERIPH_LISTEN_FOR_SERIAL_UART_REBOOT_CMD_PORT 0

# USB select
PC6 USB_SEL OUTPUT PUSHPULL SPEED_LOW HIGH

define HAL_SERIAL_ESC_COMM_ENABLED 1
2 changes: 2 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueNavIC/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,5 @@ define HAL_PERIPH_NEOPIXEL_CHAN_WITHOUT_NOTIFY 0
define HAL_PERIPH_NEOPIXEL_COUNT_WITHOUT_NOTIFY 8
define DEFAULT_NTF_LED_TYPES 455
# PA1 LED OUTPUT LOW GPIO(1)

define HAL_SERIAL_ESC_COMM_ENABLED 1
2 changes: 2 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueNavPro-G4/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,5 @@ PA3 TIM2_CH4 TIM2 PWM(1)
DMA_NOSHARE USART2*

define CAN_APP_NODE_NAME "in.sierraaerospace.TrueNavPro-G4"

define HAL_SERIAL_ESC_COMM_ENABLED 1
2 changes: 2 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueNavPro/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,5 @@ define CAN_APP_NODE_NAME "in.sierraaerospace.TrueNavPro"

# Enable GPS LDO
PC13 VDD_3V3_SENSORS_EN OUTPUT HIGH

define HAL_SERIAL_ESC_COMM_ENABLED 1
2 changes: 2 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueNorth/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,5 @@ SERIAL_ORDER USART1
# USART1
PA9 USART1_TX USART1 SPEED_HIGH
PB7 USART1_RX USART1 SPEED_HIGH

define HAL_SERIAL_ESC_COMM_ENABLED 1
2 changes: 2 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueSpeed/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,5 @@ SERIAL_ORDER USART1
# USART1
PA9 USART1_TX USART1 SPEED_HIGH
PA10 USART1_RX USART1 SPEED_HIGH

define HAL_SERIAL_ESC_COMM_ENABLED 1
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/ZubaxGNSS/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ define HAL_NO_RCIN_THREAD
define __FPU_PRESENT 0

define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE

define DMA_RESERVE_SIZE 0

Expand Down
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/f103-periph/hwdef.inc
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ define HAL_NO_RCIN_THREAD
define __FPU_PRESENT 0

define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE

define DMA_RESERVE_SIZE 0

Expand Down
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/f303-MatekGPS/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ define PORT_INT_REQUIRED_STACK 64
define HAL_NO_RCIN_THREAD

define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE

define DMA_RESERVE_SIZE 0

Expand Down
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/f303-periph/hwdef.inc
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ define HAL_NO_RCIN_THREAD
define HAL_NO_RCOUT_THREAD

define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE

define DMA_RESERVE_SIZE 0

Expand Down
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/f405-MatekGPS/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ define PORT_INT_REQUIRED_STACK 64
define HAL_NO_RCIN_THREAD

define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE

define DMA_RESERVE_SIZE 0

Expand Down
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/iomcu/hwdef.inc
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ define __FPU_PRESENT 0
define HAL_USE_RTC FALSE
define HAL_NO_FLASH_SUPPORT TRUE
define HAL_NO_UARTDRIVER TRUE
define DISABLE_SERIAL_ESC_COMM TRUE
define HAL_LOGGING_ENABLED 0

define DMA_RESERVE_SIZE 0
Expand Down
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/kha_eth/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ define HAL_DISABLE_ADC_DRIVER TRUE
# ---------------------------------------------------------------------------------------------
# AP_Periph - boiler-plate configurations that all HW AP-Periph need
# ---------------------------------------------------------------------------------------------
define DISABLE_SERIAL_ESC_COMM TRUE
define HAL_NO_RCIN_THREAD
#define HAL_NO_GPIO_IRQ
define HAL_DISABLE_LOOP_DELAY
Expand Down
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/mRoCANPWM-M10126/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ define HAL_PERIPH_ENABLE_RC_OUT
#define HAL_PERIPH_ENABLE_NOTIFY

# enable ESC control
define HAL_SERIAL_ESC_COMM_ENABLED 1
define HAL_SUPPORT_RCOUT_SERIAL 1
define HAL_WITH_ESC_TELEM 1

1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/rGNSS/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ define HAL_NO_GPIO_IRQ
define HAL_NO_RCIN_THREAD

define HAL_USE_RTC FALSE
define DISABLE_SERIAL_ESC_COMM TRUE

define DMA_RESERVE_SIZE 0

Expand Down
4 changes: 4 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_iofirmware.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,7 @@
#ifndef HAL_TIM_UP_SHARED
#define HAL_TIM_UP_SHARED (HAL_TIM2_UP_SHARED || HAL_TIM3_UP_SHARED || HAL_TIM4_UP_SHARED)
#endif

#ifndef HAL_SERIAL_ESC_COMM_ENABLED
#define HAL_SERIAL_ESC_COMM_ENABLED 0
#endif
4 changes: 4 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_periph.h
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,10 @@
#define AP_SCRIPTING_ENABLED 0
#endif

#ifndef HAL_SERIAL_ESC_COMM_ENABLED
#define HAL_SERIAL_ESC_COMM_ENABLED 0
#endif

#ifndef HAL_WITH_ESC_TELEM
#define HAL_WITH_ESC_TELEM 0
#endif
Expand Down
2 changes: 2 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/sw-spar-f407/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,5 @@ PA5 BATT2_VOLTAGE_SENS ADC1 SCALE(1) ANALOG(3)

# don't build on firmware.ardupilot.org
AUTOBUILD_TARGETS None

define HAL_SERIAL_ESC_COMM_ENABLED 1
Loading