aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp_e/dboard_impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/usrp/usrp_e/dboard_impl.cpp')
-rw-r--r--host/lib/usrp/usrp_e/dboard_impl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/host/lib/usrp/usrp_e/dboard_impl.cpp b/host/lib/usrp/usrp_e/dboard_impl.cpp
index e87a2c0a5..00b5d77d7 100644
--- a/host/lib/usrp/usrp_e/dboard_impl.cpp
+++ b/host/lib/usrp/usrp_e/dboard_impl.cpp
@@ -24,15 +24,15 @@ using namespace uhd::usrp;
* Dboard Initialization
**********************************************************************/
void usrp_e_impl::dboard_init(void){
- dboard_id_t rx_dboard_id = dboard_id::NONE; //TODO get these from the eeprom
- dboard_id_t tx_dboard_id = dboard_id::NONE;
+ _rx_db_eeprom = dboard_eeprom_t(_iface->read_eeprom(I2C_ADDR_RX_DB, 0, dboard_eeprom_t::num_bytes()));
+ _tx_db_eeprom = dboard_eeprom_t(_iface->read_eeprom(I2C_ADDR_TX_DB, 0, dboard_eeprom_t::num_bytes()));
//create a new dboard interface and manager
dboard_iface::sptr dboard_iface(
make_usrp_e_dboard_iface(_iface)
);
_dboard_manager = dboard_manager::make(
- rx_dboard_id, tx_dboard_id, dboard_iface
+ _rx_db_eeprom.id, _tx_db_eeprom.id, dboard_iface
);
//setup the dboard proxies