X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/21a24f90c5aaaaf13f91716208b32cde163c5918..05994bd90cb36f10ff72c6a70d7cecc61b67fb2f:/include/common.h diff --git a/include/common.h b/include/common.h index a92f62c..121922f 100644 --- a/include/common.h +++ b/include/common.h @@ -3,6 +3,10 @@ #ifdef __AVR__ #include +#include +#include + +#define udelay(n) _delay_us(n) //TODO: // Known to work: 4.8.4, 4.9.1 @@ -17,8 +21,10 @@ #ifdef __FLASH #define FLASH __flash +#define MEMX __memx #else #define FLASH +#define MEMX #endif #define stringify(s) tostring(s) @@ -35,7 +41,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 (1<<1) +#define S_CON_PENDING (1<<2) static inline void my_puts(const char *s) @@ -43,19 +50,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 */