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

Function tc_is_syncing

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

Check if timer is syncing (required for SAMD register writes)

Source from the content-addressed store, hash-verified

248
249// Check if timer is syncing (required for SAMD register writes)
250static bool tc_is_syncing(Tc* tc) FL_NOEXCEPT {
251#if defined(FL_IS_SAMD21)
252 return tc->COUNT16.STATUS.reg & TC_STATUS_SYNCBUSY;
253#elif defined(FL_IS_SAMD51)
254 return tc->COUNT16.SYNCBUSY.reg != 0;
255#else
256 return tc->COUNT16.STATUS.reg & TC_STATUS_SYNCBUSY;
257#endif
258}
259
260// Wait for timer sync
261static void tc_wait_sync(Tc* tc) FL_NOEXCEPT {

Callers 1

tc_wait_syncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected