1#ifndef __INC_FL_PROGMEM_H
2#define __INC_FL_PROGMEM_H
25#define FASTLED_USE_PROGMEM 1
34#if (FASTLED_USE_PROGMEM == 1) || defined(FASTLED_DOXYGEN)
35#ifndef FASTLED_INCLUDE_PGMSPACE
36#define FASTLED_INCLUDE_PGMSPACE 1
39#if FASTLED_INCLUDE_PGMSPACE == 1
40#include <avr/pgmspace.h>
44#define FL_PROGMEM PROGMEM
57#define FL_PGM_READ_BYTE_NEAR(x) (pgm_read_byte_near(x))
59#define FL_PGM_READ_WORD_NEAR(x) (pgm_read_word_near(x))
61#define FL_PGM_READ_DWORD_NEAR(x) (pgm_read_dword_near(x))
66#if __GNUC__ < 4 || (__GNUC__ == 4 && (__GNUC_MINOR__ < 6))
70#define PROGMEM __attribute__((section(".progmem.data")))
81#define FL_PGM_READ_BYTE_NEAR(x) (*((const uint8_t*)(x)))
82#define FL_PGM_READ_WORD_NEAR(x) (*((const uint16_t*)(x)))
83#define FL_PGM_READ_DWORD_NEAR(x) (*((const uint32_t*)(x)))
97#if defined(FASTLED_ARM) || defined(ESP32) || defined(ESP8266) || defined(FASTLED_DOXYGEN)
98#define FL_ALIGN_PROGMEM __attribute__ ((aligned (4)))
100#define FL_ALIGN_PROGMEM
Implements the FastLED namespace macros.