Module watchdog

Source
Expand description

WATCHDOG

Modules§

ctrl
Watchdog control
The rst_wdsel register determines which subsystems are reset when the watchdog is triggered.
The watchdog can be triggered in software.
load
Load the watchdog timer. The maximum setting is 0xffffff which corresponds to 0xffffff / 2 ticks before triggering a watchdog reset (see errata RP2040-E1).
reason
Logs the reason for the last reset. Both bits are zero for the case of a hardware reset.
scratch0
Scratch register. Information persists through soft reset of the chip.
scratch1
Scratch register. Information persists through soft reset of the chip.
scratch2
Scratch register. Information persists through soft reset of the chip.
scratch3
Scratch register. Information persists through soft reset of the chip.
scratch4
Scratch register. Information persists through soft reset of the chip.
scratch5
Scratch register. Information persists through soft reset of the chip.
scratch6
Scratch register. Information persists through soft reset of the chip.
scratch7
Scratch register. Information persists through soft reset of the chip.
tick
Controls the tick generator

Structs§

RegisterBlock
Register block

Type Aliases§

CTRL
CTRL (rw) register accessor: Watchdog control
The rst_wdsel register determines which subsystems are reset when the watchdog is triggered.
The watchdog can be triggered in software.
LOAD
LOAD (w) register accessor: Load the watchdog timer. The maximum setting is 0xffffff which corresponds to 0xffffff / 2 ticks before triggering a watchdog reset (see errata RP2040-E1).
REASON
REASON (r) register accessor: Logs the reason for the last reset. Both bits are zero for the case of a hardware reset.
SCRATCH0
SCRATCH0 (rw) register accessor: Scratch register. Information persists through soft reset of the chip.
SCRATCH1
SCRATCH1 (rw) register accessor: Scratch register. Information persists through soft reset of the chip.
SCRATCH2
SCRATCH2 (rw) register accessor: Scratch register. Information persists through soft reset of the chip.
SCRATCH3
SCRATCH3 (rw) register accessor: Scratch register. Information persists through soft reset of the chip.
SCRATCH4
SCRATCH4 (rw) register accessor: Scratch register. Information persists through soft reset of the chip.
SCRATCH5
SCRATCH5 (rw) register accessor: Scratch register. Information persists through soft reset of the chip.
SCRATCH6
SCRATCH6 (rw) register accessor: Scratch register. Information persists through soft reset of the chip.
SCRATCH7
SCRATCH7 (rw) register accessor: Scratch register. Information persists through soft reset of the chip.
TICK
TICK (rw) register accessor: Controls the tick generator