aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard/magnesium/magnesium_cpld_ctrl.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2017-11-03 16:56:03 -0700
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:05:05 -0800
commitb5f6ba518e80fe3f3f64f112d657bc9fc631fe4f (patch)
treed228fb6365e8227cadabd1e730549c2200bef290 /host/lib/usrp/dboard/magnesium/magnesium_cpld_ctrl.cpp
parentf700f5a43afa8840262fadf15c4d6fd2648b298b (diff)
downloaduhd-b5f6ba518e80fe3f3f64f112d657bc9fc631fe4f.tar.gz
uhd-b5f6ba518e80fe3f3f64f112d657bc9fc631fe4f.tar.bz2
uhd-b5f6ba518e80fe3f3f64f112d657bc9fc631fe4f.zip
mg: Refactor magnesium_radio_ctrl and friends
- Spin out AD9371 control into its own class - Split file into multiple compilation units - Fixed many minor code formatting issues
Diffstat (limited to 'host/lib/usrp/dboard/magnesium/magnesium_cpld_ctrl.cpp')
-rw-r--r--host/lib/usrp/dboard/magnesium/magnesium_cpld_ctrl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/host/lib/usrp/dboard/magnesium/magnesium_cpld_ctrl.cpp b/host/lib/usrp/dboard/magnesium/magnesium_cpld_ctrl.cpp
index 66fa02360..dac8ca5c1 100644
--- a/host/lib/usrp/dboard/magnesium/magnesium_cpld_ctrl.cpp
+++ b/host/lib/usrp/dboard/magnesium/magnesium_cpld_ctrl.cpp
@@ -5,6 +5,7 @@
//
#include "magnesium_cpld_ctrl.hpp"
+#include "magnesium_constants.hpp"
#include <uhd/utils/log.hpp>
#include <boost/format.hpp>
#include <chrono>
@@ -12,6 +13,8 @@
namespace {
//! Address of the CPLD scratch register
const uint8_t CPLD_REGS_SCRATCH = 0x0040;
+
+ //! Address of the CPLD reset register
const uint8_t CPLD_REGS_RESET = 0x0041;
}