* @brief Opens a device for use. * * This system call opens the specified device, making it ready for interaction with the system * or other components. The device must have been previously registered and initialized. * The `oflag` parameter specifies the open mode, which may determine how the device is accessed * (e.g., read, write, or exclusive access). * * @param[in] dev A pointer to
| 4956 | * in errors or undefined behavior. |
| 4957 | */ |
| 4958 | sysret_t sys_device_open(rt_device_t dev, rt_uint16_t oflag) |
| 4959 | { |
| 4960 | return rt_device_open(dev, oflag); |
| 4961 | } |
| 4962 | |
| 4963 | /** |
| 4964 | * @brief Closes an open device. |
nothing calls this directly
no test coverage detected