changeset 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 a50a054d060c
children bbe75f183cf9
files 1wire-config-avr.h
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/1wire-config-avr.h	Wed Feb 08 10:36:26 2012 +1030
+++ b/1wire-config-avr.h	Tue Jan 08 09:55:23 2013 +1030
@@ -87,6 +87,9 @@
 	_delay_us(48);	_delay_us(48);  _delay_us(48);  _delay_us(48);  \
 	_delay_us(48);_delay_us(48);  _delay_us(48); } while (0)	/* 480 usec */
 #define OWDELAY_I do { _delay_us(48); _delay_us(22); } while (0)	/* 70 usec */
+#define OWDELAY_J do { _delay_us(41); _delay_us(41);  _delay_us(41); 	\
+	_delay_us(41);	_delay_us(41);  _delay_us(41);  _delay_us(41);  \
+	_delay_us(41);_delay_us(41);  _delay_us(41); } while (0)	/* 410 usec */
 
 #ifdef OW_DEBUG
 #define OWPUTS(x)		puts_P(x)