HAL_ChibiOS: add option to set iomcu firmware environment var

This commit is contained in:
Siddharth Purohit 2018-09-18 16:23:32 +05:30 committed by Andrew Tridgell
parent 3641dcee44
commit 22f74b0827
2 changed files with 7 additions and 1 deletions

View File

@ -98,5 +98,6 @@ define DMA_RESERVE_SIZE 0
define IOMCU_FW TRUE
IOMCU_FW 1
MAIN_STACK 0x200
PROCESS_STACK 0x250

View File

@ -488,6 +488,11 @@ def write_mcu_config(f):
else:
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
for d in alllines:
if d.startswith('STM32_'):