From 994c268644e4df148cb55707b75463d4d62058fa Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 1 Apr 2024 17:29:31 +1100 Subject: [PATCH] AP_HAL_ChibiOS: replace HAL_NO_RCIN_THREAD w/HAL_RCIN_THREAD_ENABLED --- libraries/AP_HAL_ChibiOS/Scheduler.cpp | 8 ++++++-- libraries/AP_HAL_ChibiOS/hwdef/ARK_GPS/hwdef-bl.dat | 1 - libraries/AP_HAL_ChibiOS/hwdef/ARK_RTK_GPS/hwdef-bl.dat | 1 - libraries/AP_HAL_ChibiOS/hwdef/AeroFox-GNSS_F9P/hwdef.dat | 1 - libraries/AP_HAL_ChibiOS/hwdef/BirdCANdy/hwdef-bl.dat | 1 - libraries/AP_HAL_ChibiOS/hwdef/BirdCANdy/hwdef.dat | 3 --- libraries/AP_HAL_ChibiOS/hwdef/C-RTK2-HP/hwdef-bl.dat | 1 - libraries/AP_HAL_ChibiOS/hwdef/C-RTK2-HP/hwdef.dat | 1 - libraries/AP_HAL_ChibiOS/hwdef/CUAV_GPS/hwdef-bl.dat | 4 +--- libraries/AP_HAL_ChibiOS/hwdef/CUAV_GPS/hwdef.dat | 3 --- libraries/AP_HAL_ChibiOS/hwdef/CubeBlack-periph/hwdef.dat | 2 -- .../hwdef/CubeOrange-periph-heavy/hwdef.dat | 2 -- .../AP_HAL_ChibiOS/hwdef/CubeOrange-periph/hwdef.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/CubePilot-CANMod/hwdef.dat | 1 - .../AP_HAL_ChibiOS/hwdef/CubeRedPrimary-PPPGW/hwdef.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/FreeflyRTK/hwdef-bl.dat | 1 - libraries/AP_HAL_ChibiOS/hwdef/FreeflyRTK/hwdef.dat | 3 --- libraries/AP_HAL_ChibiOS/hwdef/H757I_EVAL/hwdef.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/H757I_EVAL_intf/hwdef.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/Hitec-Airspeed/hwdef.dat | 1 - libraries/AP_HAL_ChibiOS/hwdef/HitecMosaic/hwdef-bl.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/HitecMosaic/hwdef.dat | 3 --- .../AP_HAL_ChibiOS/hwdef/HolybroG4_Compass/hwdef-bl.dat | 3 +-- .../AP_HAL_ChibiOS/hwdef/HolybroG4_Compass/hwdef.dat | 3 --- libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_GPS/hwdef-bl.dat | 3 +-- libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_GPS/hwdef.dat | 3 --- libraries/AP_HAL_ChibiOS/hwdef/HolybroGPS/hwdef-bl.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/HolybroGPS/hwdef.dat | 3 --- libraries/AP_HAL_ChibiOS/hwdef/MatekH743-periph/hwdef.dat | 2 -- .../AP_HAL_ChibiOS/hwdef/MatekL431-BattMon/hwdef.dat | 1 - libraries/AP_HAL_ChibiOS/hwdef/MatekL431-GPS/hwdef.dat | 1 - libraries/AP_HAL_ChibiOS/hwdef/Pixhawk6X-PPPGW/hwdef.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/Pixracer-periph/hwdef.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/Sierra-F405/hwdef.dat | 3 --- libraries/AP_HAL_ChibiOS/hwdef/Sierra-F412/hwdef.dat | 1 - libraries/AP_HAL_ChibiOS/hwdef/Sierra-F9P/hwdef.dat | 1 - .../hwdef/Sierra-PrecisionPoint/hwdef-bl.dat | 1 - libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueNavIC/hwdef.dat | 1 - .../hwdef/Sierra-TrueNavPro-G4/hwdef-bl.dat | 1 - .../AP_HAL_ChibiOS/hwdef/Sierra-TrueNavPro-G4/hwdef.dat | 3 --- .../AP_HAL_ChibiOS/hwdef/Sierra-TrueNavPro/hwdef.dat | 1 - libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueNorth/hwdef.dat | 1 - libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueSpeed/hwdef.dat | 1 - libraries/AP_HAL_ChibiOS/hwdef/ZubaxGNSS/hwdef-bl.dat | 1 - libraries/AP_HAL_ChibiOS/hwdef/ZubaxGNSS/hwdef.dat | 3 --- libraries/AP_HAL_ChibiOS/hwdef/f103-periph/hwdef.inc | 1 - libraries/AP_HAL_ChibiOS/hwdef/f303-MatekGPS/hwdef.dat | 3 --- libraries/AP_HAL_ChibiOS/hwdef/f303-periph/hwdef.inc | 2 -- libraries/AP_HAL_ChibiOS/hwdef/f405-MatekGPS/hwdef.dat | 3 --- libraries/AP_HAL_ChibiOS/hwdef/iomcu/hwdef.inc | 3 +-- libraries/AP_HAL_ChibiOS/hwdef/kha_eth/hwdef.dat | 1 - .../AP_HAL_ChibiOS/hwdef/mRoCANPWM-M10126/hwdef-bl.dat | 1 - libraries/AP_HAL_ChibiOS/hwdef/mRoCANPWM-M10126/hwdef.dat | 3 --- libraries/AP_HAL_ChibiOS/hwdef/rGNSS/hwdef-bl.dat | 1 - libraries/AP_HAL_ChibiOS/hwdef/rGNSS/hwdef.dat | 3 --- libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py | 4 +++- libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_periph.h | 4 ++++ 57 files changed, 17 insertions(+), 102 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/Scheduler.cpp b/libraries/AP_HAL_ChibiOS/Scheduler.cpp index b22293383b..ad980d5959 100644 --- a/libraries/AP_HAL_ChibiOS/Scheduler.cpp +++ b/libraries/AP_HAL_ChibiOS/Scheduler.cpp @@ -59,6 +59,10 @@ extern AP_IOMCU iomcu; using namespace ChibiOS; +#ifndef HAL_RCIN_THREAD_ENABLED +#define HAL_RCIN_THREAD_ENABLED 1 +#endif + extern const AP_HAL::HAL& hal; #ifndef HAL_NO_TIMER_THREAD THD_WORKING_AREA(_timer_thread_wa, TIMER_THD_WA_SIZE); @@ -66,7 +70,7 @@ THD_WORKING_AREA(_timer_thread_wa, TIMER_THD_WA_SIZE); #ifndef HAL_NO_RCOUT_THREAD THD_WORKING_AREA(_rcout_thread_wa, RCOUT_THD_WA_SIZE); #endif -#ifndef HAL_NO_RCIN_THREAD +#if HAL_RCIN_THREAD_ENABLED THD_WORKING_AREA(_rcin_thread_wa, RCIN_THD_WA_SIZE); #endif #ifndef HAL_USE_EMPTY_IO @@ -122,7 +126,7 @@ void Scheduler::init() this); /* Thread parameter. */ #endif -#ifndef HAL_NO_RCIN_THREAD +#if HAL_RCIN_THREAD_ENABLED // setup the RCIN thread - this will call tasks at 1kHz _rcin_thread_ctx = chThdCreateStatic(_rcin_thread_wa, sizeof(_rcin_thread_wa), diff --git a/libraries/AP_HAL_ChibiOS/hwdef/ARK_GPS/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/ARK_GPS/hwdef-bl.dat index 156dcb3da4..36a42d4dea 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/ARK_GPS/hwdef-bl.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/ARK_GPS/hwdef-bl.dat @@ -51,7 +51,6 @@ define HAL_USE_EMPTY_IO TRUE # avoid timer and RCIN threads to save memory define HAL_NO_TIMER_THREAD -define HAL_NO_RCIN_THREAD define DMA_RESERVE_SIZE 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/ARK_RTK_GPS/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/ARK_RTK_GPS/hwdef-bl.dat index 60b60d4c43..11af5f031f 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/ARK_RTK_GPS/hwdef-bl.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/ARK_RTK_GPS/hwdef-bl.dat @@ -51,7 +51,6 @@ define HAL_USE_EMPTY_IO TRUE # avoid timer and RCIN threads to save memory define HAL_NO_TIMER_THREAD -define HAL_NO_RCIN_THREAD define DMA_RESERVE_SIZE 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/AeroFox-GNSS_F9P/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/AeroFox-GNSS_F9P/hwdef.dat index 88ca8a1552..94abae613c 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/AeroFox-GNSS_F9P/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/AeroFox-GNSS_F9P/hwdef.dat @@ -94,7 +94,6 @@ define HAL_USE_ADC FALSE # disable unnecessary threads define HAL_NO_MONITOR_THREAD -define HAL_NO_RCIN_THREAD define HAL_NO_TIMER_THREAD # enable LED diff --git a/libraries/AP_HAL_ChibiOS/hwdef/BirdCANdy/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/BirdCANdy/hwdef-bl.dat index afe6830664..675a524a30 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/BirdCANdy/hwdef-bl.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/BirdCANdy/hwdef-bl.dat @@ -55,7 +55,6 @@ define HAL_USE_EMPTY_IO TRUE # avoid timer and RCIN threads to save memory define HAL_NO_TIMER_THREAD -define HAL_NO_RCIN_THREAD define DMA_RESERVE_SIZE 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/BirdCANdy/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/BirdCANdy/hwdef.dat index 85ac354b42..f71f0f46ff 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/BirdCANdy/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/BirdCANdy/hwdef.dat @@ -80,9 +80,6 @@ define HAL_DISABLE_ADC_DRIVER TRUE define HAL_NO_GPIO_IRQ -# avoid RCIN thread to save memory -define HAL_NO_RCIN_THREAD - define HAL_USE_RTC FALSE define DMA_RESERVE_SIZE 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/C-RTK2-HP/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/C-RTK2-HP/hwdef-bl.dat index c1de57c0e1..6daaa7da04 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/C-RTK2-HP/hwdef-bl.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/C-RTK2-HP/hwdef-bl.dat @@ -57,7 +57,6 @@ define HAL_USE_EMPTY_IO TRUE # avoid timer and RCIN threads to save memory define HAL_NO_TIMER_THREAD -define HAL_NO_RCIN_THREAD define DMA_RESERVE_SIZE 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/C-RTK2-HP/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/C-RTK2-HP/hwdef.dat index 5a540fa27d..cbc1d94bfd 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/C-RTK2-HP/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/C-RTK2-HP/hwdef.dat @@ -72,7 +72,6 @@ define HAL_DISABLE_ADC_DRIVER TRUE define HAL_NO_GPIO_IRQ # avoid RCIN thread to save memory -define HAL_NO_RCIN_THREAD define HAL_USE_RTC FALSE define DMA_RESERVE_SIZE 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CUAV_GPS/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/CUAV_GPS/hwdef-bl.dat index fe01e221bd..d95b7b490e 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CUAV_GPS/hwdef-bl.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CUAV_GPS/hwdef-bl.dat @@ -55,10 +55,8 @@ define STM32_SERIAL_USE_USART3 FALSE define HAL_NO_GPIO_IRQ define HAL_USE_EMPTY_IO TRUE -# avoid timer and RCIN threads to save memory +# avoid timer thread to save memory define HAL_NO_TIMER_THREAD -define HAL_NO_RCIN_THREAD - define DMA_RESERVE_SIZE 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CUAV_GPS/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CUAV_GPS/hwdef.dat index edd84d437a..e48ee481c7 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CUAV_GPS/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CUAV_GPS/hwdef.dat @@ -110,9 +110,6 @@ define HAL_DISABLE_ADC_DRIVER TRUE define HAL_NO_GPIO_IRQ -# avoid RCIN thread to save memory -define HAL_NO_RCIN_THREAD - define HAL_USE_RTC FALSE define DMA_RESERVE_SIZE 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubeBlack-periph/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CubeBlack-periph/hwdef.dat index e402abdc39..fa28537a98 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CubeBlack-periph/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubeBlack-periph/hwdef.dat @@ -41,8 +41,6 @@ define HAL_DISABLE_LOOP_DELAY define HAL_USE_RTC FALSE -define HAL_NO_RCIN_THREAD - define HAL_BARO_ALLOW_INIT_NO_BARO define HAL_PERIPH_ENABLE_BATTERY 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 c3a699ce25..b9e1d943f8 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-periph-heavy/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-periph-heavy/hwdef.dat @@ -40,8 +40,6 @@ define HAL_USE_RTC FALSE define HAL_GCS_ENABLED 1 -define HAL_NO_RCIN_THREAD - define HAL_BARO_ALLOW_INIT_NO_BARO diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-periph/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-periph/hwdef.dat index 4b96a92fa3..25270fb7e2 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-periph/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-periph/hwdef.dat @@ -37,8 +37,6 @@ define HAL_DISABLE_LOOP_DELAY define HAL_USE_RTC FALSE -define HAL_NO_RCIN_THREAD - define HAL_BARO_ALLOW_INIT_NO_BARO diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubePilot-CANMod/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CubePilot-CANMod/hwdef.dat index 4a5f1f780e..2d8cc8fe4b 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CubePilot-CANMod/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubePilot-CANMod/hwdef.dat @@ -75,7 +75,6 @@ define HAL_PERIPH_ENABLE_NETWORKING # --------------------------------------------------------------------------------------------- # AP_Periph - boiler-plate configurations that all HW AP-Periph need # --------------------------------------------------------------------------------------------- -define HAL_NO_RCIN_THREAD #define HAL_NO_GPIO_IRQ define HAL_DISABLE_LOOP_DELAY diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubeRedPrimary-PPPGW/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CubeRedPrimary-PPPGW/hwdef.dat index efd0f628e9..bcfd03a7c7 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CubeRedPrimary-PPPGW/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubeRedPrimary-PPPGW/hwdef.dat @@ -28,8 +28,6 @@ define HAL_DISABLE_LOOP_DELAY define HAL_USE_RTC FALSE -define HAL_NO_RCIN_THREAD - # use amber LED define HAL_GPIO_PIN_LED HAL_GPIO_PIN_FMU_LED_AMBER diff --git a/libraries/AP_HAL_ChibiOS/hwdef/FreeflyRTK/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/FreeflyRTK/hwdef-bl.dat index d8f7c7c1ba..e63a4a97b8 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/FreeflyRTK/hwdef-bl.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/FreeflyRTK/hwdef-bl.dat @@ -53,7 +53,6 @@ define HAL_USE_EMPTY_IO TRUE # avoid timer and RCIN threads to save memory define HAL_NO_TIMER_THREAD -define HAL_NO_RCIN_THREAD define DMA_RESERVE_SIZE 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/FreeflyRTK/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/FreeflyRTK/hwdef.dat index 636e8351a5..be4424f6c5 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/FreeflyRTK/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/FreeflyRTK/hwdef.dat @@ -104,9 +104,6 @@ define HAL_DISABLE_ADC_DRIVER TRUE define HAL_NO_GPIO_IRQ -# avoid RCIN thread to save memory -define HAL_NO_RCIN_THREAD - define DMA_RESERVE_SIZE 0 define HAL_DISABLE_LOOP_DELAY diff --git a/libraries/AP_HAL_ChibiOS/hwdef/H757I_EVAL/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/H757I_EVAL/hwdef.dat index fb1542badd..469cf96f1e 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/H757I_EVAL/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/H757I_EVAL/hwdef.dat @@ -61,8 +61,6 @@ define HAL_USE_ADC FALSE define STM32_ADC_USE_ADC1 FALSE define HAL_DISABLE_ADC_DRIVER TRUE -# avoid timer and RCIN threads to save memory -define HAL_NO_RCIN_THREAD define HAL_NO_GPIO_IRQ PB13 VBUS INPUT OPENDRAIN diff --git a/libraries/AP_HAL_ChibiOS/hwdef/H757I_EVAL_intf/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/H757I_EVAL_intf/hwdef.dat index 88990faa62..707f11dde7 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/H757I_EVAL_intf/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/H757I_EVAL_intf/hwdef.dat @@ -61,8 +61,6 @@ define HAL_USE_ADC FALSE define STM32_ADC_USE_ADC1 FALSE define HAL_DISABLE_ADC_DRIVER TRUE -# avoid timer and RCIN threads to save memory -define HAL_NO_RCIN_THREAD define HAL_NO_GPIO_IRQ PB13 VBUS INPUT OPENDRAIN diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Hitec-Airspeed/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Hitec-Airspeed/hwdef.dat index caac8eab57..81d2ef55bb 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/Hitec-Airspeed/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/Hitec-Airspeed/hwdef.dat @@ -103,7 +103,6 @@ define IO_THD_WA_SIZE 512 define AP_PARAM_MAX_EMBEDDED_PARAM 128 -define HAL_NO_RCIN_THREAD define HAL_NO_RCOUT_THREAD diff --git a/libraries/AP_HAL_ChibiOS/hwdef/HitecMosaic/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/HitecMosaic/hwdef-bl.dat index 6ba10c98fd..1acad280a5 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/HitecMosaic/hwdef-bl.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/HitecMosaic/hwdef-bl.dat @@ -56,8 +56,6 @@ define PORT_INT_REQUIRED_STACK 64 # avoid timer and RCIN threads to save memory define HAL_NO_TIMER_THREAD -define HAL_NO_RCIN_THREAD - define DMA_RESERVE_SIZE 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/HitecMosaic/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/HitecMosaic/hwdef.dat index aa099ecc0d..aa62ad63cd 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/HitecMosaic/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/HitecMosaic/hwdef.dat @@ -74,9 +74,6 @@ define HAL_DISABLE_ADC_DRIVER TRUE define HAL_NO_GPIO_IRQ define SERIAL_BUFFERS_SIZE 512 -# avoid timer and RCIN threads to save memory -define HAL_NO_RCIN_THREAD - define HAL_USE_RTC FALSE define DMA_RESERVE_SIZE 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_Compass/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_Compass/hwdef-bl.dat index d47e84b28a..400865060e 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_Compass/hwdef-bl.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_Compass/hwdef-bl.dat @@ -54,9 +54,8 @@ define STM32_SERIAL_USE_USART3 FALSE define HAL_NO_GPIO_IRQ define HAL_USE_EMPTY_IO TRUE -# avoid timer and RCIN threads to save memory +# avoid timer threads to save memory define HAL_NO_TIMER_THREAD -define HAL_NO_RCIN_THREAD define DMA_RESERVE_SIZE 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_Compass/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_Compass/hwdef.dat index 21092bee22..7b17f650bd 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_Compass/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_Compass/hwdef.dat @@ -72,9 +72,6 @@ define HAL_DISABLE_ADC_DRIVER TRUE define HAL_NO_GPIO_IRQ -# avoid RCIN thread to save memory -define HAL_NO_RCIN_THREAD - define HAL_USE_RTC FALSE define DMA_RESERVE_SIZE 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_GPS/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_GPS/hwdef-bl.dat index c2355f91e3..ccfdb1d6da 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_GPS/hwdef-bl.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_GPS/hwdef-bl.dat @@ -54,9 +54,8 @@ define STM32_SERIAL_USE_USART3 FALSE define HAL_NO_GPIO_IRQ define HAL_USE_EMPTY_IO TRUE -# avoid timer and RCIN threads to save memory +# avoid timer threads to save memory define HAL_NO_TIMER_THREAD -define HAL_NO_RCIN_THREAD define DMA_RESERVE_SIZE 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_GPS/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_GPS/hwdef.dat index b05ee8478a..3345cde311 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_GPS/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_GPS/hwdef.dat @@ -95,9 +95,6 @@ define HAL_DISABLE_ADC_DRIVER TRUE define HAL_NO_GPIO_IRQ -# avoid RCIN thread to save memory -define HAL_NO_RCIN_THREAD - define HAL_USE_RTC FALSE define DMA_RESERVE_SIZE 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/HolybroGPS/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/HolybroGPS/hwdef-bl.dat index 68beff06e9..75bff37435 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/HolybroGPS/hwdef-bl.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/HolybroGPS/hwdef-bl.dat @@ -55,8 +55,6 @@ define HAL_USE_EMPTY_IO TRUE # avoid timer and RCIN threads to save memory define HAL_NO_TIMER_THREAD -define HAL_NO_RCIN_THREAD - define DMA_RESERVE_SIZE 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/HolybroGPS/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/HolybroGPS/hwdef.dat index bbb5b2bed5..34b10dd2ed 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/HolybroGPS/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/HolybroGPS/hwdef.dat @@ -112,9 +112,6 @@ define HAL_DISABLE_ADC_DRIVER TRUE define HAL_NO_GPIO_IRQ -# avoid RCIN thread to save memory -define HAL_NO_RCIN_THREAD - define HAL_USE_RTC FALSE define DMA_RESERVE_SIZE 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekH743-periph/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekH743-periph/hwdef.dat index 182e0436c8..485b14e515 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MatekH743-periph/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekH743-periph/hwdef.dat @@ -43,8 +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 HAL_NO_RCIN_THREAD - define AP_SCRIPTING_ENABLED 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-BattMon/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-BattMon/hwdef.dat index ea4e70b099..4b93061844 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-BattMon/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-BattMon/hwdef.dat @@ -14,7 +14,6 @@ define HAL_USE_ADC FALSE # disable unnecessary threads define HAL_NO_MONITOR_THREAD -define HAL_NO_RCIN_THREAD define HAL_NO_RCOUT_THREAD define HAL_NO_TIMER_THREAD diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-GPS/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-GPS/hwdef.dat index 585fc4901d..a4e47b233d 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-GPS/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-GPS/hwdef.dat @@ -38,7 +38,6 @@ define HAL_USE_ADC FALSE # disable unnecessary threads define HAL_NO_MONITOR_THREAD -define HAL_NO_RCIN_THREAD define HAL_NO_RCOUT_THREAD define HAL_NO_TIMER_THREAD diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk6X-PPPGW/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk6X-PPPGW/hwdef.dat index d9077e22aa..cf35705035 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk6X-PPPGW/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk6X-PPPGW/hwdef.dat @@ -29,8 +29,6 @@ define HAL_DISABLE_LOOP_DELAY define HAL_USE_RTC FALSE -define HAL_NO_RCIN_THREAD - # use blue LED define HAL_GPIO_PIN_LED HAL_GPIO_PIN_LED_BLUE diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Pixracer-periph/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Pixracer-periph/hwdef.dat index 7b0575cffd..b1b573d820 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/Pixracer-periph/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/Pixracer-periph/hwdef.dat @@ -41,8 +41,6 @@ define HAL_DISABLE_LOOP_DELAY define HAL_USE_RTC FALSE -define HAL_NO_RCIN_THREAD - define HAL_BARO_ALLOW_INIT_NO_BARO define HAL_USE_ADC TRUE diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Sierra-F405/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Sierra-F405/hwdef.dat index 9083cfba9c..5889722903 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/Sierra-F405/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/Sierra-F405/hwdef.dat @@ -30,9 +30,6 @@ STDOUT_BAUDRATE 57600 define HAL_NO_GPIO_IRQ -# avoid timer and RCIN threads to save memory -define HAL_NO_RCIN_THREAD - define HAL_USE_RTC FALSE define DMA_RESERVE_SIZE 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Sierra-F412/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Sierra-F412/hwdef.dat index d847d8cf7c..5d1a1d323d 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/Sierra-F412/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/Sierra-F412/hwdef.dat @@ -85,7 +85,6 @@ PA0 VSENSE ADC1 SCALE(2) define HAL_NO_GPIO_IRQ # avoid RCIN thread to save memory -define HAL_NO_RCIN_THREAD define HAL_USE_RTC FALSE define DMA_RESERVE_SIZE 0 define PERIPH_FW TRUE diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Sierra-F9P/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Sierra-F9P/hwdef.dat index 91ca84448d..f7d251d5c3 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/Sierra-F9P/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/Sierra-F9P/hwdef.dat @@ -96,7 +96,6 @@ PA0 VSENSE ADC1 SCALE(2) define HAL_NO_GPIO_IRQ # avoid RCIN thread to save memory -define HAL_NO_RCIN_THREAD define HAL_USE_RTC TRUE define DMA_RESERVE_SIZE 0 define HAL_DISABLE_LOOP_DELAY diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Sierra-PrecisionPoint/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/Sierra-PrecisionPoint/hwdef-bl.dat index 504e00a488..ebc3b4acd3 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/Sierra-PrecisionPoint/hwdef-bl.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/Sierra-PrecisionPoint/hwdef-bl.dat @@ -62,7 +62,6 @@ define HAL_DISABLE_LOOP_DELAY # avoid timer and RCIN threads to save memory define HAL_NO_TIMER_THREAD -define HAL_NO_RCIN_THREAD # enable CAN support PB8 CAN1_RX CAN1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueNavIC/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueNavIC/hwdef.dat index 0fbf1403c3..08bd1d3847 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueNavIC/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueNavIC/hwdef.dat @@ -41,7 +41,6 @@ define HAL_GCS_ENABLED 0 define HAL_NO_MONITOR_THREAD define HAL_NO_LOGGING define HAL_USE_ADC FALSE -define HAL_NO_RCIN_THREAD # we setup a small defaults.parm define AP_PARAM_MAX_EMBEDDED_PARAM 256 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueNavPro-G4/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueNavPro-G4/hwdef-bl.dat index a36f9fc9b9..de4bf8bc39 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueNavPro-G4/hwdef-bl.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueNavPro-G4/hwdef-bl.dat @@ -33,7 +33,6 @@ PA14 JTCK-SWCLK SWD define HAL_NO_GPIO_IRQ define HAL_USE_EMPTY_IO TRUE define HAL_NO_TIMER_THREAD -define HAL_NO_RCIN_THREAD define DMA_RESERVE_SIZE 0 define HAL_DISABLE_LOOP_DELAY define HAL_USE_SERIAL FALSE diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueNavPro-G4/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueNavPro-G4/hwdef.dat index afcd959e7e..dc231abb25 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueNavPro-G4/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueNavPro-G4/hwdef.dat @@ -66,9 +66,6 @@ define STM32_ADC_USE_ADC1 FALSE define HAL_DISABLE_ADC_DRIVER TRUE define HAL_NO_GPIO_IRQ -# avoid RCIN thread to save memory -define HAL_NO_RCIN_THREAD - define HAL_USE_RTC FALSE define DMA_RESERVE_SIZE 0 define HAL_DISABLE_LOOP_DELAY diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueNavPro/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueNavPro/hwdef.dat index 723aaf7764..8164e34a42 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueNavPro/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueNavPro/hwdef.dat @@ -39,7 +39,6 @@ PROCESS_STACK 0xA00 define HAL_DISABLE_LOOP_DELAY define HAL_NO_MONITOR_THREAD define HAL_USE_ADC FALSE -define HAL_NO_RCIN_THREAD # we setup a small defaults.parm define AP_PARAM_MAX_EMBEDDED_PARAM 256 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueNorth/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueNorth/hwdef.dat index 03effca73f..b99a5e47fc 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueNorth/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueNorth/hwdef.dat @@ -39,7 +39,6 @@ PROCESS_STACK 0xA00 define HAL_DISABLE_LOOP_DELAY define HAL_NO_MONITOR_THREAD define HAL_USE_ADC FALSE -define HAL_NO_RCIN_THREAD # we setup a small defaults.parm define AP_PARAM_MAX_EMBEDDED_PARAM 256 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueSpeed/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueSpeed/hwdef.dat index 5c7cb7695c..257825c2c5 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueSpeed/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/Sierra-TrueSpeed/hwdef.dat @@ -39,7 +39,6 @@ PROCESS_STACK 0xA00 define HAL_DISABLE_LOOP_DELAY define HAL_NO_MONITOR_THREAD define HAL_USE_ADC FALSE -define HAL_NO_RCIN_THREAD # we setup a small defaults.parm define AP_PARAM_MAX_EMBEDDED_PARAM 256 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/ZubaxGNSS/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/ZubaxGNSS/hwdef-bl.dat index 93e1ae4447..8f444ed7fa 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/ZubaxGNSS/hwdef-bl.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/ZubaxGNSS/hwdef-bl.dat @@ -71,7 +71,6 @@ define PORT_INT_REQUIRED_STACK 64 # avoid timer and RCIN threads to save memory define HAL_NO_TIMER_THREAD -define HAL_NO_RCIN_THREAD #defined to turn off undef warnings define __FPU_PRESENT 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/ZubaxGNSS/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/ZubaxGNSS/hwdef.dat index 5212c3db57..887aa5c528 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/ZubaxGNSS/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/ZubaxGNSS/hwdef.dat @@ -94,9 +94,6 @@ define CH_CFG_ST_TIMEDELTA 0 define SERIAL_BUFFERS_SIZE 512 define PORT_INT_REQUIRED_STACK 64 -# avoid RCIN thread to save memory -define HAL_NO_RCIN_THREAD - #defined to turn off undef warnings define __FPU_PRESENT 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/f103-periph/hwdef.inc b/libraries/AP_HAL_ChibiOS/hwdef/f103-periph/hwdef.inc index 4cb0c0046f..c650a6a765 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/f103-periph/hwdef.inc +++ b/libraries/AP_HAL_ChibiOS/hwdef/f103-periph/hwdef.inc @@ -64,7 +64,6 @@ define PORT_INT_REQUIRED_STACK 64 # avoid timer and RCIN threads to save memory define HAL_NO_TIMER_THREAD define HAL_NO_RCOUT_THREAD -define HAL_NO_RCIN_THREAD #defined to turn off undef warnings define __FPU_PRESENT 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/f303-MatekGPS/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/f303-MatekGPS/hwdef.dat index 54527bce14..ac8d72cd9a 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/f303-MatekGPS/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/f303-MatekGPS/hwdef.dat @@ -45,9 +45,6 @@ define HAL_NO_GPIO_IRQ define SERIAL_BUFFERS_SIZE 512 define PORT_INT_REQUIRED_STACK 64 -# avoid timer and RCIN threads to save memory -define HAL_NO_RCIN_THREAD - define HAL_USE_RTC FALSE define DMA_RESERVE_SIZE 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/f303-periph/hwdef.inc b/libraries/AP_HAL_ChibiOS/hwdef/f303-periph/hwdef.inc index 0203f3e1ab..21b85326db 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/f303-periph/hwdef.inc +++ b/libraries/AP_HAL_ChibiOS/hwdef/f303-periph/hwdef.inc @@ -65,8 +65,6 @@ define HAL_NO_GPIO_IRQ define SERIAL_BUFFERS_SIZE 512 define PORT_INT_REQUIRED_STACK 64 -# avoid timer and RCIN threads to save memory -define HAL_NO_RCIN_THREAD define HAL_NO_RCOUT_THREAD define HAL_USE_RTC FALSE diff --git a/libraries/AP_HAL_ChibiOS/hwdef/f405-MatekGPS/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/f405-MatekGPS/hwdef.dat index 24b5e915e7..bc2c2e35cd 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/f405-MatekGPS/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/f405-MatekGPS/hwdef.dat @@ -39,9 +39,6 @@ define PORT_INT_REQUIRED_STACK 64 #PA13 JTMS-SWDIO SWD #PA14 JTCK-SWCLK SWD -# avoid timer and RCIN threads to save memory -define HAL_NO_RCIN_THREAD - define HAL_USE_RTC FALSE define DMA_RESERVE_SIZE 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/iomcu/hwdef.inc b/libraries/AP_HAL_ChibiOS/hwdef/iomcu/hwdef.inc index 99decb45db..029b629f6a 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/iomcu/hwdef.inc +++ b/libraries/AP_HAL_ChibiOS/hwdef/iomcu/hwdef.inc @@ -106,9 +106,8 @@ define SERIAL_BUFFERS_SIZE 32 define HAL_USE_EMPTY_IO TRUE define PORT_INT_REQUIRED_STACK 64 -# avoid timer and RCIN threads to save memory +# avoid timer threads to save memory define HAL_NO_TIMER_THREAD -define HAL_NO_RCIN_THREAD define HAL_NO_MONITOR_THREAD define HAL_NO_RCOUT_THREAD # also disables LED thread diff --git a/libraries/AP_HAL_ChibiOS/hwdef/kha_eth/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/kha_eth/hwdef.dat index 0e5f16d6f6..dceca1584c 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/kha_eth/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/kha_eth/hwdef.dat @@ -131,7 +131,6 @@ define HAL_DISABLE_ADC_DRIVER TRUE # --------------------------------------------------------------------------------------------- # AP_Periph - boiler-plate configurations that all HW AP-Periph need # --------------------------------------------------------------------------------------------- -define HAL_NO_RCIN_THREAD #define HAL_NO_GPIO_IRQ define HAL_DISABLE_LOOP_DELAY define HAL_PERIPH_SHOW_SERIAL_MANAGER_PARAMS diff --git a/libraries/AP_HAL_ChibiOS/hwdef/mRoCANPWM-M10126/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/mRoCANPWM-M10126/hwdef-bl.dat index 3f1c74106d..6ba2565708 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/mRoCANPWM-M10126/hwdef-bl.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/mRoCANPWM-M10126/hwdef-bl.dat @@ -64,7 +64,6 @@ define STM32_SERIAL_USE_USART3 FALSE # avoid timer and RCIN threads to save memory define HAL_NO_TIMER_THREAD -define HAL_NO_RCIN_THREAD define DMA_RESERVE_SIZE 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/mRoCANPWM-M10126/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/mRoCANPWM-M10126/hwdef.dat index a44e19479e..2d08c0d40d 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/mRoCANPWM-M10126/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/mRoCANPWM-M10126/hwdef.dat @@ -53,9 +53,6 @@ define HAL_DISABLE_ADC_DRIVER TRUE define HAL_NO_GPIO_IRQ -# avoid RCIN thread to save memory -define HAL_NO_RCIN_THREAD - define HAL_USE_RTC FALSE #define DMA_RESERVE_SIZE 2048 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/rGNSS/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/rGNSS/hwdef-bl.dat index c7967bab9b..b91dcd0b75 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/rGNSS/hwdef-bl.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/rGNSS/hwdef-bl.dat @@ -58,7 +58,6 @@ define HAL_USE_EMPTY_IO TRUE # avoid timer and RCIN threads to save memory define HAL_NO_TIMER_THREAD -define HAL_NO_RCIN_THREAD define DMA_RESERVE_SIZE 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/rGNSS/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/rGNSS/hwdef.dat index 4af59621fb..f9c48804a0 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/rGNSS/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/rGNSS/hwdef.dat @@ -91,9 +91,6 @@ define HAL_DISABLE_ADC_DRIVER TRUE define HAL_NO_GPIO_IRQ -# avoid RCIN thread to save memory -define HAL_NO_RCIN_THREAD - define HAL_USE_RTC FALSE define DMA_RESERVE_SIZE 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py index af05bddf2c..8744b43a38 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py @@ -1220,7 +1220,9 @@ class ChibiOSHWDef(object): // avoid timer and RCIN threads to save memory #define HAL_NO_TIMER_THREAD #define HAL_NO_RCOUT_THREAD -#define HAL_NO_RCIN_THREAD +#ifndef HAL_RCIN_THREAD_ENABLED +#define HAL_RCIN_THREAD_ENABLED 0 +#endif #ifndef AP_HAL_SHARED_DMA_ENABLED #define AP_HAL_SHARED_DMA_ENABLED 0 #endif diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_periph.h b/libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_periph.h index 31ccf363ad..c61e83d403 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_periph.h +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_periph.h @@ -321,6 +321,10 @@ #define HAL_SERIAL_ESC_COMM_ENABLED 0 #endif +#ifndef HAL_RCIN_THREAD_ENABLED +#define HAL_RCIN_THREAD_ENABLED 0 +#endif + #ifndef HAL_WITH_ESC_TELEM #define HAL_WITH_ESC_TELEM 0 #endif