MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / ls1c_set_sda

Function ls1c_set_sda

bsp/loongson/ls1cdev/drivers/drv_i2c.c:42–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40
41
42static void ls1c_set_sda(void *data, rt_int32_t state)
43{
44#ifdef LS1C_SET_GPIO_MODE
45 gpio_init(LS1C_I2C_SDA, gpio_mode_output);
46 ls1c_udelay(5);
47#endif
48 gpio_set(LS1C_I2C_SDA, state);
49 return ;
50}
51
52
53static void ls1c_set_scl(void *data, rt_int32_t state)

Callers

nothing calls this directly

Calls 3

ls1c_udelayFunction · 0.85
gpio_initFunction · 0.50
gpio_setFunction · 0.50

Tested by

no test coverage detected