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.
46 lines
886 B
46 lines
886 B
10 months ago
|
from building import *
|
||
|
|
||
|
cwd = GetCurrentDir()
|
||
|
src = []
|
||
|
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']
|
||
|
|
||
|
if GetDepend('BSP_USING_ADC'):
|
||
|
src += ['drv_adc.c']
|
||
|
|
||
|
if GetDepend('BSP_USING_WDT'):
|
||
|
src += ['drv_wdt.c']
|
||
|
|
||
|
if GetDepend('BSP_USING_SPI'):
|
||
|
src += ['drv_spi.c']
|
||
|
|
||
|
if GetDepend('BSP_USING_I2C'):
|
||
|
src += ['drv_i2c.c']
|
||
|
|
||
|
if GetDepend('BSP_USING_ON_CHIP_FLASH'):
|
||
|
src += ['drv_flash.c']
|
||
|
|
||
|
if GetDepend('BSP_USING_PWM'):
|
||
|
src += ['drv_pwm.c']
|
||
|
|
||
|
if GetDepend('BSP_USING_HWTIMER'):
|
||
|
src += ['drv_hwtimer.c']
|
||
|
|
||
|
if GetDepend('BSP_USING_RTC'):
|
||
|
src += ['drv_rtc.c']
|
||
|
|
||
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
||
|
|
||
|
Return('group')
|