Browse Source

[arduino] add RTDUINO_NO_SETUP_LOOP

Meco Man 3 years ago
parent
commit
36f142fbc3

+ 1 - 1
bsp/stm32/stm32f072-st-nucleo/applications/SConscript

@@ -5,7 +5,7 @@ cwd = GetCurrentDir()
 CPPPATH = [cwd]
 src = ['main.c']
 
-if GetDepend(['PKG_USING_RTDUINO']):
+if GetDepend(['PKG_USING_RTDUINO']) and not GetDepend(['RTDUINO_NO_SETUP_LOOP']):
     src += ['arduino_main.cpp']
 
 group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)

+ 1 - 1
bsp/stm32/stm32f401-st-nucleo/applications/SConscript

@@ -5,7 +5,7 @@ cwd     = GetCurrentDir()
 CPPPATH = [cwd]
 src = ['main.c']
 
-if GetDepend(['PKG_USING_RTDUINO']):
+if GetDepend(['PKG_USING_RTDUINO']) and not GetDepend(['RTDUINO_NO_SETUP_LOOP']):
     src += ['arduino_main.cpp']
 
 group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)

+ 1 - 1
bsp/stm32/stm32l475-atk-pandora/applications/SConscript

@@ -5,7 +5,7 @@ cwd = GetCurrentDir()
 CPPPATH = [cwd]
 src = ['main.c']
 
-if GetDepend(['PKG_USING_RTDUINO']):
+if GetDepend(['PKG_USING_RTDUINO']) and not GetDepend(['RTDUINO_NO_SETUP_LOOP']):
     src += ['arduino_main.cpp']
 
 if GetDepend(['PKG_USING_NRF24L01']):