Add SPI driver

This commit is contained in:
ZYH
2019-03-18 16:58:16 +08:00
parent 1022cfd3a7
commit 29ae740490
7 changed files with 303 additions and 22 deletions
+1 -6
View File
@@ -7,15 +7,13 @@ src = Split('''
board.c
heap.c
drv_uart.c
drv_io_config.c
''')
CPPPATH = [cwd]
if GetDepend('BSP_USING_LCD'):
src += ['drv_lcd.c']
if GetDepend('RT_USING_PIN'):
src += ['drv_gpio.c']
if GetDepend('RT_USING_HWTIMER'):
src += ['drv_hw_timer.c']
@@ -31,9 +29,6 @@ if GetDepend('RT_USING_SPI'):
if GetDepend('RT_USING_PWM'):
src += ['drv_pwm.c']
if GetDepend('RT_USING_RTC'):
src += ['drv_rtc.c']
if GetDepend('RT_USING_WDT'):
src += ['drv_wdt.c']