summaryrefslogtreecommitdiffstats
path: root/host/lib/transport
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-06-07 15:10:37 -0700
committerJosh Blum <josh@joshknows.com>2010-06-07 15:10:37 -0700
commit11e2d407ce4a45da8c6981abfd34883cb9174840 (patch)
tree8f4353da0855ae7a15e223199e83e50646d0b2ed /host/lib/transport
parent0f4eff49c820a8d2ccb38e191604eb86c81b30af (diff)
downloaduhd-11e2d407ce4a45da8c6981abfd34883cb9174840.tar.gz
uhd-11e2d407ce4a45da8c6981abfd34883cb9174840.tar.bz2
uhd-11e2d407ce4a45da8c6981abfd34883cb9174840.zip
Created a common usrp dsp utils to handle register word calculations.
(also switched to boost endian define to avoid c compiler check)
Diffstat (limited to 'host/lib/transport')
-rw-r--r--host/lib/transport/convert_types.cpp3
-rwxr-xr-xhost/lib/transport/gen_vrt.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/host/lib/transport/convert_types.cpp b/host/lib/transport/convert_types.cpp
index 43503025a..374479eee 100644
--- a/host/lib/transport/convert_types.cpp
+++ b/host/lib/transport/convert_types.cpp
@@ -20,6 +20,7 @@
#include <uhd/utils/assert.hpp>
#include <boost/asio.hpp> //endianness conversion
#include <boost/cstdint.hpp>
+#include <boost/detail/endian.hpp>
#include <complex>
using namespace uhd;
@@ -44,7 +45,7 @@ static const float floats_per_short = float(1.0/shorts_per_float);
}
// set a boolean flag that indicates the endianess
-#ifdef HAVE_BIG_ENDIAN
+#ifdef BOOST_BIG_ENDIAN
static const bool is_big_endian = true;
#else
static const bool is_big_endian = false;
diff --git a/host/lib/transport/gen_vrt.py b/host/lib/transport/gen_vrt.py
index 1417240ab..3279ae225 100755
--- a/host/lib/transport/gen_vrt.py
+++ b/host/lib/transport/gen_vrt.py
@@ -33,10 +33,11 @@ TMPL_TEXT = """
\#include <uhd/transport/vrt.hpp>
\#include <uhd/utils/byteswap.hpp>
+\#include <boost/detail/endian.hpp>
\#include <stdexcept>
//define the endian macros to convert integers
-\#ifdef HAVE_BIG_ENDIAN
+\#ifdef BOOST_BIG_ENDIAN
\#define BE_MACRO(x) (x)
\#define LE_MACRO(x) uhd::byteswap(x)
\#else