Browse Source

AP_HAL_ChibiOS: Make BOARD_FLASH_SIZE available at configure time

master
Michael du Breuil 6 years ago committed by WickedShell
parent
commit
a34ac14ec5
  1. 1
      libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py

1
libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py

@ -572,6 +572,7 @@ def write_mcu_config(f): @@ -572,6 +572,7 @@ def write_mcu_config(f):
f.write('#define %s\n' % d[7:])
flash_size = get_config('FLASH_SIZE_KB', type=int)
f.write('#define BOARD_FLASH_SIZE %u\n' % flash_size)
env_vars['BOARD_FLASH_SIZE'] = flash_size
f.write('#define CRT1_AREAS_NUMBER 1\n')
flash_reserve_start = get_config(

Loading…
Cancel
Save