X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/21a24f90c5aaaaf13f91716208b32cde163c5918..889202c46ced1be4fc0db3faf63564722eba2865:/include/common.h diff --git a/include/common.h b/include/common.h index a92f62c..74339df 100644 --- a/include/common.h +++ b/include/common.h @@ -3,6 +3,7 @@ #ifdef __AVR__ #include +#include //TODO: // Known to work: 4.8.4, 4.9.1 @@ -17,8 +18,10 @@ #ifdef __FLASH #define FLASH __flash +#define MEMX __memx #else #define FLASH +#define MEMX #endif #define stringify(s) tostring(s) @@ -35,7 +38,8 @@ extern volatile uint_least8_t Stat; #endif /* __AVR__ */ #define S_10MS_TO (1<<0) -#define S_Z180_RUNNING (2<<0) +#define S_MSG_PENDING (2<<0) +#define S_CON_PENDING (3<<0) static inline void my_puts(const char *s) @@ -43,19 +47,15 @@ void my_puts(const char *s) fputs(s, stdout); } -#ifdef __AVR__ static inline void my_puts_P(const char *s) { +#ifdef __AVR__ fputs_P(s, stdout); -} - #else -static inline -void my_puts_P(const char *s) -{ fputs(s, stdout); -} #endif /* __AVR__ */ +} + #endif /* COMMON_H */