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

Function bus_probe_driver

components/drivers/core/bus.c:215–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215static int bus_probe_driver(rt_device_t dev, void *drv_ptr)
216{
217 bus_probe(drv_ptr, dev);
218
219 /*
220 * The driver is shared by multiple devices,
221 * so we always return the '1' to enumerate all devices.
222 */
223 return 1;
224}
225
226static int bus_probe_device(rt_driver_t drv, void *dev_ptr)
227{

Callers

nothing calls this directly

Calls 1

bus_probeFunction · 0.85

Tested by

no test coverage detected