diff options
| author | tmk <nobody@nowhere> | 2014-06-17 22:41:14 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2014-07-30 14:07:43 +0900 |
| commit | e81c70149ecf73256f8bb7d77cefc07f2b91d2be (patch) | |
| tree | d918595b92aa099537640cd02285f914b343bd67 /common/progmem.h | |
| parent | ee70fe59ee8ebc6dcbf55171b1a2dd72e1744ae6 (diff) | |
| download | qmk_firmware-e81c70149ecf73256f8bb7d77cefc07f2b91d2be.tar.gz qmk_firmware-e81c70149ecf73256f8bb7d77cefc07f2b91d2be.zip | |
Fix common files for mbed
Diffstat (limited to 'common/progmem.h')
| -rw-r--r-- | common/progmem.h | 11 |
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 @@ | |||
| 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 | #endif | ||
| 10 | |||
| 11 | #endif | ||
