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.
24 lines
410 B
24 lines
410 B
3 months ago
|
Import('RTT_ROOT')
|
||
|
Import('rtconfig')
|
||
|
from building import *
|
||
|
|
||
|
cwd = GetCurrentDir()
|
||
|
|
||
|
# add the general drivers.
|
||
|
src = []
|
||
|
|
||
|
if GetDepend(['BSP_USING_PIN']):
|
||
|
src += ['drv_gpio.c']
|
||
|
|
||
|
if GetDepend(['BSP_USING_UART']):
|
||
|
src += ['drv_uart.c']
|
||
|
|
||
|
if GetDepend(['BSP_USING_SOFT_I2C']):
|
||
|
src += ['drv_soft_i2c.c']
|
||
|
|
||
|
path = [cwd]
|
||
|
|
||
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
|
||
|
|
||
|
Return('group')
|