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

Method begin

src/platforms/arm/samd/watchdog_samd.impl.hpp:50–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void Watchdog::begin(fl::u32 timeout_ms) FL_NOEXCEPT {
51 if (timeout_ms == 0) timeout_ms = 1000;
52 if (timeout_ms > FL_WATCHDOG_MAX_TIMEOUT_MS) timeout_ms = FL_WATCHDOG_MAX_TIMEOUT_MS;
53 ::Watchdog.enable(static_cast<int>(timeout_ms));
54 platforms::samdWatchdogState().armed = true;
55}
56
57void Watchdog::feed() FL_NOEXCEPT {
58 ::Watchdog.reset();

Callers 2

writeBitMethod · 0.45

Calls 1

enableMethod · 0.45

Tested by

no test coverage detected