From 75b3cec196857eae64fb0304d155a2f2e6379a26 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 20 Mar 2023 09:00:13 +1100 Subject: [PATCH] AP_HAL_ChibiOS: mark heavy periphs as using RC_Channel these things compile vast amounts of the code-base so we need to turn RC_Channel on even if we don't instantiate the RC_Channels object --- .../AP_HAL_ChibiOS/hwdef/CubeOrange-periph-heavy/hwdef.dat | 2 +- libraries/AP_HAL_ChibiOS/hwdef/HerePro/hwdef.dat | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-periph-heavy/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-periph-heavy/hwdef.dat index 2afb20b32c..65d9da07b2 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-periph-heavy/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-periph-heavy/hwdef.dat @@ -68,4 +68,4 @@ define HAL_CAN_DRIVER_DEFAULT 1 # undefine to disable. Use -1 to allow on all ports, otherwise serial number index defined in SERIAL_ORDER starting at 0 define HAL_PERIPH_LISTEN_FOR_SERIAL_UART_REBOOT_CMD_PORT 0 - +define AP_RC_CHANNEL_ENABLED 1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/HerePro/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/HerePro/hwdef.dat index c776e01041..f81a600381 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/HerePro/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/HerePro/hwdef.dat @@ -213,3 +213,5 @@ define AP_PERIPH_HAVE_LED TRUE define SCRIPTING_HEAP_SIZE (64*1024) define GPS_MOVING_BASELINE 1 + +define AP_RC_CHANNEL_ENABLED 1