diff 1wire-delay.h @ 10:eb1faf51968e

- Add some useful return values to search functions. - Remove some unecessary trailing \'s in macros - Replace some inline assembly I missed last time with C/macros.
author darius
date Mon, 12 Jul 2004 23:59:00 +0930
parents f9a085a0ba93
children 8dc98a293e43
line wrap: on
line diff
--- a/1wire-delay.h	Mon Jul 12 17:51:20 2004 +0930
+++ b/1wire-delay.h	Mon Jul 12 23:59:00 2004 +0930
@@ -41,7 +41,7 @@
 	"L_%=: nop\n\t"		\
 	"dec r21\n\t"		\
 	"brne L_%=\n\t"		\
-	::: "r21");
+	::: "r21")
 
 /* 64 usec */
 #define DELAY_B asm volatile(	\
@@ -53,7 +53,7 @@
 	"nop\n\t"		\
 	"dec r21\n\t"		\
 	"brne L_%=\n\t"		\
-	::: "r21");
+	::: "r21")
 
 /* 60 usec */
 #define DELAY_C asm volatile(	\
@@ -65,7 +65,7 @@
 	"nop\n\t"		\
 	"dec r21\n\t"		\
 	"brne L_%=\n\t"		\
-	::: "r21");
+	::: "r21")
 
 /* 10 usec */
 #define DELAY_D asm volatile(	\
@@ -73,7 +73,7 @@
 	"L_%=: nop\n\t"		\
 	"dec r21\n\t"		\
 	"brne L_%=\n\t"		\
-	::: "r21");
+	::: "r21")
 
 /* 9 usec */
 #define DELAY_E asm volatile(	\
@@ -81,7 +81,7 @@
 	"L_%=: nop\n\t"		\
 	"dec r21\n\t"		\
 	"brne L_%=\n\t"		\
-	::: "r21");
+	::: "r21")
 
 /* 55 usec */
 #define DELAY_F asm volatile(	\
@@ -101,7 +101,7 @@
 	"nop\n\t"		\
 	"dec r21\n\t"		\
 	"brne L_%=\n\t"		\
-	::: "r21");
+	::: "r21")
 
 /* 0 usec */    
 #define DELAY_G
@@ -124,7 +124,7 @@
 	"nop\n\t"		\
 	"dec r21\n\t"		\
 	"brne L_%=\n\t"		\
-	::: "r21");
+	::: "r21")
 
 /* 70 usec */    
 #define DELAY_I asm volatile(	\
@@ -136,7 +136,7 @@
 	"nop\n\t"		\
 	"dec r21\n\t"		\
 	"brne L_%=\n\t"		\
-	::: "r21");
+	::: "r21")
 #else
 #error No 1 wire delay routines for selected clock speed
 #endif