esp32:watchdog
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| esp32:watchdog [2022/04/25 19:59] – aistis | esp32:watchdog [2022/04/25 20:10] (current) – aistis | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| esp32 watchdog | esp32 watchdog | ||
| - | < | + | < |
| #include " | #include " | ||
| void IRAM_ATTR resetModule() { | void IRAM_ATTR resetModule() { | ||
| ets_printf(" | ets_printf(" | ||
| - | esp_restart(); | + | esp_restart(); |
| + | } | ||
| + | //setup | ||
| timer = timerBegin(0, | timer = timerBegin(0, | ||
| timerAttachInterrupt(timer, | timerAttachInterrupt(timer, | ||
| Line 17: | Line 18: | ||
| | | ||
| | | ||
| + | // | ||
| timerWrite(timer, | timerWrite(timer, | ||
| - | < | + | </code> |
| + | |||
esp32/watchdog.1650905957.txt.gz · Last modified: by aistis
