aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/lib/u2_init.c
diff options
context:
space:
mode:
authorPhilip Balister <philip@opensdr.com>2010-08-19 21:24:51 +0000
committerPhilip Balister <philip@opensdr.com>2010-08-19 21:24:51 +0000
commit10f6e1aeec082c6b5ef0485e232266921a3adbc7 (patch)
tree627e5f6391588b349bc14c47bfb10b1cf6c3f0ad /firmware/microblaze/lib/u2_init.c
parent38722979512f0f6d57db9fd5e314b94cad1f188e (diff)
parentb84f2da152eb65afe89240941bd02d67b3582eae (diff)
downloaduhd-10f6e1aeec082c6b5ef0485e232266921a3adbc7.tar.gz
uhd-10f6e1aeec082c6b5ef0485e232266921a3adbc7.tar.bz2
uhd-10f6e1aeec082c6b5ef0485e232266921a3adbc7.zip
Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e
Conflicts: host/examples/CMakeLists.txt
Diffstat (limited to 'firmware/microblaze/lib/u2_init.c')
-rw-r--r--firmware/microblaze/lib/u2_init.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/firmware/microblaze/lib/u2_init.c b/firmware/microblaze/lib/u2_init.c
index 75bc40859..8d666b76b 100644
--- a/firmware/microblaze/lib/u2_init.c
+++ b/firmware/microblaze/lib/u2_init.c
@@ -45,22 +45,26 @@ get_hw_rev(void)
bool
u2_init(void)
{
+ hal_disable_ints();
hal_io_init();
// 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();
+ hal_uart_init();
+
+ // init i2c so we can read our rev
pic_init(); // progammable interrupt controller
+ i2c_init();
+ hal_enable_ints();
+ get_hw_rev();
+
bp_init(); // buffer pool
- hal_enable_ints();
+
// flash all leds to let us know board is alive
hal_set_leds(0x0, 0x1f);