tmedicci opened a new pull request, #10755:
URL: https://github.com/apache/nuttx/pull/10755

   ## Summary
   
   * drivers/timers: Add a new ioctl method to set a callback directly
   
   In order to be able to set a callback to be called when the timer expires, 
add the `TCIOC_SETCALLBACK` ioctl. This enables to set a callback that would be 
called directly instead of using the already existing `TCIOC_NOTIFICATION` 
(which relies on signals).
   
   The implementation of such ioctl is up to each lower-half driver in order to 
avoid misusage. Each arch/chip may or not implement the handler for it using 
its own underlying ioctl interface.
   
   ## Impact
   
   Allows setting a direct callback for the timer and bypassing the signal 
notification subsystem. No impact for current implementations.
   
   ## Testing
   
   Internal CI testing + ESP32-S3-DevKitC-1 board.


-- 
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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to