mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 09:08:25 +00:00
[DM][SPI] Support SFUD for DM
DM need > c99 Signed-off-by: GuEe-GUI <2991707448@qq.com>
This commit is contained in:
@@ -31,10 +31,11 @@ if GetDepend('RT_USING_SFUD'):
|
||||
if GetDepend('RT_SFUD_USING_SFDP'):
|
||||
src_device += ['sfud/src/sfud_sfdp.c']
|
||||
|
||||
if rtconfig.PLATFORM in GetGCCLikePLATFORM():
|
||||
LOCAL_CFLAGS += ' -std=c99'
|
||||
elif rtconfig.PLATFORM in ['armcc']:
|
||||
LOCAL_CFLAGS += ' --c99'
|
||||
if not GetDepend('RT_USING_DM'):
|
||||
if rtconfig.PLATFORM in GetGCCLikePLATFORM():
|
||||
LOCAL_CFLAGS += ' -std=c99'
|
||||
elif rtconfig.PLATFORM in ['armcc']:
|
||||
LOCAL_CFLAGS += ' --c99'
|
||||
|
||||
if GetDepend('RT_USING_DM'):
|
||||
src += ['dev_spi_dm.c', 'dev_spi_bus.c']
|
||||
|
||||
Reference in New Issue
Block a user