From 99c2730bc9db270560671f2d7d173768465ed51f Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 31 Oct 2016 14:30:52 -0700 Subject: Remove all boost:: namespace prefix for uint32_t, int32_t etc. (fixed-width types) - Also removes all references to boost/cstdint.hpp and replaces it with stdint.h (The 'correct' replacement would be , but not all of our compilers support that). --- host/lib/usrp/dboard/db_tvrx.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'host/lib/usrp/dboard/db_tvrx.cpp') diff --git a/host/lib/usrp/dboard/db_tvrx.cpp b/host/lib/usrp/dboard/db_tvrx.cpp index 0f84cd68a..5c0600c61 100644 --- a/host/lib/usrp/dboard/db_tvrx.cpp +++ b/host/lib/usrp/dboard/db_tvrx.cpp @@ -125,7 +125,7 @@ static uhd::dict get_tvrx_gain_ranges(void) { static const double opamp_gain = 1.22; //onboard DAC opamp gain static const double tvrx_if_freq = 43.75e6; //IF freq of TVRX module -static const boost::uint16_t reference_divider = 640; //clock reference divider to use +static const uint16_t reference_divider = 640; //clock reference divider to use static const double reference_freq = 4.0e6; /*********************************************************************** @@ -140,7 +140,7 @@ private: uhd::dict _gains; double _lo_freq; tuner_4937di5_regs_t _tuner_4937di5_regs; - boost::uint8_t _tuner_4937di5_addr(void){ + uint8_t _tuner_4937di5_addr(void){ return (this->get_iface()->get_special_props().mangle_i2c_addrs)? 0x61 : 0x60; //ok really? we could rename that call }; @@ -271,7 +271,7 @@ static double gain_interp(double gain, const boost::array& db_vector double volts; gain = uhd::clip(gain, db_vector.front(), db_vector.back()); //let's not get carried away here - boost::uint8_t gain_step = 0; + uint8_t gain_step = 0; //find which bin we're in for(size_t i = 0; i < db_vector.size()-1; i++) { if(gain >= db_vector[i] && gain <= db_vector[i+1]) gain_step = i; -- cgit v1.2.3