aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp_e100/usrp_e100_iface.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-01-22 14:02:53 +0000
committerJosh Blum <josh@joshknows.com>2011-01-22 14:02:53 +0000
commitd27817a7ade49e74d29bf20a8ffa3ee35cbfe7ea (patch)
tree70d71e0f82e55fef61a67a7e605f1115074318e1 /host/lib/usrp/usrp_e100/usrp_e100_iface.cpp
parent2cb6092ddfcf5f3881faa455566d4f332b01d0ac (diff)
downloaduhd-d27817a7ade49e74d29bf20a8ffa3ee35cbfe7ea.tar.gz
uhd-d27817a7ade49e74d29bf20a8ffa3ee35cbfe7ea.tar.bz2
uhd-d27817a7ade49e74d29bf20a8ffa3ee35cbfe7ea.zip
usrp-e100: changes for global reset and non-zero sids on rx
Diffstat (limited to 'host/lib/usrp/usrp_e100/usrp_e100_iface.cpp')
-rw-r--r--host/lib/usrp/usrp_e100/usrp_e100_iface.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp_e100/usrp_e100_iface.cpp b/host/lib/usrp/usrp_e100/usrp_e100_iface.cpp
index 40c7afabb..ad36dd97a 100644
--- a/host/lib/usrp/usrp_e100/usrp_e100_iface.cpp
+++ b/host/lib/usrp/usrp_e100/usrp_e100_iface.cpp
@@ -1,5 +1,5 @@
//
-// Copyright 2010 Ettus Research LLC
+// Copyright 2010-2011 Ettus Research LLC
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -16,6 +16,7 @@
//
#include "usrp_e100_iface.hpp"
+#include "usrp_e100_regs.hpp"
#include <uhd/utils/assert.hpp>
#include <sys/ioctl.h> //ioctl
#include <fcntl.h> //open, close
@@ -108,6 +109,9 @@ public:
throw std::runtime_error("Failed to open " + node);
}
+ //very first thing, reset all the wishbone, always do first!
+ this->poke32(UE_REG_CLEAR_GLOBAL, 0);
+
mb_eeprom = mboard_eeprom_t(get_i2c_dev_iface(), mboard_eeprom_t::MAP_E100);
}