9#include "platforms/is_platform.h"
29 m16 = (ms / (60000L)) & 0xFFFF;
37 h8 = (ms / (3600000L)) & 0xFF;
48 asm volatile(
" lsr %D[in] \n\t"
54 " mov %B[out],%C[in] \n\t"
55 " mov %A[out],%B[in] \n\t"
56 : [in]
"+r"(in32), [out]
"=r"(out16));
58 out16 = (in32 >> 10) & 0xFFFF;
FastLED chrono implementation - duration types for time measurements.
Defines static inlining macros for lib8tion functions.
LIB8STATIC u16 bseconds16() FL_NOEXCEPT
Returns the current time-since-boot in "binary seconds", which are actually 1024/1000 of a second lon...
LIB8STATIC u16 div1024_32_16(u32 in32) FL_NOEXCEPT
Helper routine to divide a 32-bit value by 1024, returning only the low 16 bits.
LIB8STATIC u16 minutes16() FL_NOEXCEPT
Return the current minutes since boot in a 16-bit value.
LIB8STATIC u16 seconds16() FL_NOEXCEPT
Return the current seconds since boot in a 16-bit value.
LIB8STATIC u8 hours8() FL_NOEXCEPT
Return the current hours since boot in an 8-bit value.
#define LIB8STATIC
Define a LIB8TION member function as static inline with an "unused" attribute.
fl::u32 millis()
Universal millisecond timer - returns milliseconds since system startup.
Base definition for an LED controller.