mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
AP_HAL_ChibiOS: use old CRT1_AREAS_NUMBER
This commit is contained in:
parent
fc8ea7797d
commit
bef905d357
@ -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)
|
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:
|
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 __FASTRAMFUNC__ __attribute__ ((__section__(".fastramfunc")))\n')
|
||||||
f.write('#define __RAMFUNC__ __attribute__ ((__section__(".ramfunc")))\n')
|
f.write('#define __RAMFUNC__ __attribute__ ((__section__(".ramfunc")))\n')
|
||||||
f.write('#define PORT_IRQ_ATTRIBUTES __FASTRAMFUNC__\n')
|
f.write('#define PORT_IRQ_ATTRIBUTES __FASTRAMFUNC__\n')
|
||||||
else:
|
else:
|
||||||
f.write('#define CRT0_AREAS_NUMBER 1\n')
|
f.write('#define CRT1_AREAS_NUMBER 1\n')
|
||||||
|
|
||||||
storage_flash_page = get_storage_flash_page()
|
storage_flash_page = get_storage_flash_page()
|
||||||
flash_reserve_end = get_config('FLASH_RESERVE_END_KB', default=0, type=int)
|
flash_reserve_end = get_config('FLASH_RESERVE_END_KB', default=0, type=int)
|
||||||
|
Loading…
Reference in New Issue
Block a user