summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2022-05-20 02:23:46 -0400
committerguo <[email protected]>2022-05-25 10:03:54 +0800
commit36f142fbc33119f5f2a056c23aa9b4de18d2b0bc (patch)
treef2da08b683b28c62dd6dd495a1bd3c1c2e93f124
parent1c64c9ef08a0bba5d2d8f4fd0d00b9e6f3e11a3e (diff)
[arduino] add RTDUINO_NO_SETUP_LOOP
-rw-r--r--bsp/stm32/stm32f072-st-nucleo/applications/SConscript2
-rw-r--r--bsp/stm32/stm32f401-st-nucleo/applications/SConscript2
-rw-r--r--bsp/stm32/stm32l475-atk-pandora/applications/SConscript2
3 files changed, 3 insertions, 3 deletions
diff --git a/bsp/stm32/stm32f072-st-nucleo/applications/SConscript b/bsp/stm32/stm32f072-st-nucleo/applications/SConscript
index d2e97b200b..e4f47bfc8f 100644
--- a/bsp/stm32/stm32f072-st-nucleo/applications/SConscript
+++ b/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)
diff --git a/bsp/stm32/stm32f401-st-nucleo/applications/SConscript b/bsp/stm32/stm32f401-st-nucleo/applications/SConscript
index ef31501277..d2e48b15b7 100644
--- a/bsp/stm32/stm32f401-st-nucleo/applications/SConscript
+++ b/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)
diff --git a/bsp/stm32/stm32l475-atk-pandora/applications/SConscript b/bsp/stm32/stm32l475-atk-pandora/applications/SConscript
index 7a5c95a817..502bdaac41 100644
--- a/bsp/stm32/stm32l475-atk-pandora/applications/SConscript
+++ b/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']):