4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-16 19:03:47 +08:00
whj4674672 b8a6b1e38a add [BSP]stm32f107 Kconfig
add rt_console_set_devic,components,gpio,rtc
2018-08-17 22:43:55 +08:00

34 lines
589 B
Python

Import('RTT_ROOT')
Import('rtconfig')
from building import *
cwd = os.path.join(str(Dir('#')), 'drivers')
# add the general drivers.
src = Split("""
board.c
stm32f10x_it.c
usart.c
platform.c
""")
# add Ethernet drivers.
if GetDepend('RT_USING_LWIP'):
src += ['stm32_eth.c']
if GetDepend(['RT_USING_PIN']):
src += ['gpio.c']
# add Ethernet drivers.
if GetDepend('RT_USING_RTC'):
src += ['stm32f1_rtc.c']
if GetDepend('RT_USING_SPI'):
src += ['rt_stm32f10x_spi.c']
CPPPATH = [cwd]
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group')