Ubiquitous/RT_Thread/:update K210 bsp base on https://github.com/kendryte/K210-Micropython-OpenMV

Fixed an issue where LCD and RW007 could not be used at the same time
This commit is contained in:
chunyexixiaoyu
2021-10-14 11:16:11 +08:00
parent 0eee31179c
commit a184611226
20 changed files with 3065 additions and 805 deletions
@@ -5,28 +5,26 @@ from building import *
cwd = GetCurrentDir()
drv_path = cwd+"/../../../rt-thread/bsp/k210/driver/"
src = [
drv_path + 'board.c',
drv_path + 'heap.c',
'board.c',
'heap.c',
drv_path + 'drv_uart.c',
drv_path + 'drv_interrupt.c',
'drv_io_config.c'
'drv_interrupt.c',
'drv_io_config.c',
'dmalock.c'
]
CPPPATH = [cwd,drv_path]
if GetDepend('RT_USING_PIN'):
src += [drv_path + 'drv_gpio.c']
src += ['drv_gpio.c']
if GetDepend('RT_USING_HWTIMER'):
src += [drv_path + 'drv_hw_timer.c']
if GetDepend('RT_USING_CPUTIME'):
src += [drv_path + 'drv_cputime.c']
if GetDepend('RT_USING_I2C'):
src += [drv_path + 'drv_i2c.c']
if GetDepend('RT_USING_SPI'):
src += [drv_path + 'drv_spi.c']
src += ['drv_spi.c']
if GetDepend('RT_USING_PWM'):
src += [drv_path + 'drv_pwm.c']
@@ -42,6 +40,7 @@ if GetDepend('BSP_USING_DVP'):
if GetDepend('BSP_USING_LCD'):
src += ['drv_lcd.c']
src += ['drv_mpylcd.c']
if GetDepend('PKG_USING_RW007'):
src += ['rw007_port.c']