HAL_ChibiOS: setup RTS pins as pullup

this prevents RTS pins from keeping SiK radios in bootloader mode on
peripheral powerup
This commit is contained in:
Andrew Tridgell 2018-07-11 15:13:12 +10:00
parent 63a0a4979c
commit 11e09a846c

View File

@ -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"):