Changeset 9494

Show
Ignore:
Timestamp:
09/03/08 17:10:15
Author:
matt
Message:

blink all leds at power up, ethernet led changed on rev 3, tell us mac addr at startup

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • usrp2/trunk/firmware/apps/app_common_v2.c

    r9158 r9494  
    460460{ 
    461461  link_is_up = speed != 0; 
    462   hal_set_leds(link_is_up ? 0x10 : 0x0, 0x10); 
     462  hal_set_leds(link_is_up ? 0x20 : 0x0, 0x20); 
    463463  printf("\neth link changed: speed = %d\n", speed); 
    464464} 
  • usrp2/trunk/firmware/apps/txrx.c

    r9150 r9494  
    257257 
    258258  putstr("\nTxRx\n"); 
     259  print_mac_addr(ethernet_mac_addr()); 
     260  newline(); 
    259261 
    260262  ethernet_register_link_changed_callback(link_changed_callback); 
  • usrp2/trunk/firmware/lib/u2_init.c

    r9090 r9494  
    8888  hal_enable_ints(); 
    8989 
    90   // flash both leds to let us know board is alive 
    91   hal_set_leds(0x0, 0x3); 
     90  // flash all leds to let us know board is alive 
     91  hal_set_leds(0x0, 0x1f); 
    9292  mdelay(100); 
    93   hal_set_leds(0x3, 0x3); 
     93  hal_set_leds(0x1f, 0x1f); 
    9494  mdelay(100); 
    95   hal_set_leds(0x0, 0x3); 
     95  hal_set_leds(0x0, 0x1f); 
    9696  mdelay(100); 
    9797