Browse Source

HAL_ChibiOS: fixed output pins on F100 iomcu

master
Andrew Tridgell 7 years ago
parent
commit
c622a4c4d6
  1. 3
      libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py

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

@ -177,6 +177,9 @@ class generic_pin(object):
self.type = type self.type = type
self.extra = extra self.extra = extra
self.af = None self.af = None
if type == 'OUTPUT':
self.sig_dir = 'OUTPUT'
else:
self.sig_dir = 'INPUT' self.sig_dir = 'INPUT'
if mcu_series == "STM32F100" and self.label is not None: if mcu_series == "STM32F100" and self.label is not None:
self.f1_pin_setup() self.f1_pin_setup()

Loading…
Cancel
Save