mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
HAL_ChibiOS: add option to set iomcu firmware environment var
This commit is contained in:
parent
3641dcee44
commit
22f74b0827
@ -98,5 +98,6 @@ define DMA_RESERVE_SIZE 0
|
|||||||
|
|
||||||
define IOMCU_FW TRUE
|
define IOMCU_FW TRUE
|
||||||
|
|
||||||
|
IOMCU_FW 1
|
||||||
MAIN_STACK 0x200
|
MAIN_STACK 0x200
|
||||||
PROCESS_STACK 0x250
|
PROCESS_STACK 0x250
|
@ -487,7 +487,12 @@ def write_mcu_config(f):
|
|||||||
env_vars['MAIN_STACK'] = get_config('MAIN_STACK')
|
env_vars['MAIN_STACK'] = get_config('MAIN_STACK')
|
||||||
else:
|
else:
|
||||||
env_vars['MAIN_STACK'] = "0x400"
|
env_vars['MAIN_STACK'] = "0x400"
|
||||||
|
|
||||||
|
if get_config('IOMCU_FW', required=False):
|
||||||
|
env_vars['IOMCU_FW'] = get_config('IOMCU_FW')
|
||||||
|
else:
|
||||||
|
env_vars['IOMCU_FW'] = 0
|
||||||
|
|
||||||
# write any custom STM32 defines
|
# write any custom STM32 defines
|
||||||
for d in alllines:
|
for d in alllines:
|
||||||
if d.startswith('STM32_'):
|
if d.startswith('STM32_'):
|
||||||
|
Loading…
Reference in New Issue
Block a user