83bd8614ab
* [bsp_lpc55sxx] i2c,rtc bsp update 1. add i2c DMA mode 2. enable rtc driver * [bsp_lpc55sxx] formmat code using formmating.py for format code * [lpc55sxx] remove .gitignore * [bsp][lpc55sxx] update bsp driver 1. update sdif driver, enable DFS, FAT32 2. update rtc driver
51 lines
946 B
Python
51 lines
946 B
Python
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = []
|
|
|
|
if GetDepend('BSP_USING_PIN'):
|
|
src += ['drv_pin.c']
|
|
|
|
if GetDepend('BSP_USING_LED'):
|
|
src += ['drv_led.c']
|
|
|
|
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_sdif.c']
|
|
|
|
if GetDepend('BSP_USING_I2C'):
|
|
src += ['drv_i2c.c']
|
|
|
|
if GetDepend('BSP_USING_MMA8562I2C'):
|
|
src += ['drv_mma8562.c']
|
|
|
|
if GetDepend('BSP_USING_ADC'):
|
|
src += ['drv_adc.c']
|
|
|
|
if GetDepend('BSP_USING_HWTIMER'):
|
|
src += ['drv_hwtimer.c']
|
|
|
|
if GetDepend('BSP_USING_WDT'):
|
|
src += ['drv_wdt.c']
|
|
|
|
if GetDepend('BSP_USING_PWM'):
|
|
src += ['drv_pwm.c']
|
|
|
|
path = [cwd,cwd + '/config']
|
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
|
|
|
|
Return('group')
|