diff options
author | Josh Blum <josh@joshknows.com> | 2010-07-30 12:43:41 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-07-30 12:43:41 -0700 |
commit | 4240d5a2a1b705fe8ed5c3a1d1deef24be00d444 (patch) | |
tree | 6c292d10784049bd5f4e92e69de00f227b279cb1 /firmware/microblaze/lib/u2_init.c | |
parent | 5dca9e6315c5f827d97351316e5bdd3a786dc4f1 (diff) | |
download | uhd-4240d5a2a1b705fe8ed5c3a1d1deef24be00d444.tar.gz uhd-4240d5a2a1b705fe8ed5c3a1d1deef24be00d444.tar.bz2 uhd-4240d5a2a1b705fe8ed5c3a1d1deef24be00d444.zip |
usrp2: reorganized firmware directory
Diffstat (limited to 'firmware/microblaze/lib/u2_init.c')
-rw-r--r-- | firmware/microblaze/lib/u2_init.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/firmware/microblaze/lib/u2_init.c b/firmware/microblaze/lib/u2_init.c index 6809101c0..75bc40859 100644 --- a/firmware/microblaze/lib/u2_init.c +++ b/firmware/microblaze/lib/u2_init.c @@ -25,9 +25,8 @@ #include "i2c.h" #include "mdelay.h" #include "clocks.h" -#include "usrp2_i2c_addr.h" - -//#include "nonstdio.h" +#include "usrp2/fw_common.h" +#include "nonstdio.h" unsigned char u2_hw_rev_major; unsigned char u2_hw_rev_minor; @@ -35,8 +34,8 @@ unsigned char u2_hw_rev_minor; static inline void get_hw_rev(void) { - bool ok = eeprom_read(I2C_ADDR_MBOARD, MBOARD_REV_LSB, &u2_hw_rev_minor, 1); - ok &= eeprom_read(I2C_ADDR_MBOARD, MBOARD_REV_MSB, &u2_hw_rev_major, 1); + bool ok = eeprom_read(USRP2_I2C_ADDR_MBOARD, USRP2_EE_MBOARD_REV_LSB, &u2_hw_rev_minor, 1); + ok &= eeprom_read(USRP2_I2C_ADDR_MBOARD, USRP2_EE_MBOARD_REV_MSB, &u2_hw_rev_major, 1); } /* @@ -68,7 +67,7 @@ u2_init(void) mdelay(100); hal_set_leds(0x1f, 0x1f); mdelay(100); - hal_set_leds(0x1, 0x1f); // Leave the first one on + hal_set_leds(LED_D, 0x1f); // Leave one on #if 0 // test register readback |