We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b02fdc commit d79475eCopy full SHA for d79475e
components/drivers/spi/SConscript
@@ -31,10 +31,11 @@ if GetDepend('RT_USING_SFUD'):
31
if GetDepend('RT_SFUD_USING_SFDP'):
32
src_device += ['sfud/src/sfud_sfdp.c']
33
34
- if rtconfig.PLATFORM in GetGCCLikePLATFORM():
35
- LOCAL_CFLAGS += ' -std=c99'
36
- elif rtconfig.PLATFORM in ['armcc']:
37
- LOCAL_CFLAGS += ' --c99'
+ if not GetDepend('RT_USING_DM'):
+ if rtconfig.PLATFORM in GetGCCLikePLATFORM():
+ LOCAL_CFLAGS += ' -std=c99'
+ elif rtconfig.PLATFORM in ['armcc']:
38
+ LOCAL_CFLAGS += ' --c99'
39
40
if GetDepend('RT_USING_DM'):
41
src += ['dev_spi_dm.c', 'dev_spi_bus.c']
0 commit comments