HAL_ChibiOS: always set STM32_DMA_REQUIRED for non-bootloader

this fixes an issue for uart-only AP_Periph builds
This commit is contained in:
Andrew Tridgell 2020-12-06 14:37:00 +11:00 committed by Peter Barker
parent e5423a3cf6
commit f44e4aaefb
1 changed files with 3 additions and 0 deletions

View File

@ -821,6 +821,9 @@ def write_mcu_config(f):
if env_vars.get('ROMFS_UNCOMPRESSED', False):
f.write('#define HAL_ROMFS_UNCOMPRESSED\n')
if not args.bootloader:
f.write('''#define STM32_DMA_REQUIRED TRUE\n\n''')
def write_ldscript(fname):
'''write ldscript.ld for this board'''
flash_size = get_config('FLASH_USE_MAX_KB', type=int, default=0)