From 294aac69555596162ddf3dd04bfd4c53bd892868 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 14 Mar 2018 19:51:30 +1100 Subject: [PATCH] HAL_ChibiOS: fixed CTS pulldown we need to pulldown to prevent delays in uart sends --- libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py index a6f4895889..76bfcdfb56 100755 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py @@ -221,8 +221,11 @@ class generic_pin(object): (self.label.endswith('_TX') or self.label.endswith('_RX'))): # default RX/TX lines to pullup, to prevent spurious bytes - # on disconnected ports - v = "PULLUP" + # on disconnected ports. CTS is the exception, which is pulldown + if self.label.endswith("CTS"): + v = "PULLDOWN" + else: + v = "PULLUP" for e in self.extra: if e in values: v = e