aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-11-29 18:43:35 -0800
committerBrent Stapleton <bstapleton@g.hmc.edu>2018-11-30 17:39:49 -0800
commite758efc80412343642ae22213fefe41333ad7372 (patch)
tree3e0b4f82b0efa7f1c3c1965f6403017364cbb400 /host/lib/usrp/dboard
parentf4a8e6fc4afc44c2a7a477206a5061406c08bd4a (diff)
downloaduhd-e758efc80412343642ae22213fefe41333ad7372.tar.gz
uhd-e758efc80412343642ae22213fefe41333ad7372.tar.bz2
uhd-e758efc80412343642ae22213fefe41333ad7372.zip
mg: Unindent falsely indented block of code
Whitespace changes only.
Diffstat (limited to 'host/lib/usrp/dboard')
-rw-r--r--host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_init.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_init.cpp b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_init.cpp
index ba7d937aa..7df3e888c 100644
--- a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_init.cpp
+++ b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_init.cpp
@@ -118,35 +118,35 @@ void magnesium_radio_ctrl_impl::_init_peripherals()
);
UHD_LOG_TRACE(unique_id(), "Initializing CPLD...");
UHD_LOG_TRACE(unique_id(), "Creating new CPLD object...");
- spi_config_t spi_config;
- spi_config.use_custom_divider = true;
- spi_config.divider = 125;
- spi_config.mosi_edge = spi_config_t::EDGE_RISE;
- spi_config.miso_edge = spi_config_t::EDGE_FALL;
- UHD_LOG_TRACE(unique_id(), "Making CPLD object...");
- _cpld = std::make_shared<magnesium_cpld_ctrl>(
- [this, spi_config](const uint32_t transaction){ // Write functor
- this->_spi->write_spi(
- SEN_CPLD,
- spi_config,
- transaction,
- 24
- );
- },
- [this, spi_config](const uint32_t transaction){ // Read functor
- return this->_spi->read_spi(
- SEN_CPLD,
- spi_config,
- transaction,
- 24
- );
- }
- );
- _update_atr_switches(
- magnesium_cpld_ctrl::BOTH,
- DX_DIRECTION,
- radio_ctrl_impl::get_rx_antenna(0)
- );
+ spi_config_t spi_config;
+ spi_config.use_custom_divider = true;
+ spi_config.divider = 125;
+ spi_config.mosi_edge = spi_config_t::EDGE_RISE;
+ spi_config.miso_edge = spi_config_t::EDGE_FALL;
+ UHD_LOG_TRACE(unique_id(), "Making CPLD object...");
+ _cpld = std::make_shared<magnesium_cpld_ctrl>(
+ [this, spi_config](const uint32_t transaction){ // Write functor
+ this->_spi->write_spi(
+ SEN_CPLD,
+ spi_config,
+ transaction,
+ 24
+ );
+ },
+ [this, spi_config](const uint32_t transaction){ // Read functor
+ return this->_spi->read_spi(
+ SEN_CPLD,
+ spi_config,
+ transaction,
+ 24
+ );
+ }
+ );
+ _update_atr_switches(
+ magnesium_cpld_ctrl::BOTH,
+ DX_DIRECTION,
+ radio_ctrl_impl::get_rx_antenna(0)
+ );
UHD_LOG_TRACE(unique_id(), "Initializing TX LO...");
_tx_lo = adf435x_iface::make_adf4351(
[this](const std::vector<uint32_t> transactions){