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

Function __clock_cycles

src/platforms/esp/32/core/clock_cycles.h:58–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56
57
58__attribute__ ((always_inline)) inline static fl::u32 __clock_cycles() {
59 fl::u32 cyc;
60#ifdef FASTLED_XTENSA
61 __asm__ __volatile__ ("rsr %0,ccount":"=a" (cyc)) FL_NOEXCEPT;
62#else
63 cyc = __cpu_hal_get_cycle_count();
64#endif
65 return cyc;
66}

Callers 4

delaycycles.hFile · 0.70
writeBitsFunction · 0.50
fillNextBufferMethod · 0.50

Calls 1

Tested by

no test coverage detected