HAL_ChibiOS: add CAN to supported peripherals list

This commit is contained in:
Siddharth Purohit 2018-02-02 01:04:42 +05:30 committed by Andrew Tridgell
parent 6f21c1583f
commit 77f8acd7a1

View File

@ -88,7 +88,7 @@ def get_alt_function(mcu, pin, function):
# we do software RTS
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:
if function.startswith(l):
s = pin + ":" + function