未验证 提交 90d56630 编写于 作者: H hg0720 提交者: GitHub

[bsp][ch32v307]修复了模拟iic的BUG (#6505)

上级 e443b564
......@@ -15,10 +15,10 @@ if GetDepend('SOC_RISCV_FAMILY_CH32'):
if GetDepend('BSP_USING_ADC'):
src += ['drv_adc.c']
if GetDepend(['BSP_USING_DAC']):
if GetDepend('BSP_USING_DAC'):
src += ['drv_dac.c']
if GetDepend(['BSP_USING_I2C_BITOPS']):
if GetDepend('BSP_USING_SOFT_I2C'):
src += ['drv_soft_i2c.c']
if GetDepend('BSP_USING_RTC'):
......
......@@ -11,7 +11,7 @@
#include <board.h>
#include "drv_soft_i2c.h"
#ifdef RT_USING_I2C
#ifdef BSP_USING_SOFT_I2C
//#define DRV_DEBUG
#define LOG_TAG "drv.i2c"
......
......@@ -89,14 +89,14 @@ menu "On-chip Peripheral Drivers"
default n
endif
menuconfig BSP_USING_I2C
menuconfig BSP_USING_SOFT_I2C
bool "Enable I2C Bus"
select RT_USING_I2C
select RT_USING_I2C_BITOPS
select RT_USING_PIN
default n
if BSP_USING_I2C
if BSP_USING_SOFT_I2C
config BSP_USING_I2C1
bool "Enable I2C1 Bus"
default n
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册