From 11e09a846c2723bc70275c525b05c31a5d6f0137 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 11 Jul 2018 15:13:12 +1000 Subject: [PATCH] HAL_ChibiOS: setup RTS pins as pullup this prevents RTS pins from keeping SiK radios in bootloader mode on peripheral powerup --- libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py index 7424a5c9f6..c34a56bcf5 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py @@ -245,7 +245,8 @@ class generic_pin(object): self.type.startswith('UART')) and ( (self.label.endswith('_TX') or self.label.endswith('_RX') or - self.label.endswith('_CTS'))): + self.label.endswith('_CTS') or + self.label.endswith('_RTS'))): # default RX/TX lines to pullup, to prevent spurious bytes # on disconnected ports. CTS is the exception, which is pulldown if self.label.endswith("CTS"):