mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 18:53:29 +00:00
samd51,rp2040,nrf528xx,stm32: implement watchdog
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user