aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael West <michael.west@ettus.com>2015-04-14 09:52:23 -0500
committerMartin Braun <martin.braun@ettus.com>2015-04-14 09:52:23 -0500
commit00c497b43ffe6d2f0b41163a8620e9ed94780231 (patch)
treeab4adc267da3a63123c3a1f963e4de2b7368eb5c
parenta7d8e3b364acd911261f355b21848c2ad145e1a2 (diff)
downloaduhd-00c497b43ffe6d2f0b41163a8620e9ed94780231.tar.gz
uhd-00c497b43ffe6d2f0b41163a8620e9ed94780231.tar.bz2
uhd-00c497b43ffe6d2f0b41163a8620e9ed94780231.zip
dboards: Fixed type deduction for older compilers on max287x code
-rw-r--r--host/lib/usrp/common/max287x.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/host/lib/usrp/common/max287x.hpp b/host/lib/usrp/common/max287x.hpp
index ee1dbb946..aa80600f7 100644
--- a/host/lib/usrp/common/max287x.hpp
+++ b/host/lib/usrp/common/max287x.hpp
@@ -263,7 +263,7 @@ private:
class max2870 : public max287x<max2870_regs_t>
{
public:
- max2870(write_fn func) : max287x(func) {}
+ max2870(write_fn func) : max287x<max2870_regs_t>(func) {}
~max2870() {}
double set_frequency(
double target_freq,
@@ -276,13 +276,13 @@ public:
max2870_regs_t::FEEDBACK_SELECT_DIVIDED :
max2870_regs_t::FEEDBACK_SELECT_FUNDAMENTAL;
- return max287x::set_frequency(target_freq, ref_freq, target_pfd_freq, is_int_n);
+ return max287x<max2870_regs_t>::set_frequency(target_freq, ref_freq, target_pfd_freq, is_int_n);
}
void commit(void)
{
// For MAX2870, we always need to write all registers.
_write_all_regs = true;
- max287x::commit();
+ max287x<max2870_regs_t>::commit();
}
};
@@ -292,7 +292,7 @@ public:
class max2871 : public max287x<max2871_regs_t>
{
public:
- max2871(write_fn func) : max287x(func) {}
+ max2871(write_fn func) : max287x<max2871_regs_t>(func) {}
~max2871() {};
void set_muxout_mode(muxout_mode_t mode)
{
@@ -305,7 +305,7 @@ public:
_regs.muxout = max2871_regs_t::MUXOUT_SPI;
break;
default:
- max287x::set_muxout_mode(mode);
+ max287x<max2871_regs_t>::set_muxout_mode(mode);
}
}
@@ -316,7 +316,7 @@ public:
bool is_int_n)
{
_regs.feedback_select = max2871_regs_t::FEEDBACK_SELECT_DIVIDED;
- double freq = max287x::set_frequency(target_freq, ref_freq, target_pfd_freq, is_int_n);
+ double freq = max287x<max2871_regs_t>::set_frequency(target_freq, ref_freq, target_pfd_freq, is_int_n);
// According to Maxim support, the following factors must be true to allow for synchronization
if (_regs.r_counter_10_bit == 1 and