Skip to main content
added 40 characters in body
Source Link
Juraj
  • 18.2k
  • 4
  • 30
  • 49

You can do an almost immediate full reset with watchdog by activating it 'on place'.

wdt_enable(WDTO_15MS); // resets the MCU after 15 milliseconds
while (true);

You can use millis() for timing the reset as any other timed function.

You can do an almost immediate full reset with watchdog by activating it 'on place'.

wdt_enable(WDTO_15MS);
while (true);

You can use millis() for timing the reset as any other timed function.

You can do an almost immediate full reset with watchdog by activating it 'on place'.

wdt_enable(WDTO_15MS); // resets the MCU after 15 milliseconds
while (true);

You can use millis() for timing the reset as any other timed function.

Source Link
Juraj
  • 18.2k
  • 4
  • 30
  • 49

You can do an almost immediate full reset with watchdog by activating it 'on place'.

wdt_enable(WDTO_15MS);
while (true);

You can use millis() for timing the reset as any other timed function.