Microchip® Advanced Software Framework

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Program memory

Program memory

Macros for locating and accessing data in program memory.

#define PROGMEM_LOCATION(type, name, loc)   type name __attribute__((section (#loc)))
 
#define PROGMEM_DECLARE(type, name)   const type name __attribute__((__progmem__))
 
#define PROGMEM_STRING(x)   PSTR(x)
 
#define PROGMEM_STRING_T   PGM_P
 
#define PROGMEM_T   const
 
#define PROGMEM_PTR_T   const *
 
#define PROGMEM_BYTE_ARRAY_T   uint8_t*
 
#define PROGMEM_WORD_ARRAY_T   uint16_t*
 
#define PROGMEM_READ_BYTE(x)   pgm_read_byte(x)
 
#define PROGMEM_READ_WORD(x)   pgm_read_word(x)
 

#define PROGMEM_BYTE_ARRAY_T   uint8_t*
#define PROGMEM_DECLARE (   type,
  name 
)    const type name __attribute__((__progmem__))
#define PROGMEM_LOCATION (   type,
  name,
  loc 
)    type name __attribute__((section (#loc)))
#define PROGMEM_READ_WORD (   x)    pgm_read_word(x)
#define PROGMEM_STRING (   x)    PSTR(x)
#define PROGMEM_STRING_T   PGM_P
#define PROGMEM_T   const
#define PROGMEM_WORD_ARRAY_T   uint16_t*