AP_HAL_ChibiOS: use old CRT1_AREAS_NUMBER

This commit is contained in:
Andy Piper 2023-08-25 21:27:37 +01:00 committed by Randy Mackay
parent fc8ea7797d
commit bef905d357
1 changed files with 2 additions and 2 deletions

View File

@ -966,12 +966,12 @@ def write_mcu_config(f):
env_vars['EXT_FLASH_SIZE_MB'] = get_config('EXT_FLASH_SIZE_MB', default=0, type=int)
if env_vars['EXT_FLASH_SIZE_MB'] and not args.bootloader:
f.write('#define CRT0_AREAS_NUMBER 4\n')
f.write('#define CRT1_AREAS_NUMBER 4\n')
f.write('#define __FASTRAMFUNC__ __attribute__ ((__section__(".fastramfunc")))\n')
f.write('#define __RAMFUNC__ __attribute__ ((__section__(".ramfunc")))\n')
f.write('#define PORT_IRQ_ATTRIBUTES __FASTRAMFUNC__\n')
else:
f.write('#define CRT0_AREAS_NUMBER 1\n')
f.write('#define CRT1_AREAS_NUMBER 1\n')
storage_flash_page = get_storage_flash_page()
flash_reserve_end = get_config('FLASH_RESERVE_END_KB', default=0, type=int)