rt-thread/bsp/avr32/drivers/SConscript
Raman fe11e85eea
AVR32: Software I2C driver: Initial working commit (#8324)
implemented the software I2C drivers for the AVR32 target.
2023-12-09 23:46:12 +08:00

24 lines
410 B
Python

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')