2023-11-16 14:04:21 +08:00
|
|
|
Import('RTT_ROOT')
|
|
|
|
Import('rtconfig')
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
|
|
|
|
# add the general drivers.
|
|
|
|
src = []
|
|
|
|
|
2023-12-09 23:46:12 +08:00
|
|
|
if GetDepend(['BSP_USING_PIN']):
|
2023-11-16 14:04:21 +08:00
|
|
|
src += ['drv_gpio.c']
|
|
|
|
|
2023-12-09 23:46:12 +08:00
|
|
|
if GetDepend(['BSP_USING_UART']):
|
|
|
|
src += ['drv_uart.c']
|
2023-11-16 14:04:21 +08:00
|
|
|
|
2023-12-09 23:46:12 +08:00
|
|
|
if GetDepend(['BSP_USING_SOFT_I2C']):
|
|
|
|
src += ['drv_soft_i2c.c']
|
|
|
|
|
|
|
|
path = [cwd]
|
2023-11-16 14:04:21 +08:00
|
|
|
|
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
|
|
|
|
|
|
|
|
Return('group')
|