diff options
Diffstat (limited to 'common/progmem.h')
-rw-r--r-- | common/progmem.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/common/progmem.h b/common/progmem.h new file mode 100644 index 0000000000..199b1bedfe --- /dev/null +++ b/common/progmem.h @@ -0,0 +1,12 @@ +#ifndef PROGMEM_H +#define PROGMEM_H 1 + +#if defined(__AVR__) +# include <avr/pgmspace.h> +#elif defined(__arm__) +# define PROGMEM +# define pgm_read_byte(p) *(p) +# define pgm_read_word(p) *(p) +#endif + +#endif |