summaryrefslogtreecommitdiffstats
path: root/common/progmem.h
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2014-06-17 15:41:14 +0200
committertmk <nobody@nowhere>2014-07-30 07:07:43 +0200
commite81c70149ecf73256f8bb7d77cefc07f2b91d2be (patch)
treed918595b92aa099537640cd02285f914b343bd67 /common/progmem.h
parentee70fe59ee8ebc6dcbf55171b1a2dd72e1744ae6 (diff)
downloadqmk_firmware-e81c70149ecf73256f8bb7d77cefc07f2b91d2be.tar.gz
qmk_firmware-e81c70149ecf73256f8bb7d77cefc07f2b91d2be.tar.xz
Fix common files for mbed
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 000000000..09aeb8b7c
--- /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