]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - include/common.h
working connect command, new sleep command
[z180-stamp.git] / include / common.h
index 74339df76dd0ce24d336ea5a50c434705ee41e2e..121922f390389baf54b49e3857a20c29666605fe 100644 (file)
@@ -4,6 +4,9 @@
 #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
@@ -38,8 +41,8 @@ extern volatile uint_least8_t Stat;
 #endif /* __AVR__ */
 
 #define S_10MS_TO      (1<<0)
-#define S_MSG_PENDING  (2<<0)
-#define S_CON_PENDING  (3<<0)
+#define S_MSG_PENDING  (1<<1)
+#define S_CON_PENDING  (1<<2)
 
 static inline 
 void my_puts(const char *s)