Skip to content

Commit 067429e

Browse files
htynknCopilot
andauthored
Update bsp/gd32/arm/libraries/gd32_drivers/drv_hw_i2c.c
Co-authored-by: Copilot <[email protected]>
1 parent 059e0c5 commit 067429e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bsp/gd32/arm/libraries/gd32_drivers/drv_hw_i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ static const struct gd32_i2c_config i2c_configs[] =
1717
{
1818
#ifdef BSP_USING_HW_I2C0
1919
{
20-
.i2c_periph = I2C0, .device_name = "i2c0", .periph_clk = RCU_I2C0,.i2c_clock_hz = BSP_HW_I2C0_CLOCK_SPEED,
20+
.i2c_periph = I2C0, .device_name = "i2c0", .periph_clk = RCU_I2C0, .i2c_clock_hz = BSP_HW_I2C0_CLOCK_SPEED,
2121
.scl_clk = RCU_GPIOB, .scl_port = GPIOB, .scl_pin = GPIO_PIN_6, .scl_af = GPIO_AF_1,
2222
.sda_clk = RCU_GPIOB, .sda_port = GPIOB, .sda_pin = GPIO_PIN_7, .sda_af = GPIO_AF_1,
2323
.ev_irq_type = I2C0_EV_IRQn, .er_irq_type = I2C0_ER_IRQn,

0 commit comments

Comments
 (0)