mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-28 16:14:20 +08:00
7bcce9e87fa987d4bb88d48d3f7d0aca58963e74
This is a simple work around to the current device stack design. A ref_count could let different modules to open/close the same device independently without interfere others in some degree. But there is still some data shared between the modules, like flag, open_flag and user_data. Moreover, it won't yield an error if A open a device, and B read from it before open it in B. Maybe alloc a new handle in rt_device_open will be the ultimate solution. But that is much bigger change and we may leave it to future development.
…
…
…
Description
RT-Thread is an open source IoT Real-Time Operating System (RTOS).
Readme
Apache-2.0
1.6 GiB
Languages
C
96.8%
Assembly
1.5%
Python
0.9%
Linker Script
0.7%
