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 |
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 @@ +#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 |