AP_HAL_ChibiOS: add missing EOL in output

without it a double define line was giving compiler an error
This commit is contained in:
Walter Dunckel 2022-02-04 04:38:28 -08:00 committed by Peter Barker
parent 382cbb9b4d
commit f2347e7845
1 changed files with 1 additions and 1 deletions

View File

@ -918,7 +918,7 @@ def write_mcu_config(f):
if env_vars['EXTERNAL_PROG_FLASH_MB'] and not args.bootloader: if env_vars['EXTERNAL_PROG_FLASH_MB'] and not args.bootloader:
f.write('#define CRT1_RAMFUNC_ENABLE TRUE\n') # this will enable loading program sections to RAM f.write('#define CRT1_RAMFUNC_ENABLE TRUE\n') # this will enable loading program sections to RAM
f.write('#define __RAMFUNC__ __attribute__ ((long_call, __section__(".ramfunc")))\n') f.write('#define __RAMFUNC__ __attribute__ ((long_call, __section__(".ramfunc")))\n')
f.write('#define PORT_IRQ_ATTRIBUTES __RAMFUNC__') f.write('#define PORT_IRQ_ATTRIBUTES __RAMFUNC__\n')
else: else:
f.write('#define CRT1_RAMFUNC_ENABLE FALSE\n') f.write('#define CRT1_RAMFUNC_ENABLE FALSE\n')