aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/lib/u2_init.c
diff options
context:
space:
mode:
authorNick Foster <nick@nerdnetworks.org>2010-10-08 12:50:00 -0700
committerNick Foster <nick@nerdnetworks.org>2010-10-08 12:50:00 -0700
commit7db726e9b45b972c8fcb0c1dc366919e11256cc1 (patch)
treec72611b070710783b8013071b3673659cb8242e0 /firmware/microblaze/lib/u2_init.c
parent4ed75835c8c1b7b633223cd7ad11269e84c41701 (diff)
downloaduhd-7db726e9b45b972c8fcb0c1dc366919e11256cc1.tar.gz
uhd-7db726e9b45b972c8fcb0c1dc366919e11256cc1.tar.bz2
uhd-7db726e9b45b972c8fcb0c1dc366919e11256cc1.zip
U2P: Bootloader works, successfully loads production image.
Split I2C into async and sync halves to keep the size of the bootloader small.
Diffstat (limited to 'firmware/microblaze/lib/u2_init.c')
-rw-r--r--firmware/microblaze/lib/u2_init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/microblaze/lib/u2_init.c b/firmware/microblaze/lib/u2_init.c
index 8d666b76b..099aafe83 100644
--- a/firmware/microblaze/lib/u2_init.c
+++ b/firmware/microblaze/lib/u2_init.c
@@ -23,6 +23,7 @@
#include "buffer_pool.h"
#include "hal_uart.h"
#include "i2c.h"
+#include "i2c_async.h"
#include "mdelay.h"
#include "clocks.h"
#include "usrp2/fw_common.h"
@@ -59,6 +60,7 @@ u2_init(void)
// init i2c so we can read our rev
pic_init(); // progammable interrupt controller
i2c_init();
+ i2c_register_handler(); //for using async I2C
hal_enable_ints();
get_hw_rev();