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

Function __clock_cycles

src/platforms/esp/8266/clockless_esp8266.h:22–26  ·  view source on GitHub ↗

Info on reading cycle counter from https://github.com/kbeckmann/nodemcu-firmware/blob/ws2812-dual/app/modules/ws2812.c

Source from the content-addressed store, hash-verified

20
21// Info on reading cycle counter from https://github.com/kbeckmann/nodemcu-firmware/blob/ws2812-dual/app/modules/ws2812.c
22__attribute__ ((always_inline)) inline static u32 __clock_cycles() {
23 u32 cyc;
24 __asm__ __volatile__ ("rsr %0,ccount":"=a" (cyc)) FL_NOEXCEPT;
25 return cyc;
26}
27
28#define FL_CLOCKLESS_CONTROLLER_DEFINED 1
29

Callers 4

writeBitsMethod · 0.70
ClocklessControllerClass · 0.70
writeBitsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected