修改I2C0_BUS_CONFIG定义错误

修改drv_soft_i2c.h中I2C0_BUS_CONFIG定义错误问题。
This commit is contained in:
xiaoxiaolisunny 2022-11-08 12:50:25 +08:00 committed by Man, Jianting (Meco)
parent 1831661c4a
commit 00d80e17c5
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ struct gd32_i2c
}; };
#ifdef BSP_USING_I2C0 #ifdef BSP_USING_I2C0
#define I2C4_BUS_CONFIG \ #define I2C0_BUS_CONFIG \
{ \ { \
.scl = BSP_I2C0_SCL_PIN, \ .scl = BSP_I2C0_SCL_PIN, \
.sda = BSP_I2C0_SDA_PIN, \ .sda = BSP_I2C0_SDA_PIN, \