Info on reading cycle counter from https://github.com/kbeckmann/nodemcu-firmware/blob/ws2812-dual/app/modules/ws2812.c
| 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 |
no outgoing calls
no test coverage detected