diff 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
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)