]> git.llucax.com Git - z.facultad/66.09/etherled.git/blobdiff - src/debug.h
Implementa el protocolo ELP sobre UDP. Tiene problemas cuando los leds estan
[z.facultad/66.09/etherled.git] / src / debug.h
index 1feac0992f659ccb9485157c411feaf2556cb860..73e989f6c0e170035435408bfb4ca546f08684f2 100644 (file)
     }                                   \
     while (0)
 
     }                                   \
     while (0)
 
-#define print(w)   \
-    do              \
-    {               \
-        leds(w);    \
-        sleep(8);   \
-    }               \
+#define print(w)        \
+    do                  \
+    {                   \
+        leds_write(w);  \
+        sleep(8);       \
+    }                   \
     while (0)
 
     while (0)
 
-#define printb(bh, bl) print(WORD(bh, bl))
+#define printb(bh, bl)          \
+    do                          \
+    {                           \
+        leds_write_high(bh);    \
+        leds_write_low(bl);     \
+        sleep(8);               \
+    }                           \
+    while (0)
 
 #else // NO DEBUG
 
 
 #else // NO DEBUG