Skip to content

Watchdog intterupt mode #552

Open
@JonasFocke01

Description

@JonasFocke01

Hello,

i have a intentional deadlock, that is resolved by the watchdog of the arduino. The deadlock occurs, because i want my arduino to restart, if my host computer crashes (happens quite frequently...). The watchtog restarts the board, but i also need to keep some variables accross this restart. I could resolve my issue, if i could set the watchdog to interrupt-mode, as that would tell it to not restart the board and give me time to do something about it, but i have not found a way to do that.
Is this possible with this crate?
If yes, it would be very cool, if you could hint me in the right direction!
If not, see this as a friendly feature request.

Regards, Jonas

Edit: This is the atmega doc on setting watchdog to interrupt mode (page 65)

Metadata

Metadata

Assignees

No one assigned

    Labels

    hal-apiAPI design for the different components of avr-halhal-genericRelated to MCU generic parts of avr-halhelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions