summaryrefslogtreecommitdiff
path: root/common/progmem.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/progmem.h')
-rw-r--r--common/progmem.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/common/progmem.h b/common/progmem.h
new file mode 100644
index 0000000000..09aeb8b7c4
--- /dev/null
+++ b/common/progmem.h
@@ -0,0 +1,11 @@
+#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)
+#endif
+
+#endif