Atmel Software Framework

progmem.h File Reference

Program memory access.

Copyright (c) 2014-2015 Atmel Corporation. All rights reserved.

#include <avr/pgmspace.h>

Macros

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)