Zepp-Hanzj commented on PR #19433:
URL: https://github.com/apache/nuttx/pull/19433#issuecomment-4977657237

   The multi-watchdog issue has been addressed in the latest commit 
`1ab7e2fa3e`.
   
   Changes:
   
   - Removed the single global `g_watchdog_capture_upper` association.
   - Added an active capture-instance mapping keyed by the callback argument. 
It accepts either the upper-half pointer used by existing lower-halves or the 
lower-half pointer used by the updated STM32 WWDG lower-halves.
   - Updated STM32 M0, STM32 M3/M4, and STM32H7 WWDG interrupt paths to pass 
their own lower-half instance as the callback argument.
   - A legacy lower-half that supplies `arg == NULL` is only accepted when 
exactly one capture automonitor instance is active. If multiple NULL-context 
instances are active, the generic code does not select an arbitrary watchdog, 
preventing cross-instance keepalive corruption.
   - Removed the single-instance global-pointer behavior that could make one 
watchdog service another watchdog.
   
   The commit also includes a complete commit body, `Signed-off-by: hanzhijian 
<[email protected]>`, and `Assisted-by: OpenAI Codex`. Local simulator build 
and commit-message checks pass; CI has been restarted by the branch update.
   


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