We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20dc054 commit 44278c2Copy full SHA for 44278c2
bsp/bouffalo_lab/libraries/rt_drivers/drv_i2c.c
100755
100644
@@ -99,7 +99,7 @@ int rt_hw_i2c_init(void)
99
bflb_gpio_init(gpio, I2C0_GPIO_SCL, GPIO_FUNC_I2C0 | GPIO_ALTERNATE | GPIO_PULLUP | GPIO_SMT_EN | GPIO_DRV_1);
100
/* I2C0_SDA */
101
bflb_gpio_init(gpio, I2C0_GPIO_SDA, GPIO_FUNC_I2C0 | GPIO_ALTERNATE | GPIO_PULLUP | GPIO_SMT_EN | GPIO_DRV_1);
102
-
+
103
/* init i2c bus device */
104
rt_mutex_init(&i2c_bus0.lock, "i2c0_mutex", RT_IPC_FLAG_PRIO);
105
@@ -172,4 +172,4 @@ int rt_hw_i2c_init(void)
172
}
173
INIT_BOARD_EXPORT(rt_hw_i2c_init);
174
175
-#endif /* BSP_USING_I2C */
+#endif /* BSP_USING_I2C */
0 commit comments