diff options
author | Nick Foster <nick@nerdnetworks.org> | 2010-07-28 09:54:56 -0700 |
---|---|---|
committer | Nick Foster <nick@nerdnetworks.org> | 2010-07-28 09:54:56 -0700 |
commit | fd3a2ac058de6bdd69b9f388658e4189a9c5b32d (patch) | |
tree | ec8fdb1a499b89ab0582d6f59788f619315f021c /firmware | |
parent | fda332dc1f0d93bcbcdc62ea32ed540c679ace24 (diff) | |
download | uhd-fd3a2ac058de6bdd69b9f388658e4189a9c5b32d.tar.gz uhd-fd3a2ac058de6bdd69b9f388658e4189a9c5b32d.tar.bz2 uhd-fd3a2ac058de6bdd69b9f388658e4189a9c5b32d.zip |
Ethernet blinky light changes. Link LED works. D201 (next to PHY) blinks on TX. Yellow LED on connector blinks on TX/RX.
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/microblaze/usrp2p/ethernet.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/firmware/microblaze/usrp2p/ethernet.c b/firmware/microblaze/usrp2p/ethernet.c index 07224d3b7..80c303153 100644 --- a/firmware/microblaze/usrp2p/ethernet.c +++ b/firmware/microblaze/usrp2p/ethernet.c @@ -69,6 +69,10 @@ ed_link_up(int speed) ed_set_mac_speed(speed); + //turn on link LED for USRP2P + hal_set_leds((1 << 0), (1 << 0)); + + if (ed_callback) // fire link changed callback (*ed_callback)(speed); } @@ -78,6 +82,9 @@ ed_link_down(void) { // putstr("ed_link_down\n"); + //turn off link LED for USRP2P + hal_set_leds(0, (1 << 0)); + if (ed_callback) // fire link changed callback (*ed_callback)(0); } @@ -226,7 +233,7 @@ ethernet_init(void) eth_mac_miim_write(PHY_INT_MASK, mask); // enable the ones we want //set the LED behavior to activity instead of link - unsigned led = (LED_ACTIVITY << PHY_LED_LINK_LSB); + unsigned led = (LED_ACTIVITY << PHY_LED_LINK_LSB) | (LED_TX << PHY_LED_TXRX_LSB); eth_mac_miim_write(PHY_LED2, led); pic_register_handler(IRQ_PHY, eth_phy_irq_handler); |