Searched refs:sda_io (Results 1 – 1 of 1) sorted by relevance
/hal_espressif-3.6.0/components/driver/ |
D | i2c.c | 565 int sda_io = i2c_context[i2c_num].sda_io_num; in i2c_master_clear_bus() local 567 gpio_set_direction(sda_io, GPIO_MODE_INPUT_OUTPUT_OD); in i2c_master_clear_bus() 574 gpio_set_level(sda_io, 1); in i2c_master_clear_bus() 576 while (!gpio_get_level(sda_io) && (i++ < I2C_CLR_BUS_SCL_NUM)) { in i2c_master_clear_bus() 582 gpio_set_level(sda_io, 0); // setup for STOP in i2c_master_clear_bus() 585 gpio_set_level(sda_io, 1); // STOP, SDA low -> high while SCL is HIGH in i2c_master_clear_bus() 586 i2c_set_pin(i2c_num, sda_io, scl_io, 1, 1, I2C_MODE_MASTER); in i2c_master_clear_bus()
|