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

Function ls1c_set_scl

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

Source from the content-addressed store, hash-verified

51
52
53static void ls1c_set_scl(void *data, rt_int32_t state)
54{
55#ifdef LS1C_SET_GPIO_MODE
56 gpio_init(LS1C_I2C_SCL, gpio_mode_output);
57 ls1c_udelay(5);
58#endif
59 gpio_set(LS1C_I2C_SCL, state);
60 return ;
61}
62
63
64static rt_int32_t ls1c_get_sda(void *data)

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