diff options
author | Josh Blum <josh@joshknows.com> | 2010-08-16 19:51:20 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-08-16 19:51:20 -0700 |
commit | 0541029e4ecd06e840966b4005af316b92eeb9e5 (patch) | |
tree | 8d78c73a451634c7db7c04c861ff3654dc8797f4 /firmware/microblaze/lib/u2_init.c | |
parent | ef6953024f1075a729e85f2511c75de337879888 (diff) | |
parent | 230368da5c55c0eb587960db50f68e1b618f271c (diff) | |
download | uhd-0541029e4ecd06e840966b4005af316b92eeb9e5.tar.gz uhd-0541029e4ecd06e840966b4005af316b92eeb9e5.tar.bz2 uhd-0541029e4ecd06e840966b4005af316b92eeb9e5.zip |
Merge branch 'premerge'
Diffstat (limited to 'firmware/microblaze/lib/u2_init.c')
-rw-r--r-- | firmware/microblaze/lib/u2_init.c | 14 |
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); |