Skip to content

Commit d79475e

Browse files
GuEe-GUIRbb666
authored andcommitted
[DM][SPI] Support SFUD for DM
DM need > c99 Signed-off-by: GuEe-GUI <2991707448@qq.com>
1 parent 9b02fdc commit d79475e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

components/drivers/spi/SConscript

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ if GetDepend('RT_USING_SFUD'):
3131
if GetDepend('RT_SFUD_USING_SFDP'):
3232
src_device += ['sfud/src/sfud_sfdp.c']
3333

34-
if rtconfig.PLATFORM in GetGCCLikePLATFORM():
35-
LOCAL_CFLAGS += ' -std=c99'
36-
elif rtconfig.PLATFORM in ['armcc']:
37-
LOCAL_CFLAGS += ' --c99'
34+
if not GetDepend('RT_USING_DM'):
35+
if rtconfig.PLATFORM in GetGCCLikePLATFORM():
36+
LOCAL_CFLAGS += ' -std=c99'
37+
elif rtconfig.PLATFORM in ['armcc']:
38+
LOCAL_CFLAGS += ' --c99'
3839

3940
if GetDepend('RT_USING_DM'):
4041
src += ['dev_spi_dm.c', 'dev_spi_bus.c']

0 commit comments

Comments
 (0)