diff options
author | matt | 2009-05-25 19:32:23 +0000 |
---|---|---|
committer | matt | 2009-05-25 19:32:23 +0000 |
commit | d8be62824c35b2eb07ff502ba879ae0bb7aedb26 (patch) | |
tree | b5a479b24a129726d1a4aad4a50cb013afc5c4a1 /usrp2/firmware/lib/u2_init.c | |
parent | 506cde160a0997be26bcdab7369195dcef77f66b (diff) | |
download | gnuradio-d8be62824c35b2eb07ff502ba879ae0bb7aedb26.tar.gz gnuradio-d8be62824c35b2eb07ff502ba879ae0bb7aedb26.tar.bz2 gnuradio-d8be62824c35b2eb07ff502ba879ae0bb7aedb26.zip |
move i2c init and get_hw_rev before clocks_init because the clock init code needs to know our rev
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11122 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'usrp2/firmware/lib/u2_init.c')
-rw-r--r-- | usrp2/firmware/lib/u2_init.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usrp2/firmware/lib/u2_init.c b/usrp2/firmware/lib/u2_init.c index 713b2c321..9a1eb1651 100644 --- a/usrp2/firmware/lib/u2_init.c +++ b/usrp2/firmware/lib/u2_init.c @@ -65,6 +65,10 @@ u2_init(void) // init spi, so that we can switch over to the high-speed clock spi_init(); + // init i2c so we can read our rev + i2c_init(); + get_hw_rev(); + // set up the default clocks clocks_init(); @@ -97,13 +101,10 @@ u2_init(void) pic_init(); // progammable interrupt controller bp_init(); // buffer pool - i2c_init(); lsadc_init(); // low-speed ADCs lsdac_init(); // low-speed DACs db_init(); // daughterboard init - get_hw_rev(); - hal_enable_ints(); // flash all leds to let us know board is alive |