diff options
Diffstat (limited to 'tmk_core/common/progmem.h')
-rw-r--r-- | tmk_core/common/progmem.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tmk_core/common/progmem.h b/tmk_core/common/progmem.h new file mode 100644 index 000000000..199b1bedf --- /dev/null +++ b/tmk_core/common/progmem.h | |||
@@ -0,0 +1,12 @@ | |||
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 | # define pgm_read_word(p) *(p) | ||
10 | #endif | ||
11 | |||
12 | #endif | ||