]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - include/common.h
CP/M 3 compatible character i/o handling
[z180-stamp.git] / include / common.h
index 90b02837bec55975261880ab8cd72e7a17231069..121922f390389baf54b49e3857a20c29666605fe 100644 (file)
@@ -3,6 +3,10 @@
 
 #ifdef __AVR__
 #include <avr/io.h>
+#include <avr/pgmspace.h>
+#include <util/delay.h>
+
+#define udelay(n)  _delay_us(n)
 
 //TODO:
 //  Known to work: 4.8.4, 4.9.1
@@ -37,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)