esp32: fix WDT reset on the MCH2022 badge
Этот коммит содержится в:
родитель
4f729c323d
коммит
4aec3d04f9
1 изменённых файлов: 4 добавлений и 0 удалений
|
@ -13,6 +13,10 @@ import (
|
|||
// set.
|
||||
//export 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.
|
||||
// Note that these watchdogs can be protected, but the ROM bootloader
|
||||
// doesn't seem to protect them.
|
||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче