commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r9494 - in usrp2/trunk/firmware: apps lib


From: matt
Subject: [Commit-gnuradio] r9494 - in usrp2/trunk/firmware: apps lib
Date: Wed, 3 Sep 2008 17:10:15 -0600 (MDT)

Author: matt
Date: 2008-09-03 17:10:15 -0600 (Wed, 03 Sep 2008)
New Revision: 9494

Modified:
   usrp2/trunk/firmware/apps/app_common_v2.c
   usrp2/trunk/firmware/apps/txrx.c
   usrp2/trunk/firmware/lib/u2_init.c
Log:
blink all leds at power up, ethernet led changed on rev 3, tell us mac addr at 
startup


Modified: usrp2/trunk/firmware/apps/app_common_v2.c
===================================================================
--- usrp2/trunk/firmware/apps/app_common_v2.c   2008-09-03 17:00:14 UTC (rev 
9493)
+++ usrp2/trunk/firmware/apps/app_common_v2.c   2008-09-03 23:10:15 UTC (rev 
9494)
@@ -459,7 +459,7 @@
 link_changed_callback(int speed)
 {
   link_is_up = speed != 0;
-  hal_set_leds(link_is_up ? 0x10 : 0x0, 0x10);
+  hal_set_leds(link_is_up ? 0x20 : 0x0, 0x20);
   printf("\neth link changed: speed = %d\n", speed);
 }
 

Modified: usrp2/trunk/firmware/apps/txrx.c
===================================================================
--- usrp2/trunk/firmware/apps/txrx.c    2008-09-03 17:00:14 UTC (rev 9493)
+++ usrp2/trunk/firmware/apps/txrx.c    2008-09-03 23:10:15 UTC (rev 9494)
@@ -256,6 +256,8 @@
   u2_init();
 
   putstr("\nTxRx\n");
+  print_mac_addr(ethernet_mac_addr());
+  newline();
 
   ethernet_register_link_changed_callback(link_changed_callback);
   ethernet_init();

Modified: usrp2/trunk/firmware/lib/u2_init.c
===================================================================
--- usrp2/trunk/firmware/lib/u2_init.c  2008-09-03 17:00:14 UTC (rev 9493)
+++ usrp2/trunk/firmware/lib/u2_init.c  2008-09-03 23:10:15 UTC (rev 9494)
@@ -87,12 +87,12 @@
   
   hal_enable_ints();
 
-  // flash both leds to let us know board is alive
-  hal_set_leds(0x0, 0x3);
+  // flash all leds to let us know board is alive
+  hal_set_leds(0x0, 0x1f);
   mdelay(100);
-  hal_set_leds(0x3, 0x3);
+  hal_set_leds(0x1f, 0x1f);
   mdelay(100);
-  hal_set_leds(0x0, 0x3);
+  hal_set_leds(0x0, 0x1f);
   mdelay(100);
 
 #if 0





reply via email to

[Prev in Thread] Current Thread [Next in Thread]