FastLED 3.9.15
|
#define FL_ALIGN_PROGMEM __attribute__ ((aligned (4))) |
Helps to force 4-byte alignment for platforms with unaligned access.
On some platforms, most notably ARM M0, unaligned access to 'PROGMEM' for multibyte values (e.g. read dword) is not allowed and causes a crash. This macro can help force 4-byte alignment as needed. The FastLED gradient palette code uses 'read dword', and now uses this macro to make sure that gradient palettes are 4-byte aligned.
Definition at line 98 of file fastled_progmem.h.