* @brief Registers a device with the system. * * This system call registers a device with the system, making it available for interaction * by the operating system or other components. Registration typically involves associating * the device with a name and setting up the necessary flags for the device's behavior. * * @param[in] dev A pointer to the device structure that represents the d
| 4871 | * Passing invalid `dev` or `flags` may result in unexpected behavior or failure of device registration. |
| 4872 | */ |
| 4873 | sysret_t sys_device_register(rt_device_t dev, const char *name, rt_uint16_t flags) |
| 4874 | { |
| 4875 | return rt_device_register(dev, name, flags); |
| 4876 | } |
| 4877 | |
| 4878 | /** |
| 4879 | * @brief Controls a device by sending a command. |
nothing calls this directly
no test coverage detected