* @brief Closes an open device. * * This system call closes an open device, releasing any resources or locks associated with it * and making it unavailable for further interaction until it is opened again. The device must * have been previously opened using `sys_device_open`. After calling this function, any further * attempts to interact with the device will result in an error unless the dev
| 4982 | * on an uninitialized or already closed device may result in undefined behavior or errors. |
| 4983 | */ |
| 4984 | sysret_t sys_device_close(rt_device_t dev) |
| 4985 | { |
| 4986 | return rt_device_close(dev); |
| 4987 | } |
| 4988 | |
| 4989 | /** |
| 4990 | * @brief Reads data from an open device. |
nothing calls this directly
no test coverage detected