You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
278 B

  1. #ifndef PROGMEM_H
  2. #define PROGMEM_H 1
  3. #if defined(__AVR__)
  4. # include <avr/pgmspace.h>
  5. #else
  6. # define PROGMEM
  7. # define pgm_read_byte(p) *((unsigned char*)(p))
  8. # define pgm_read_word(p) *((uint16_t*)(p))
  9. # define pgm_read_dword(p) *((uint32_t*)(p))
  10. #endif
  11. #endif