From d962e094e7b1b93ed73fab688b6eb7cfe7b808c1 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 11 Oct 2021 08:31:01 +1100 Subject: [PATCH] HAL_ChibiOS: change RCIN PULLUP to PULLDOWN this makes us more consistent between boards --- libraries/AP_HAL_ChibiOS/hwdef/CUAV-Nora/hwdef.dat | 2 +- libraries/AP_HAL_ChibiOS/hwdef/CUAV-X7/hwdef.dat | 2 +- libraries/AP_HAL_ChibiOS/hwdef/CUAVv5Nano/hwdef.dat | 2 +- libraries/AP_HAL_ChibiOS/hwdef/F4BY/hwdef.dat | 2 +- libraries/AP_HAL_ChibiOS/hwdef/PH4-mini/hwdef.dat | 2 +- libraries/AP_HAL_ChibiOS/hwdef/QioTekZealotF427/hwdef.dat | 2 +- libraries/AP_HAL_ChibiOS/hwdef/Swan-K1/hwdef.dat | 2 +- libraries/AP_HAL_ChibiOS/hwdef/TBS-Colibri-F7/hwdef.dat | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CUAV-Nora/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CUAV-Nora/hwdef.dat index bbce37427c..9d366eefbb 100755 --- a/libraries/AP_HAL_ChibiOS/hwdef/CUAV-Nora/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CUAV-Nora/hwdef.dat @@ -180,7 +180,7 @@ PH9 TIM12_CH2 TIM12 PWM(14) GPIO(63) NODMA PE5 TIM15_CH1 TIM15 GPIO(77) ALARM # RC input -PB4 TIM3_CH1 TIM3 RCININT PULLUP LOW +PB4 TIM3_CH1 TIM3 RCININT PULLDOWN LOW # analog in PA0 BATT_VOLTAGE_SENS ADC1 SCALE(1) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CUAV-X7/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CUAV-X7/hwdef.dat index 0e0ea68020..8b41640436 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CUAV-X7/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CUAV-X7/hwdef.dat @@ -183,7 +183,7 @@ PH9 TIM12_CH2 TIM12 PWM(14) GPIO(63) NODMA PE5 TIM15_CH1 TIM15 GPIO(77) ALARM # RC input -PB4 TIM3_CH1 TIM3 RCININT PULLUP LOW +PB4 TIM3_CH1 TIM3 RCININT PULLDOWN LOW # analog in PA0 BATT_VOLTAGE_SENS ADC1 SCALE(1) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CUAVv5Nano/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CUAVv5Nano/hwdef.dat index 60591c8791..c849e00737 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CUAVv5Nano/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CUAVv5Nano/hwdef.dat @@ -39,7 +39,7 @@ PB11 TIM2_CH4 TIM2 PWM(11) GPIO(60) # RCInput on the PPM pin, for all protocols undef PG9 undef USART6_RX -PI5 TIM8_CH1 TIM8 RCININT PULLUP LOW +PI5 TIM8_CH1 TIM8 RCININT PULLDOWN LOW # setup for supplied power brick undef HAL_BATT_VOLT_SCALE diff --git a/libraries/AP_HAL_ChibiOS/hwdef/F4BY/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/F4BY/hwdef.dat index d355329e0a..933f94e2cd 100755 --- a/libraries/AP_HAL_ChibiOS/hwdef/F4BY/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/F4BY/hwdef.dat @@ -131,7 +131,7 @@ PD15 TIM4_CH4 TIM4 PWM(11) GPIO(60) PD14 TIM4_CH3 TIM4 PWM(12) GPIO(61) # also USART6_RX for serial RC -PC7 TIM8_CH2 TIM8 RCIN PULLUP LOW DMA_CH0 +PC7 TIM8_CH2 TIM8 RCIN PULLDOWN LOW DMA_CH0 # LED setup is similar to PixRacer define HAL_HAVE_PIXRACER_LED diff --git a/libraries/AP_HAL_ChibiOS/hwdef/PH4-mini/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/PH4-mini/hwdef.dat index 4b3f3b0a56..dab2914d36 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/PH4-mini/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/PH4-mini/hwdef.dat @@ -33,7 +33,7 @@ PB3 TIM2_CH2 TIM2 PWM(10) GPIO(59) PB11 TIM2_CH4 TIM2 PWM(11) GPIO(60) # RCInput on the PPM pin, for all protocols -PI5 TIM8_CH1 TIM8 RCININT PULLUP LOW +PI5 TIM8_CH1 TIM8 RCININT PULLDOWN LOW # setup for supplied power brick undef HAL_BATT_VOLT_SCALE diff --git a/libraries/AP_HAL_ChibiOS/hwdef/QioTekZealotF427/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/QioTekZealotF427/hwdef.dat index f1d5dec0b9..00b363a8d7 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/QioTekZealotF427/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/QioTekZealotF427/hwdef.dat @@ -169,7 +169,7 @@ define RELAY3_PIN_DEFAULT 3 define RELAY4_PIN_DEFAULT 4 # also USART6_RX for serial RC -PC7 TIM8_CH2 TIM8 RCININT PULLUP LOW +PC7 TIM8_CH2 TIM8 RCININT PULLDOWN LOW # LED setup is similar to PixRacer define HAL_HAVE_PIXRACER_LED diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Swan-K1/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Swan-K1/hwdef.dat index aae6b4bb80..9233ba26f2 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/Swan-K1/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/Swan-K1/hwdef.dat @@ -21,7 +21,7 @@ undef UART8_RX undef AP_FEATURE_SBUS_OUT # RCInput on the PPM pin, for all protocols -PI5 TIM8_CH1 TIM8 RCININT PULLUP LOW +PI5 TIM8_CH1 TIM8 RCININT PULLDOWN LOW # setup for supplied power brick undef HAL_BATT_VOLT_SCALE diff --git a/libraries/AP_HAL_ChibiOS/hwdef/TBS-Colibri-F7/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/TBS-Colibri-F7/hwdef.dat index ba48d9a967..59a6d67817 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/TBS-Colibri-F7/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/TBS-Colibri-F7/hwdef.dat @@ -45,7 +45,7 @@ PB11 TIM2_CH4 TIM2 PWM(11) GPIO(60) # RCInput on the PPM pin, for all protocols undef PG9 undef USART6_RX -PI5 TIM8_CH1 TIM8 RCININT PULLUP LOW +PI5 TIM8_CH1 TIM8 RCININT PULLDOWN LOW # setup for supplied power brick undef HAL_BATT_VOLT_SCALE