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 From 4c8e0fd0bd1712421f957ec5e0ca16fc6bbb3856 Mon Sep 17 00:00:00 2001 From: tmk Date: Thu, 19 Jun 2014 16:13:35 +0900 Subject: Port ps2_usb to mbed --- common/progmem.h | 1 + 1 file changed, 1 insertion(+) (limited to 'common/progmem.h') diff --git a/common/progmem.h b/common/progmem.h index 09aeb8b7c4..199b1bedfe 100644 --- a/common/progmem.h +++ b/common/progmem.h @@ -6,6 +6,7 @@ #elif defined(__arm__) # define PROGMEM # define pgm_read_byte(p) *(p) +# define pgm_read_word(p) *(p) #endif #endif -- cgit v1.2.3