Browse Source

HAL_ChibiOS: setup RTS pins as pullup

this prevents RTS pins from keeping SiK radios in bootloader mode on
peripheral powerup
mission-4.1.18
Andrew Tridgell 7 years ago
parent
commit
11e09a846c
  1. 3
      libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py

3
libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py

@ -245,7 +245,8 @@ class generic_pin(object): @@ -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"):

Loading…
Cancel
Save