diff --git a/libraries/AP_HAL_ChibiOS/hwdef/AR-F407SmartBat/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/AR-F407SmartBat/hwdef.dat index 04c008a1d1..37a6c95ba4 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/AR-F407SmartBat/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/AR-F407SmartBat/hwdef.dat @@ -60,3 +60,4 @@ define AP_PERIPH_BATTERY_BALANCE_RATE_DEFAULT 2 define AP_PERIPH_BATTERY_BALANCE_CELL1_PIN_DEFAULT 1 define AP_PERIPH_BATTERY_BALANCE_ID_DEFAULT 0 +define HAL_RCIN_THREAD_ENABLED 1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/ARK_CANNODE/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/ARK_CANNODE/hwdef.dat index 94e7bad5b1..f5fad36644 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/ARK_CANNODE/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/ARK_CANNODE/hwdef.dat @@ -128,3 +128,5 @@ define AP_SERIALLED_ENABLED 1 define HAL_PERIPH_ENABLE_RANGEFINDER # disable rangefinder by default define AP_PERIPH_RANGEFINDER_PORT_DEFAULT -1 + +define HAL_RCIN_THREAD_ENABLED 1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/ARK_GPS/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/ARK_GPS/hwdef.dat index 64d29ddb8c..07149e09aa 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/ARK_GPS/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/ARK_GPS/hwdef.dat @@ -122,3 +122,4 @@ define HAL_PERIPH_GPS_PORT_DEFAULT 1 define HAL_SERIAL_ESC_COMM_ENABLED 1 +define HAL_RCIN_THREAD_ENABLED 1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/ARK_RTK_GPS/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/ARK_RTK_GPS/hwdef.dat index 5a1c407f26..d851175204 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/ARK_RTK_GPS/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/ARK_RTK_GPS/hwdef.dat @@ -133,3 +133,4 @@ define HAL_PERIPH_ENABLE_RC_OUT define HAL_PERIPH_GPS_PORT_DEFAULT 1 define HAL_SERIAL_ESC_COMM_ENABLED 1 +define HAL_RCIN_THREAD_ENABLED 1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/AeroFox-PMU/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/AeroFox-PMU/hwdef.dat index 41820f8b76..a7d5e558df 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/AeroFox-PMU/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/AeroFox-PMU/hwdef.dat @@ -58,3 +58,4 @@ define HAL_GPIO_B_LED_PIN 1 define HAL_GPIO_C_LED_PIN 2 define HAL_SERIAL_ESC_COMM_ENABLED 1 +define HAL_RCIN_THREAD_ENABLED 1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/BotBloxSwitch/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/BotBloxSwitch/hwdef.dat index 0635922243..d21671d90c 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/BotBloxSwitch/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/BotBloxSwitch/hwdef.dat @@ -86,3 +86,4 @@ define STM32_ADC_USE_ADC1 FALSE define STM32_ADC_USE_ADC2 FALSE define STM32_ADC_USE_ADC3 FALSE +define HAL_RCIN_THREAD_ENABLED 1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CarbonixF405/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CarbonixF405/hwdef.dat index f83347e0b2..674424bd14 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CarbonixF405/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CarbonixF405/hwdef.dat @@ -141,6 +141,4 @@ COMPASS MMC5XX3 I2C:0:0x30 false ROTATION_NONE define AP_COMPASS_QMC5883P_ENABLED 1 COMPASS QMC5883P I2C:0:0x2C false ROTATION_YAW_180 - - - +define HAL_RCIN_THREAD_ENABLED 1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CarbonixL496/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CarbonixL496/hwdef.dat index ca41d1fdc8..6b14dc1e36 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CarbonixL496/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CarbonixL496/hwdef.dat @@ -142,3 +142,5 @@ BARO MS56XX I2C:0:0x76 COMPASS QMC5883P I2C:0:0x2C false ROTATION_YAW_180 define AP_COMPASS_QMC5883P_ENABLED 1 + +define HAL_RCIN_THREAD_ENABLED 1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/G4-ESC/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/G4-ESC/hwdef.dat index 68b4a33ea4..7a05f06a8a 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/G4-ESC/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/G4-ESC/hwdef.dat @@ -153,3 +153,4 @@ env ROMFS_UNCOMPRESSED True DMA_NOSHARE * define HAL_SERIAL_ESC_COMM_ENABLED 1 +define HAL_RCIN_THREAD_ENABLED 1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Here4AP/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Here4AP/hwdef.dat index a4783d3f6f..6147e149fd 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/Here4AP/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/Here4AP/hwdef.dat @@ -134,3 +134,4 @@ define HAL_PERIPH_ENABLE_RC_OUT define HAL_PERIPH_ENABLE_NOTIFY define HAL_SERIAL_ESC_COMM_ENABLED 1 +define HAL_RCIN_THREAD_ENABLED 1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-BattMon/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-BattMon/hwdef.dat index 4b93061844..4a2612749a 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-BattMon/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-BattMon/hwdef.dat @@ -17,3 +17,5 @@ define HAL_NO_MONITOR_THREAD define HAL_NO_RCOUT_THREAD define HAL_NO_TIMER_THREAD +undef HAL_RCIN_THREAD_ENABLED +define HAL_RCIN_THREAD_ENABLED 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-GPS/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-GPS/hwdef.dat index a4e47b233d..45a49c8d71 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-GPS/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekL431-GPS/hwdef.dat @@ -40,6 +40,8 @@ define HAL_USE_ADC FALSE define HAL_NO_MONITOR_THREAD define HAL_NO_RCOUT_THREAD define HAL_NO_TIMER_THREAD +undef HAL_RCIN_THREAD_ENABLED +define HAL_RCIN_THREAD_ENABLED 0 # maintain GPS port number compatibility with MatekL431-Periph SERIAL_ORDER EMPTY USART2 USART3 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekL431/hwdef.inc b/libraries/AP_HAL_ChibiOS/hwdef/MatekL431/hwdef.inc index bb33051c63..2016159a2e 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MatekL431/hwdef.inc +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekL431/hwdef.inc @@ -102,3 +102,5 @@ define HAL_PERIPH_LISTEN_FOR_SERIAL_UART_REBOOT_CMD_PORT 0 # keep ROMFS uncompressed as we don't have enough RAM # to uncompress the bootloader at runtime env ROMFS_UNCOMPRESSED True + +define HAL_RCIN_THREAD_ENABLED 1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Nucleo-G491/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Nucleo-G491/hwdef.dat index 4a9fc1c45b..8725d78576 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/Nucleo-G491/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/Nucleo-G491/hwdef.dat @@ -73,3 +73,4 @@ define HAL_USE_ADC TRUE define STM32_ADC_USE_ADC1 TRUE PB11 BAT_CURR_SENS ADC1 SCALE(1) +define HAL_RCIN_THREAD_ENABLED 1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Nucleo-L476/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Nucleo-L476/hwdef.dat index 8a9a640cc0..2c5cd58b61 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/Nucleo-L476/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/Nucleo-L476/hwdef.dat @@ -106,3 +106,5 @@ define HAL_PERIPH_ENABLE_AIRSPEED # bootloader embedding / bootloader flashing not available define AP_BOOTLOADER_FLASHING_ENABLED 0 + +define HAL_RCIN_THREAD_ENABLED 1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Nucleo-L496/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Nucleo-L496/hwdef.dat index 00a5622d58..95bbe2992b 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/Nucleo-L496/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/Nucleo-L496/hwdef.dat @@ -113,3 +113,5 @@ BARO BMP388 I2C:0:0x76 # bootloader embedding / bootloader flashing not available define AP_BOOTLOADER_FLASHING_ENABLED 0 + +define HAL_RCIN_THREAD_ENABLED 1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Sierra-L431/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Sierra-L431/hwdef.dat index e60a1a4217..721a38b0a9 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/Sierra-L431/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/Sierra-L431/hwdef.dat @@ -105,3 +105,5 @@ define HAL_AIRSPEED_TYPE_DEFAULT 1 # keep ROMFS uncompressed as we don't have enough RAM # to uncompress the bootloader at runtime env ROMFS_UNCOMPRESSED True + +define HAL_RCIN_THREAD_ENABLED 1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Sierra-PrecisionPoint/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Sierra-PrecisionPoint/hwdef.dat index bab4fa6a65..533e842c15 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/Sierra-PrecisionPoint/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/Sierra-PrecisionPoint/hwdef.dat @@ -146,3 +146,4 @@ define HAL_PERIPH_LISTEN_FOR_SERIAL_UART_REBOOT_CMD_PORT 0 PC6 USB_SEL OUTPUT PUSHPULL SPEED_LOW HIGH define HAL_SERIAL_ESC_COMM_ENABLED 1 +define HAL_RCIN_THREAD_ENABLED 1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/mRo-M10095/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/mRo-M10095/hwdef.dat index eaa64232a6..02807dc77d 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/mRo-M10095/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/mRo-M10095/hwdef.dat @@ -92,3 +92,5 @@ env ROMFS_UNCOMPRESSED True # don't share any DMA channels (there are enough for everyone) DMA_NOSHARE * + +define HAL_RCIN_THREAD_ENABLED 1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_iofirmware.h b/libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_iofirmware.h index 9d26a8b46d..5276181a87 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_iofirmware.h +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_iofirmware.h @@ -61,3 +61,7 @@ #ifndef HAL_SERIAL_ESC_COMM_ENABLED #define HAL_SERIAL_ESC_COMM_ENABLED 0 #endif + +#ifndef HAL_RCIN_THREAD_ENABLED +#define HAL_RCIN_THREAD_ENABLED 0 +#endif diff --git a/libraries/AP_HAL_ChibiOS/hwdef/sw-nav-f405/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/sw-nav-f405/hwdef.dat index d4dac2c204..af4096d95d 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/sw-nav-f405/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/sw-nav-f405/hwdef.dat @@ -79,5 +79,7 @@ define DISCRETE_RGB_GREEN_PIN 2 define DISCRETE_RGB_BLUE_PIN 4 define DISCRETE_RGB_POLARITY true +define HAL_RCIN_THREAD_ENABLED 1 + # don't build on firmware.ardupilot.org AUTOBUILD_TARGETS None diff --git a/libraries/AP_HAL_ChibiOS/hwdef/sw-spar-f407/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/sw-spar-f407/hwdef.dat index 7fcafd1717..9a652fb437 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/sw-spar-f407/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/sw-spar-f407/hwdef.dat @@ -124,3 +124,4 @@ PA5 BATT2_VOLTAGE_SENS ADC1 SCALE(1) ANALOG(3) AUTOBUILD_TARGETS None define HAL_SERIAL_ESC_COMM_ENABLED 1 +define HAL_RCIN_THREAD_ENABLED 1