mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-11-16 04:24:33 +00:00
Requirement: The BSP for the k230 platform in the RT-Thread repository
does not yet have an I2C driver.
Solution: Provide I2C driver for the k230 platform in the RT-Thread
repository.
1. support i2c master mode
Signed-off-by: Ze-Hou <yingkezhou@qq.com>
38 lines
799 B
Python
38 lines
799 B
Python
from building import *
|
|
|
|
src = []
|
|
|
|
if GetDepend('BSP_UTEST_DRIVERS'):
|
|
src += ['test_gpio.c']
|
|
src += ['test_gpio_irq.c']
|
|
|
|
if GetDepend('BSP_USING_ADC'):
|
|
src += ['test_adc.c']
|
|
|
|
if GetDepend('BSP_USING_TIMERS'):
|
|
src += ['test_timer.c']
|
|
|
|
if GetDepend('BSP_USING_WDT'):
|
|
src += ['test_wdt.c']
|
|
|
|
if GetDepend('BSP_USING_PWM'):
|
|
src += ['test_pwm.c']
|
|
|
|
if GetDepend('BSP_USING_PDMA'):
|
|
src += ['test_pdma.c']
|
|
|
|
if GetDepend('BSP_USING_TS'):
|
|
src += ['test_ts.c']
|
|
|
|
if GetDepend('BSP_USING_UART'):
|
|
src += ['test_uart.c']
|
|
|
|
if GetDepend('BSP_USING_RTC'):
|
|
src += ['test_rtc.c']
|
|
|
|
if GetDepend('BSP_USING_I2C'):
|
|
src += ['test_i2c.c']
|
|
|
|
group = DefineGroup('utestcases', src, depend = [''])
|
|
|
|
Return('group') |