summaryrefslogtreecommitdiff
path: root/tmk_core/common/progmem.h
diff options
context:
space:
mode:
Diffstat (limited to 'tmk_core/common/progmem.h')
-rw-r--r--tmk_core/common/progmem.h12
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 0000000000..199b1bedfe
--- /dev/null
+++ b/tmk_core/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