aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/b100/clock_ctrl.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-06-30 10:14:14 -0700
committerJosh Blum <josh@joshknows.com>2011-06-30 10:14:14 -0700
commitf4dc4bf74e65d185ef76e48d3cb172bf0a66f24a (patch)
tree855c4907c02dd145f76ebd3c902fa3538483f90b /host/lib/usrp/b100/clock_ctrl.cpp
parentbc9c9f551a2b8c3bdab4e61c0d63f8377694da2c (diff)
downloaduhd-f4dc4bf74e65d185ef76e48d3cb172bf0a66f24a.tar.gz
uhd-f4dc4bf74e65d185ef76e48d3cb172bf0a66f24a.tar.bz2
uhd-f4dc4bf74e65d185ef76e48d3cb172bf0a66f24a.zip
b100: some tweaks (unresolved streaming issues ATM)
Diffstat (limited to 'host/lib/usrp/b100/clock_ctrl.cpp')
-rw-r--r--host/lib/usrp/b100/clock_ctrl.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/host/lib/usrp/b100/clock_ctrl.cpp b/host/lib/usrp/b100/clock_ctrl.cpp
index ee56a0e1c..c93ff64c7 100644
--- a/host/lib/usrp/b100/clock_ctrl.cpp
+++ b/host/lib/usrp/b100/clock_ctrl.cpp
@@ -174,6 +174,12 @@ public:
_chan_rate = 0.0;
_out_rate = 0.0;
+ //perform soft-reset
+ _ad9522_regs.soft_reset = 1;
+ this->send_reg(0x000);
+ this->latch_regs();
+ _ad9522_regs.soft_reset = 0;
+
//init the clock gen registers
_ad9522_regs.sdo_active = ad9522_regs_t::SDO_ACTIVE_SDO_SDIO;
_ad9522_regs.enb_stat_eeprom_at_stat_pin = 0; //use status pin