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

Function sys_device_init

components/lwp/lwp_syscall.c:4844–4847  ·  view source on GitHub ↗

* @brief Initializes a device. * * This system call initializes the specified device, preparing it for use. Device initialization * typically involves setting up necessary hardware configurations, registering device drivers, * and ensuring that the device is in a ready state for further operations. This function should * be called before interacting with the device. * * @param[in] dev A po

Source from the content-addressed store, hash-verified

4842 * may result in unpredictable behavior.
4843 */
4844sysret_t sys_device_init(rt_device_t dev)
4845{
4846 return rt_device_init(dev);
4847}
4848
4849/**
4850 * @brief Registers a device with the system.

Callers

nothing calls this directly

Calls 1

rt_device_initFunction · 0.85

Tested by

no test coverage detected