esp32: fix WDT reset on the MCH2022 badge

Этот коммит содержится в:
Ayke van Laethem 2022-07-25 23:12:13 +02:00 коммит произвёл Ron Evans
родитель 4f729c323d
коммит 4aec3d04f9

Просмотреть файл

@ -13,6 +13,10 @@ import (
// set. // set.
//export main //export main
func main() { func main() {
// Disable the protection on the watchdog timer (needed when started from
// the bootloader).
esp.RTCCNTL.WDTWPROTECT.Set(0x050D83AA1)
// Disable both watchdog timers that are enabled by default on startup. // Disable both watchdog timers that are enabled by default on startup.
// Note that these watchdogs can be protected, but the ROM bootloader // Note that these watchdogs can be protected, but the ROM bootloader
// doesn't seem to protect them. // doesn't seem to protect them.