From e81c70149ecf73256f8bb7d77cefc07f2b91d2be Mon Sep 17 00:00:00 2001 From: tmk Date: Tue, 17 Jun 2014 22:41:14 +0900 Subject: Fix common files for mbed --- common/progmem.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 common/progmem.h (limited to 'common/progmem.h') 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 +#elif defined(__arm__) +# define PROGMEM +# define pgm_read_byte(p) *(p) +#endif + +#endif -- cgit v1.2.3