From 36f142fbc33119f5f2a056c23aa9b4de18d2b0bc Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Fri, 20 May 2022 02:23:46 -0400 Subject: [PATCH] [arduino] add RTDUINO_NO_SETUP_LOOP --- bsp/stm32/stm32f072-st-nucleo/applications/SConscript | 2 +- bsp/stm32/stm32f401-st-nucleo/applications/SConscript | 2 +- bsp/stm32/stm32l475-atk-pandora/applications/SConscript | 2 +- 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']): -- GitLab