You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
412 B
22 lines
412 B
# RT-Thread building script for component
|
|
|
|
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
src = Split('''
|
|
drv_uart.c
|
|
''')
|
|
CPPPATH = [cwd]
|
|
|
|
if GetDepend('RT_USING_PIN'):
|
|
src += ['drv_gpio.c']
|
|
|
|
if GetDepend('RT_USING_I2C'):
|
|
src += ['drv_i2c.c']
|
|
|
|
if GetDepend('RT_USING_DFS_ELMFAT'):
|
|
src += ['drv_sdcard.c']
|
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
Return('group')
|
|
|