From d83bea2ba38e6ad066e2dba7569b51645aa77d6c Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Mon, 13 Dec 2021 00:50:41 -0500 Subject: [PATCH] =?UTF-8?q?[stm32l475]=20=E4=BF=AE=E6=AD=A3port/Arduino?= =?UTF-8?q?=E7=9A=84=E5=AE=8F=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/stm32/stm32l475-atk-pandora/board/Kconfig | 5 ++--- .../stm32l475-atk-pandora/board/ports/arduino/SConscript | 5 +---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/bsp/stm32/stm32l475-atk-pandora/board/Kconfig b/bsp/stm32/stm32l475-atk-pandora/board/Kconfig index 67571d48fa..627ef48251 100644 --- a/bsp/stm32/stm32l475-atk-pandora/board/Kconfig +++ b/bsp/stm32/stm32l475-atk-pandora/board/Kconfig @@ -15,10 +15,9 @@ menu "Onboard Peripheral Drivers" select BSP_USING_UART1 default y - config BSP_USING_ARDUINO_UNO - bool "Support Arduino UNO" + config BSP_USING_ARDUINO + bool "Support Arduino" select RT_USING_ARDUINO - select RT_USING_ARDUINO_UNO_LAYOUT select BSP_USING_PWM select BSP_USING_PWM1 select BSP_USING_PWM1_CH1 diff --git a/bsp/stm32/stm32l475-atk-pandora/board/ports/arduino/SConscript b/bsp/stm32/stm32l475-atk-pandora/board/ports/arduino/SConscript index f8f52e280d..69deb86a15 100644 --- a/bsp/stm32/stm32l475-atk-pandora/board/ports/arduino/SConscript +++ b/bsp/stm32/stm32l475-atk-pandora/board/ports/arduino/SConscript @@ -1,12 +1,9 @@ from building import * cwd = GetCurrentDir() -src = [] +src = ['arduino_layout.c'] inc = [cwd] -if GetDepend('RT_USING_ARDUINO_UNO_LAYOUT'): - src += ['arduino_layout.c'] - group = DefineGroup('Arduino', src, depend = ['RT_USING_ARDUINO'], CPPPATH = inc) Return('group')