Skip to content

Commit 5f1039b

Browse files
kupiakosrswarbrick
authored andcommitted
Correct the bit documented to lock the watchdog configuration
The programmer's guide is wrong here: you write 0 to lock the configuration. 1 indicates that writes are enabled. Signed-off-by: Alyssa Haroldsen <[email protected]>
1 parent 58394e8 commit 5f1039b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hw/ip/aon_timer/doc/programmers_guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
2. Program the desired wakeup pre-scaler value in [`WKUP_CTRL`](registers.md#wkup_ctrl).
77
3. Program the desired thresholds in [`WKUP_THOLD_LO`](registers.md#wkup_thold_lo), [`WKUP_THOLD_HI`](registers.md#wkup_thold_hi), [`WDOG_BARK_THOLD`](registers.md#wdog_bark_thold) and [`WDOG_BITE_THOLD`](registers.md#wdog_bite_thold).
88
4. Set the enable bit to 1 in the [`WKUP_CTRL`](registers.md#wkup_ctrl) / [`WDOG_CTRL`](registers.md#wdog_ctrl) registers.
9-
5. If desired, lock the watchdog configuration by writing 1 to the `regwen` bit in [`WDOG_REGWEN`](registers.md#wdog_regwen).
9+
5. If desired, lock the watchdog configuration by writing 0 to the `regwen` bit in [`WDOG_REGWEN`](registers.md#wdog_regwen).
1010

1111
## Watchdog pet
1212

0 commit comments

Comments
 (0)