aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/usrp/dboard')
-rw-r--r--host/lib/usrp/dboard/db_tvrx2.cpp5
-rw-r--r--host/lib/usrp/dboard/db_ubx.cpp2
-rw-r--r--host/lib/usrp/dboard/magnesium/magnesium_gain_table.cpp2
-rw-r--r--host/lib/usrp/dboard/twinrx/twinrx_gain_tables.cpp2
4 files changed, 10 insertions, 1 deletions
diff --git a/host/lib/usrp/dboard/db_tvrx2.cpp b/host/lib/usrp/dboard/db_tvrx2.cpp
index 5f43c75e6..5dba83551 100644
--- a/host/lib/usrp/dboard/db_tvrx2.cpp
+++ b/host/lib/usrp/dboard/db_tvrx2.cpp
@@ -5,6 +5,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
//
+// clang-format off
// Common IO Pins
#define REFCLOCK_DIV_MASK ((1 << 8)|(1 << 9)|(1 << 10)) // Three GPIO lines to CPLD for Clock Divisor Selection
#define REFCLOCK_DIV8 ((1 << 8)|(1 << 9)|(1 << 10)) // GPIO to set clock div8 mode
@@ -37,6 +38,7 @@
#define OUTPUT_MASK (RX1_OUTPUT_MASK|RX2_OUTPUT_MASK|REFCLOCK_DIV_MASK)
#define INPUT_MASK (RX1_INPUT_MASK|RX2_INPUT_MASK)
+// clang-format on
#include "tda18272hnm_regs.hpp"
@@ -100,7 +102,7 @@ struct tvrx2_tda18272_freq_map_t {
/***********************************************************************
* The TVRX2 constants
**********************************************************************/
-
+// clang-format off
static const boost::array<freq_range_t, 4> tvrx2_tda18272_rf_bands = list_of
( freq_range_t( 44.056e6, 144.408e6) )
( freq_range_t( 145.432e6, 361.496e6) )
@@ -735,6 +737,7 @@ static const uhd::dict<std::string, gain_range_t> tvrx2_gain_ranges = map_list_o
// ("LPF", gain_range_t(0, 9, 3))
("IF", gain_range_t(0, 30, 0.5))
;
+// clang-format on
/***********************************************************************
* The TVRX2 dboard class
diff --git a/host/lib/usrp/dboard/db_ubx.cpp b/host/lib/usrp/dboard/db_ubx.cpp
index 6f2670ec4..2ab5abaad 100644
--- a/host/lib/usrp/dboard/db_ubx.cpp
+++ b/host/lib/usrp/dboard/db_ubx.cpp
@@ -162,6 +162,7 @@ static const std::vector<std::string> ubx_rx_antennas{"TX/RX", "RX2", "CAL"};
static const std::vector<std::string> ubx_power_modes{"performance", "powersave"};
static const std::vector<std::string> ubx_xcvr_modes{"FDX", "TX", "TX/RX", "RX"};
+// clang-format off
static const ubx_gpio_field_info_t ubx_proto_gpio_info[] = {
//Field Unit Offset Mask Width Direction ATR IDLE,TX,RX,FDX
{SPI_ADDR, dboard_iface::UNIT_TX, 0, 0x7, 3, ubx_gpio_field_info_t::INPUT, false, 0, 0, 0, 0},
@@ -191,6 +192,7 @@ static const ubx_gpio_field_info_t ubx_v1_gpio_info[] = {
{RXLO2_SYNC, dboard_iface::UNIT_RX, 7, 0x1<<7, 1, ubx_gpio_field_info_t::INPUT, true, 0, 0, 0, 0},
{RX_GAIN, dboard_iface::UNIT_RX, 10, 0x3F<<10, 10, ubx_gpio_field_info_t::INPUT, false, 0, 0, 0, 0}
};
+// clang-format on
/***********************************************************************
* Macros for routing and writing SPI registers
diff --git a/host/lib/usrp/dboard/magnesium/magnesium_gain_table.cpp b/host/lib/usrp/dboard/magnesium/magnesium_gain_table.cpp
index c46849e80..05b6dbe8f 100644
--- a/host/lib/usrp/dboard/magnesium/magnesium_gain_table.cpp
+++ b/host/lib/usrp/dboard/magnesium/magnesium_gain_table.cpp
@@ -55,6 +55,7 @@ namespace {
//! Maps band -> gain_tuple_map_t
using gain_tables_t = std::map<size_t, gain_tuple_map_t>;
+ // clang-format off
/*! RX gain tables
*/
const gain_tables_t rx_gain_tables = {
@@ -436,6 +437,7 @@ namespace {
{65, {0, 0, false}}
}}
}; /* tx_gain_tables */
+ // clang-format on
gain_tuple_t fine_tune_ad9371_att(
const gain_tuple_t gain_tuple,
diff --git a/host/lib/usrp/dboard/twinrx/twinrx_gain_tables.cpp b/host/lib/usrp/dboard/twinrx/twinrx_gain_tables.cpp
index 323869c0f..cc9336f2a 100644
--- a/host/lib/usrp/dboard/twinrx/twinrx_gain_tables.cpp
+++ b/host/lib/usrp/dboard/twinrx/twinrx_gain_tables.cpp
@@ -10,6 +10,7 @@
using namespace uhd::usrp::dboard::twinrx;
+// clang-format off
static const std::vector<twinrx_gain_config_t> HIGHBAND1_TABLE{
// Index, Gain, Atten1, Atten2, Amp1, Amp2
twinrx_gain_config_t( 0, -28.3, 31, 31, false, false ),
@@ -793,6 +794,7 @@ static const std::vector<twinrx_gain_config_t> LOWBAND4_TABLE{
twinrx_gain_config_t( 92, 56.6, 0, 1, true, true ),
twinrx_gain_config_t( 93, 57.6, 0, 0, true, true ),
};
+// clang-format on
const twinrx_gain_table twinrx_gain_table::lookup_table
(