mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-23 09:08:30 -04:00
HAL_ChibiOS: added CHIBIOS_BOARD_NAME define
This commit is contained in:
parent
d07d5a7082
commit
25cc8203d8
@ -801,6 +801,7 @@ def validate_flash_storage_size():
|
||||
|
||||
def write_mcu_config(f):
|
||||
'''write MCU config defines'''
|
||||
f.write('#define CHIBIOS_BOARD_NAME "%s"\n' % os.path.basename(os.path.dirname(args.hwdef[0])))
|
||||
f.write('// MCU type (ChibiOS define)\n')
|
||||
f.write('#define %s_MCUCONF\n' % get_config('MCU'))
|
||||
mcu_subtype = get_config('MCU', 1)
|
||||
|
Loading…
Reference in New Issue
Block a user