aboutsummaryrefslogtreecommitdiffstats
path: root/common/progmem.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/progmem.h')
-rw-r--r--common/progmem.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/common/progmem.h b/common/progmem.h
new file mode 100644
index 000000000..199b1bedf
--- /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