mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
HAL_ChibiOS: setup define for number of serial ports
This commit is contained in:
parent
6e95dc7eec
commit
caa06b62df
@ -1034,6 +1034,10 @@ def write_UART_config(f):
|
||||
#define HAL_USE_SERIAL HAL_USE_SERIAL_USB
|
||||
#endif
|
||||
''')
|
||||
num_uarts = len(devlist)
|
||||
if 'IOMCU_UART' in config:
|
||||
num_uarts -= 1
|
||||
f.write('#define HAL_UART_NUM_SERIAL_PORTS %u\n' % num_uarts)
|
||||
|
||||
def write_UART_config_bootloader(f):
|
||||
'''write UART config defines'''
|
||||
|
Loading…
Reference in New Issue
Block a user