Browse Source

HAL_ChibiOS: add CAN to supported peripherals list

mission-4.1.18
Siddharth Purohit 7 years ago committed by Andrew Tridgell
parent
commit
77f8acd7a1
  1. 2
      libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py

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

@ -88,7 +88,7 @@ def get_alt_function(mcu, pin, function):
# we do software RTS # we do software RTS
return None return None
af_labels = ['USART', 'UART', 'SPI', 'I2C', 'SDIO', 'OTG', 'JT', 'TIM'] af_labels = ['USART', 'UART', 'SPI', 'I2C', 'SDIO', 'OTG', 'JT', 'TIM', 'CAN']
for l in af_labels: for l in af_labels:
if function.startswith(l): if function.startswith(l):
s = pin + ":" + function s = pin + ":" + function

Loading…
Cancel
Save