SConscript 450 字节
Newer Older
M
Ming, Bai 已提交
1 2 3 4 5
Import('RTT_ROOT')
Import('rtconfig')
from building import *

cwd     = os.path.join(str(Dir('#')), 'drivers')
6

pangweishende's avatar
pangweishende 已提交
7 8 9 10 11 12 13
# add the general drivers.
src = Split("""
board.c
stm32f10x_it.c
usart.c
platform.c
""")
14

pangweishende's avatar
pangweishende 已提交
15 16 17 18 19 20
# add Ethernet drivers.
if GetDepend('RT_USING_LWIP'):
	src += ['stm32_eth.c']

if GetDepend('RT_USING_SPI'):
	src += ['rt_stm32f10x_spi.c'] 
21

M
Ming, Bai 已提交
22 23 24 25 26
CPPPATH = [cwd]

group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)

Return('group')