[stm32l475] 修正port/Arduino的宏定义

This commit is contained in:
Meco Man 2021-12-13 00:50:41 -05:00
parent 01a6563249
commit d83bea2ba3
2 changed files with 3 additions and 7 deletions

View File

@ -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

View File

@ -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')