diff options
Diffstat (limited to 'common/progmem.h')
| -rw-r--r-- | common/progmem.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/common/progmem.h b/common/progmem.h new file mode 100644 index 000000000..09aeb8b7c --- /dev/null +++ b/common/progmem.h | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | #ifndef PROGMEM_H | ||
| 2 | #define PROGMEM_H 1 | ||
| 3 | |||
| 4 | #if defined(__AVR__) | ||
| 5 | # include <avr/pgmspace.h> | ||
| 6 | #elif defined(__arm__) | ||
| 7 | # define PROGMEM | ||
| 8 | # define pgm_read_byte(p) *(p) | ||
| 9 | #endif | ||
| 10 | |||
| 11 | #endif | ||
