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

Function rt_i2c_device_register

components/drivers/i2c/dev_i2c_bus.c:84–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84rt_err_t rt_i2c_device_register(struct rt_i2c_client *client)
85{
86 RT_ASSERT(client != RT_NULL);
87
88 return rt_bus_add_device(&i2c_bus, &client->parent);
89}
90
91static rt_bool_t i2c_match(rt_driver_t drv, rt_device_t dev)
92{

Callers 1

i2c_bus_scan_clientsFunction · 0.85

Calls 1

rt_bus_add_deviceFunction · 0.85

Tested by

no test coverage detected