[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r11122 - gnuradio/trunk/usrp2/firmware/lib
From: |
matt |
Subject: |
[Commit-gnuradio] r11122 - gnuradio/trunk/usrp2/firmware/lib |
Date: |
Mon, 25 May 2009 13:32:24 -0600 (MDT) |
Author: matt
Date: 2009-05-25 13:32:23 -0600 (Mon, 25 May 2009)
New Revision: 11122
Modified:
gnuradio/trunk/usrp2/firmware/lib/u2_init.c
Log:
move i2c init and get_hw_rev before clocks_init because the clock init code
needs to know our rev
Modified: gnuradio/trunk/usrp2/firmware/lib/u2_init.c
===================================================================
--- gnuradio/trunk/usrp2/firmware/lib/u2_init.c 2009-05-25 19:30:06 UTC (rev
11121)
+++ gnuradio/trunk/usrp2/firmware/lib/u2_init.c 2009-05-25 19:32:23 UTC (rev
11122)
@@ -65,6 +65,10 @@
// 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 @@
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r11122 - gnuradio/trunk/usrp2/firmware/lib,
matt <=