Skip to content

[Under Verification] os/arch/arm/src/amebasmart: enable watchdog early interrupt#7142

Open
zhongnuo-tang wants to merge 1 commit intoSamsung:masterfrom
zhongnuo-tang:watchdog_early_timeout
Open

[Under Verification] os/arch/arm/src/amebasmart: enable watchdog early interrupt#7142
zhongnuo-tang wants to merge 1 commit intoSamsung:masterfrom
zhongnuo-tang:watchdog_early_timeout

Conversation

@zhongnuo-tang
Copy link
Contributor

  1. default early interrupt is set to100ms earlier than actual timeout during initialization.

1. default early interrupt is set to 100ms earlier than actual timeout during initialization.
@zhongnuo-tang
Copy link
Contributor Author

Test by starting a watchdog of timeout 5s and let it expire..
[2026-02-02 11:22:12.855] [WDT] enabled, timeout = 5 sec
[2026-02-02 11:22:17.562] wdog_irq_handler: ===Watchdog Early Interrupt===
[2026-02-02 11:22:17.853] ROM:[V1.1]

****************************************************************************/
static void wdog_irq_handler(void *id)
{
(void)id;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have one question.
What is id value means?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The id parameter is a user-defined context pointer passed to the watchdog interrupt handler.
we pass the watchdog lower-half private structure (priv) as id, which allows the handler to access per-device state if needed.
Currently, the early watchdog interrupt does not require any context, so the handler explicitly marks id as unused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants