]> 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 9d70530ca312d5010d7d62daf5698ac3f4f2a904..73e989f6c0e170035435408bfb4ca546f08684f2 100644 (file)
     }                                   \
     while (0)
 
     }                                   \
     while (0)
 
-#define print(w)   \
-    do              \
-    {               \
-        leds(w);    \
-        sleep(8);   \
-    }               \
-    while (0)
-
-#define printb(bh, bl)  \
+#define print(w)        \
     do                  \
     {                   \
     do                  \
     {                   \
-        ledsb(bh, bl);  \
+        leds_write(w);  \
         sleep(8);       \
     }                   \
     while (0)
 
         sleep(8);       \
     }                   \
     while (0)
 
+#define printb(bh, bl)          \
+    do                          \
+    {                           \
+        leds_write_high(bh);    \
+        leds_write_low(bl);     \
+        sleep(8);               \
+    }                           \
+    while (0)
+
 #else // NO DEBUG
 
 #define sleep(t) ;
 #else // NO DEBUG
 
 #define sleep(t) ;