From 787b854f271daaac842029b52c6a4bfcd1e070e7 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Fri, 24 Dec 2021 02:18:07 -0500 Subject: [PATCH] [bsp][stm32l475] move arduino to application --- bsp/stm32/stm32l475-atk-pandora/applications/SConscript | 3 --- .../{board/ports => applications}/arduino/SConscript | 3 +++ .../applications/{ => arduino}/arduino_main.cpp | 0 .../{board/ports => applications}/arduino/arduino_pinout.c | 0 .../{board/ports => applications}/arduino/arduino_pinout.h | 0 5 files changed, 3 insertions(+), 3 deletions(-) rename bsp/stm32/stm32l475-atk-pandora/{board/ports => applications}/arduino/SConscript (64%) rename bsp/stm32/stm32l475-atk-pandora/applications/{ => arduino}/arduino_main.cpp (100%) rename bsp/stm32/stm32l475-atk-pandora/{board/ports => applications}/arduino/arduino_pinout.c (100%) rename bsp/stm32/stm32l475-atk-pandora/{board/ports => applications}/arduino/arduino_pinout.h (100%) diff --git a/bsp/stm32/stm32l475-atk-pandora/applications/SConscript b/bsp/stm32/stm32l475-atk-pandora/applications/SConscript index bfa9a40db9..2d88e1d248 100644 --- a/bsp/stm32/stm32l475-atk-pandora/applications/SConscript +++ b/bsp/stm32/stm32l475-atk-pandora/applications/SConscript @@ -8,9 +8,6 @@ src = ['main.c'] if GetDepend(['PKG_USING_NRF24L01']): src += ['nrf24l01_init.c'] -if GetDepend(['RT_USING_ARDUINO']): - src += ['arduino_main.cpp'] - CPPPATH = [cwd] group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/stm32/stm32l475-atk-pandora/board/ports/arduino/SConscript b/bsp/stm32/stm32l475-atk-pandora/applications/arduino/SConscript similarity index 64% rename from bsp/stm32/stm32l475-atk-pandora/board/ports/arduino/SConscript rename to bsp/stm32/stm32l475-atk-pandora/applications/arduino/SConscript index 2c5b27d9d2..b3d32f3717 100644 --- a/bsp/stm32/stm32l475-atk-pandora/board/ports/arduino/SConscript +++ b/bsp/stm32/stm32l475-atk-pandora/applications/arduino/SConscript @@ -6,4 +6,7 @@ inc = [cwd] group = DefineGroup('Arduino', src, depend = ['RT_USING_ARDUINO'], CPPPATH = inc) +src = ['arduino_main.cpp'] +group = DefineGroup('Applications', src, depend = ['RT_USING_ARDUINO']) + Return('group') diff --git a/bsp/stm32/stm32l475-atk-pandora/applications/arduino_main.cpp b/bsp/stm32/stm32l475-atk-pandora/applications/arduino/arduino_main.cpp similarity index 100% rename from bsp/stm32/stm32l475-atk-pandora/applications/arduino_main.cpp rename to bsp/stm32/stm32l475-atk-pandora/applications/arduino/arduino_main.cpp diff --git a/bsp/stm32/stm32l475-atk-pandora/board/ports/arduino/arduino_pinout.c b/bsp/stm32/stm32l475-atk-pandora/applications/arduino/arduino_pinout.c similarity index 100% rename from bsp/stm32/stm32l475-atk-pandora/board/ports/arduino/arduino_pinout.c rename to bsp/stm32/stm32l475-atk-pandora/applications/arduino/arduino_pinout.c diff --git a/bsp/stm32/stm32l475-atk-pandora/board/ports/arduino/arduino_pinout.h b/bsp/stm32/stm32l475-atk-pandora/applications/arduino/arduino_pinout.h similarity index 100% rename from bsp/stm32/stm32l475-atk-pandora/board/ports/arduino/arduino_pinout.h rename to bsp/stm32/stm32l475-atk-pandora/applications/arduino/arduino_pinout.h