MCPcopy Create free account
hub / github.com/FastLED/FastLED / begin

Method begin

src/platforms/arm/rp/watchdog_rp.impl.hpp:67–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void Watchdog::begin(fl::u32 timeout_ms) FL_NOEXCEPT {
68 if (timeout_ms == 0) timeout_ms = 1000;
69 if (timeout_ms > FL_WATCHDOG_MAX_TIMEOUT_MS) timeout_ms = FL_WATCHDOG_MAX_TIMEOUT_MS;
70 // Second arg `pause_on_debug` defaults to true — useful in dev so a
71 // debugger session doesn't reset the chip during a breakpoint.
72 watchdog_enable(timeout_ms, true);
73 platforms::rpWatchdogState().armed = true;
74}
75
76void Watchdog::feed() FL_NOEXCEPT {
77 watchdog_update();

Callers 2

beginFunction · 0.45
Arduino_I2S_AudioClass · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected