HAL_ChibiOS: fixed CTS pulldown

we need to pulldown to prevent delays in uart sends
This commit is contained in:
Andrew Tridgell 2018-03-14 19:51:30 +11:00
parent a64819cbf2
commit 294aac6955

View File

@ -221,8 +221,11 @@ class generic_pin(object):
(self.label.endswith('_TX') or (self.label.endswith('_TX') or
self.label.endswith('_RX'))): self.label.endswith('_RX'))):
# default RX/TX lines to pullup, to prevent spurious bytes # default RX/TX lines to pullup, to prevent spurious bytes
# on disconnected ports # on disconnected ports. CTS is the exception, which is pulldown
v = "PULLUP" if self.label.endswith("CTS"):
v = "PULLDOWN"
else:
v = "PULLUP"
for e in self.extra: for e in self.extra:
if e in values: if e in values:
v = e v = e