diff options
author | tmk <nobody@nowhere> | 2014-06-17 00:57:59 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2014-07-30 14:07:43 +0900 |
commit | c67ae2a6b546c822759352586c14cd9dccbbe0ff (patch) | |
tree | ab77175c64bfce74d2662260b9cdb2af8d8a7efd /common/action_macro.h | |
parent | 04fe78ee0a7fe9baed39f021799a3dbb24ebeb36 (diff) |
Port action_* to mbed
Diffstat (limited to 'common/action_macro.h')
-rw-r--r-- | common/action_macro.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/action_macro.h b/common/action_macro.h index 6218263088..aedc32ec6b 100644 --- a/common/action_macro.h +++ b/common/action_macro.h @@ -17,12 +17,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #ifndef ACTION_MACRO_H #define ACTION_MACRO_H #include <stdint.h> -#include <avr/pgmspace.h> +#include "progmem.h" -#define MACRO_NONE 0 -#define MACRO(...) ({ static const macro_t __m[] PROGMEM = { __VA_ARGS__ }; &__m[0]; }) - +#define MACRO_NONE 0 +#define MACRO(...) ({ static const macro_t __m[] PROGMEM = { __VA_ARGS__ }; &__m[0]; }) +#define MACRO_GET(p) pgm_read_byte(p) typedef uint8_t macro_t; |