]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
hack... blink both the telosb and shimmer LEDs
authorregehr <regehr>
Fri, 25 Jul 2008 04:08:44 +0000 (04:08 +0000)
committerregehr <regehr>
Fri, 25 Jul 2008 04:08:44 +0000 (04:08 +0000)
tos/lib/safe/msp430/fail.c

index 52a7fea806fcb92899ec346102547e881a24d174..06dad801da9c5294837da077d21f9c8b1d7761a0 100644 (file)
@@ -1,27 +1,33 @@
 #undef SAFE_TINYOS
 
-static void led_off_0 (void) { 
-    __asm__ volatile ("bis.b #16, &0x0031"); 
+static void led_off_0 (void) {
+    __asm__ volatile ("bis.b #16, &0x0031"); // telos
+    __asm__ volatile ("bis.b #16, &0x0029"); // shimmer
 }
 
 static void led_off_1 (void)  { 
-    __asm__ volatile ("bis.b #32, &0x0031"); 
+    __asm__ volatile ("bis.b #32, &0x0031"); // telos
+    __asm__ volatile ("bis.b #32, &0x0029"); // shimmer
 }
 
 static void led_off_2 (void)  {
-    __asm__ volatile ("bis.b #64, &0x0031"); 
+    __asm__ volatile ("bis.b #64, &0x0031"); // telos
+    __asm__ volatile ("bis.b #64, &0x0029"); // shimmer
 }
 
 static void led_on_0 (void) { 
-    __asm__ volatile ("bic.b #16, &0x0031"); 
+    __asm__ volatile ("bic.b #16, &0x0031"); // telos
+    __asm__ volatile ("bic.b #16, &0x0029"); // shimmer
 }
 
 static void led_on_1 (void) { 
-    __asm__ volatile ("bic.b #32, &0x0031"); 
+    __asm__ volatile ("bic.b #32, &0x0031"); // telos
+    __asm__ volatile ("bic.b #32, &0x0029"); // shimmer
 }
 
 static void led_on_2 (void) { 
-    __asm__ volatile ("bic.b #64, &0x0031"); 
+    __asm__ volatile ("bic.b #64, &0x0031"); // telos
+    __asm__ volatile ("bic.b #64, &0x0029"); // shimmer
 }
 
 static void delay (int len)