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

Function tc_reset

src/platforms/arm/samd/isr_samd.hpp:268–274  ·  view source on GitHub ↗

Reset timer

Source from the content-addressed store, hash-verified

266
267// Reset timer
268static void tc_reset(Tc* tc) FL_NOEXCEPT {
269 tc->COUNT16.CTRLA.reg = TC_CTRLA_SWRST;
270 tc_wait_sync(tc);
271 while (tc->COUNT16.CTRLA.bit.SWRST) {
272 // Wait for reset to complete
273 }
274}
275
276// =============================================================================
277// Timer ISR Handlers

Callers 1

attach_timer_handlerFunction · 0.85

Calls 1

tc_wait_syncFunction · 0.85

Tested by

no test coverage detected