xiaoxiang781216 commented on PR #11428:
URL: https://github.com/apache/nuttx/pull/11428#issuecomment-2536694326

   Yes, I also have the same feeling, both RMT and 
PNCT(https://github.com/apache/nuttx/pull/15079) don't define the clear 
contract between the application and driver. The general driver framework 
should:
   
   1. Define IOCTL and struct, which all driver implementations must follow
   2. Define the behavior of open/close/read/write/poll
   3. Provide a common upperhalf to simplify the implementation
   
   both definitions should be general enough to support the different hardware. 
The user can't write a general application to control the hardware come from 
different provider if these key elements doesn't catch in the design. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to