Mercurial > ~darius > hgwebdir.cgi > avr-lib
comparison 1wire-config-avr.h @ 16:3aac1bb54918
Add missing J delay for AVR.
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Tue, 08 Jan 2013 09:55:23 +1030 |
parents | 6f8f7b87d2f1 |
children |
comparison
equal
deleted
inserted
replaced
15:a50a054d060c | 16:3aac1bb54918 |
---|---|
85 #define OWDELAY_G /* 0 usec */ | 85 #define OWDELAY_G /* 0 usec */ |
86 #define OWDELAY_H do { _delay_us(48); _delay_us(48); _delay_us(48); \ | 86 #define OWDELAY_H do { _delay_us(48); _delay_us(48); _delay_us(48); \ |
87 _delay_us(48); _delay_us(48); _delay_us(48); _delay_us(48); \ | 87 _delay_us(48); _delay_us(48); _delay_us(48); _delay_us(48); \ |
88 _delay_us(48);_delay_us(48); _delay_us(48); } while (0) /* 480 usec */ | 88 _delay_us(48);_delay_us(48); _delay_us(48); } while (0) /* 480 usec */ |
89 #define OWDELAY_I do { _delay_us(48); _delay_us(22); } while (0) /* 70 usec */ | 89 #define OWDELAY_I do { _delay_us(48); _delay_us(22); } while (0) /* 70 usec */ |
90 #define OWDELAY_J do { _delay_us(41); _delay_us(41); _delay_us(41); \ | |
91 _delay_us(41); _delay_us(41); _delay_us(41); _delay_us(41); \ | |
92 _delay_us(41);_delay_us(41); _delay_us(41); } while (0) /* 410 usec */ | |
90 | 93 |
91 #ifdef OW_DEBUG | 94 #ifdef OW_DEBUG |
92 #define OWPUTS(x) puts_P(x) | 95 #define OWPUTS(x) puts_P(x) |
93 #define OWPUTSP(x) puts_P(x) | 96 #define OWPUTSP(x) puts_P(x) |
94 #define OWPRINTFP(fmt, ...) printf_P(fmt, ## __VA_ARGS__) | 97 #define OWPRINTFP(fmt, ...) printf_P(fmt, ## __VA_ARGS__) |