diff options
author | Josh Blum <josh@joshknows.com> | 2010-08-31 13:21:32 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-08-31 13:21:32 -0700 |
commit | 9a3217cbbeb39d677a439fe0982a7ac4d7f251c2 (patch) | |
tree | 20242a573ee14bfa956db47a84b4cb08ccb3b9c7 /host/lib | |
parent | 80fe3189afd52d1aab95ee95e71d5d50bddbba55 (diff) | |
download | uhd-9a3217cbbeb39d677a439fe0982a7ac4d7f251c2.tar.gz uhd-9a3217cbbeb39d677a439fe0982a7ac4d7f251c2.tar.bz2 uhd-9a3217cbbeb39d677a439fe0982a7ac4d7f251c2.zip |
usrp1: tested dbsrx, works with lower divider
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/usrp/usrp1/dboard_iface.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/host/lib/usrp/usrp1/dboard_iface.cpp b/host/lib/usrp/usrp1/dboard_iface.cpp index 454de3ece..4791b55ce 100644 --- a/host/lib/usrp/usrp1/dboard_iface.cpp +++ b/host/lib/usrp/usrp1/dboard_iface.cpp @@ -137,11 +137,11 @@ void usrp1_dboard_iface::set_clock_rate(unit_t unit, double rate) size_t divider = size_t(_clock->get_master_clock_freq()/rate); switch(_dboard_slot){ case usrp1_impl::DBOARD_SLOT_A: - _iface->poke32(FR_RX_A_REFCLK, (2*divider & 0x7f) | 0x80); + _iface->poke32(FR_RX_A_REFCLK, (divider & 0x7f) | 0x80); break; case usrp1_impl::DBOARD_SLOT_B: - _iface->poke32(FR_RX_B_REFCLK, (2*divider & 0x7f) | 0x80); + _iface->poke32(FR_RX_B_REFCLK, (divider & 0x7f) | 0x80); break; } } @@ -151,7 +151,7 @@ std::vector<double> usrp1_dboard_iface::get_clock_rates(unit_t unit) { std::vector<double> rates; if (unit == UNIT_RX && _rx_dboard_id == dbsrx_classic_id){ - for (size_t div = 8; div <= 127; div++) + for (size_t div = 1; div <= 127; div++) rates.push_back(_clock->get_master_clock_freq() / div); } else{ |