#ifdef __AVR__
#include <avr/io.h>
+#include <avr/pgmspace.h>
//TODO:
// Known to work: 4.8.4, 4.9.1
#ifdef __FLASH
#define FLASH __flash
+#define MEMX __memx
#else
#define FLASH
+#define MEMX
#endif
#define stringify(s) tostring(s)
#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)
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 */