rt-thread/bsp/lpc55sxx/Libraries/drivers/SConscript

51 lines
944 B
Python
Raw Normal View History

2019-10-24 17:56:09 +08:00
from building import *
cwd = GetCurrentDir()
src = []
if GetDepend('BSP_USING_PIN'):
src += ['drv_pin.c']
if GetDepend('BSP_USING_LED'):
src += ['drv_led.c']
2023-01-09 10:14:23 +08:00
2019-10-24 17:56:09 +08:00
if GetDepend('BSP_USING_KEY'):
src += ['drv_key.c']
if GetDepend('BSP_USING_UART'):
src += ['drv_uart.c']
if GetDepend('BSP_USING_RTC'):
src += ['drv_rtc.c']
if GetDepend('BSP_USING_SPI'):
src += ['drv_spi.c']
if GetDepend('BSP_USING_SDIO'):
src += ['drv_sd.c']
if GetDepend('BSP_USING_I2C'):
src += ['drv_i2c.c']
if GetDepend('BSP_USING_MMA8562I2C'):
src += ['drv_mma8562.c']
if GetDepend('BSP_USING_ADC'):
2023-01-09 10:14:23 +08:00
src += ['drv_adc.c']
2019-10-24 17:56:09 +08:00
if GetDepend('BSP_USING_HWTIMER'):
2023-01-09 10:14:23 +08:00
src += ['drv_hwtimer.c']
2019-10-24 17:56:09 +08:00
if GetDepend('BSP_USING_WDT'):
2023-01-09 10:14:23 +08:00
src += ['drv_wdt.c']
2019-10-24 17:56:09 +08:00
if GetDepend('BSP_USING_PWM'):
src += ['drv_pwm.c']
path = [cwd,cwd + '/config']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
Return('group')