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
1 changed files with 5 additions and 2 deletions

View File

@ -221,7 +221,10 @@ 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
# 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: