From a312070ed08e95ecb9ce956f53624107b76dbbfa Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Sat, 23 Jan 2016 23:20:58 -0500 Subject: crediting source of cycle count code --- platforms/esp/8266/clockless_esp8266.h | 1 + 1 file changed, 1 insertion(+) diff --git a/platforms/esp/8266/clockless_esp8266.h b/platforms/esp/8266/clockless_esp8266.h index 6a7b52e2..99ac7d56 100644 --- a/platforms/esp/8266/clockless_esp8266.h +++ b/platforms/esp/8266/clockless_esp8266.h @@ -2,6 +2,7 @@ FASTLED_NAMESPACE_BEGIN +// Info on reading cycle counter from https://github.com/kbeckmann/nodemcu-firmware/blob/ws2812-dual/app/modules/ws2812.c __attribute__ ((always_inline)) inline static uint32_t __clock_cycles() { uint32_t cyc; __asm__ __volatile__ ("rsr %0,ccount":"=a" (cyc)); -- cgit v1.2.3