diff options
author | Leo C | 2014-10-26 12:43:57 +0100 |
---|---|---|
committer | Leo C | 2014-10-26 12:43:57 +0100 |
commit | 8a7deceacd30529e5c32082b2c719eb055841d0d (patch) | |
tree | 19b22d5a0363847ad5e29dd2d8c726191b1b5c82 /include/common.h | |
parent | 889202c46ced1be4fc0db3faf63564722eba2865 (diff) | |
download | z180-stamp-8a7deceacd30529e5c32082b2c719eb055841d0d.zip |
working connect command, new sleep command
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/common.h b/include/common.h index 74339df..121922f 100644 --- a/include/common.h +++ b/include/common.h @@ -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) |