Swatantra-66 commented on PR #21052:
URL: https://github.com/apache/nuttx/pull/21052#issuecomment-6473854970

   the testing listed in the description was build/compile verification 
(nucleo-h743zi:capture and nucleo-h563zi:capture built cleanly on WSL2), as I 
do not have physical STM32H7/H5 boards with a pulse generator setup
   
   The change implements the missing .getedges callback (which previously was 
NULL, returning -ENOTTY and hitting DEBUGASSERT(lower[i]->ops->getedges != 
NULL) in capture.c as reported in #16828)
   It increments an internal counter (priv->edges++) inside the existing 
interrupt handler where captured edges are already serviced.
   Returns priv->edges atomically under a critical section in stm32_getedges().
   The logic is straightforward software accounting matching the upper-half 
expectations in drivers/timers/capture.c
   


-- 
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