rt-thread/bsp/raspberry-pico/drivers/SConscript

25 lines
467 B
Python
Raw Normal View History

2021-01-28 19:59:31 +08:00
from building import *
cwd = GetCurrentDir()
src = []
2021-01-28 19:59:31 +08:00
CPPPATH = [cwd]
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']
if GetDepend('BSP_USING_SOFT_SPI'):
src += ['drv_soft_spi.c']
2023-06-05 15:52:31 +08:00
if GetDepend('BSP_USING_ADC'):
src += ['drv_adc.c']
2021-01-28 19:59:31 +08:00
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group')