samd51,rp2040,nrf528xx,stm32: implement watchdog

This commit is contained in:
Kenneth Bell
2023-08-06 22:15:47 +01:00
committed by Ron Evans
parent 756cdf44ed
commit f4375d0452
8 changed files with 291 additions and 12 deletions
+1 -1
View File
@@ -182,7 +182,7 @@ func (clk *clock) configure(src, auxsrc, srcFreq, freq uint32) {
// Must be called before any other clock function.
func (clks *clocksType) init() {
// Start the watchdog tick
watchdog.startTick(xoscFreq)
Watchdog.startTick(xoscFreq)
// Disable resus that may be enabled from previous software
clks.resus.ctrl.Set(0)