aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/b200/b200_uart.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/usrp/b200/b200_uart.cpp')
-rw-r--r--host/lib/usrp/b200/b200_uart.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/host/lib/usrp/b200/b200_uart.cpp b/host/lib/usrp/b200/b200_uart.cpp
index 065aa49ce..3c49ebf2a 100644
--- a/host/lib/usrp/b200/b200_uart.cpp
+++ b/host/lib/usrp/b200/b200_uart.cpp
@@ -30,7 +30,7 @@ using namespace uhd::transport;
struct b200_uart_impl : b200_uart
{
- b200_uart_impl(zero_copy_if::sptr xport, const boost::uint32_t sid):
+ b200_uart_impl(zero_copy_if::sptr xport, const uint32_t sid):
_xport(xport),
_sid(sid),
_count(0),
@@ -49,7 +49,7 @@ struct b200_uart_impl : b200_uart
packet_info.link_type = vrt::if_packet_info_t::LINK_TYPE_CHDR;
packet_info.packet_type = vrt::if_packet_info_t::PACKET_TYPE_CONTEXT;
packet_info.num_payload_words32 = 2;
- packet_info.num_payload_bytes = packet_info.num_payload_words32*sizeof(boost::uint32_t);
+ packet_info.num_payload_bytes = packet_info.num_payload_words32*sizeof(uint32_t);
packet_info.packet_count = _count++;
packet_info.sob = false;
packet_info.eob = false;
@@ -60,11 +60,11 @@ struct b200_uart_impl : b200_uart
packet_info.has_tsf = false;
packet_info.has_tlr = false;
- boost::uint32_t *packet_buff = buff->cast<boost::uint32_t *>();
+ uint32_t *packet_buff = buff->cast<uint32_t *>();
vrt::if_hdr_pack_le(packet_buff, packet_info);
- packet_buff[packet_info.num_header_words32+0] = uhd::htowx(boost::uint32_t(_baud_div));
- packet_buff[packet_info.num_header_words32+1] = uhd::htowx(boost::uint32_t(ch));
- buff->commit(packet_info.num_packet_words32*sizeof(boost::uint32_t));
+ packet_buff[packet_info.num_header_words32+0] = uhd::htowx(uint32_t(_baud_div));
+ packet_buff[packet_info.num_header_words32+1] = uhd::htowx(uint32_t(ch));
+ buff->commit(packet_info.num_packet_words32*sizeof(uint32_t));
}
void write_uart(const std::string &buff)
@@ -84,10 +84,10 @@ struct b200_uart_impl : b200_uart
void handle_uart_packet(managed_recv_buffer::sptr buff)
{
- const boost::uint32_t *packet_buff = buff->cast<const boost::uint32_t *>();
+ const uint32_t *packet_buff = buff->cast<const uint32_t *>();
vrt::if_packet_info_t packet_info;
packet_info.link_type = vrt::if_packet_info_t::LINK_TYPE_CHDR;
- packet_info.num_packet_words32 = buff->size()/sizeof(boost::uint32_t);
+ packet_info.num_packet_words32 = buff->size()/sizeof(uint32_t);
vrt::if_hdr_unpack_le(packet_buff, packet_info);
const char ch = char(uhd::wtohx(packet_buff[packet_info.num_header_words32+1]));
_line += ch;
@@ -99,7 +99,7 @@ struct b200_uart_impl : b200_uart
}
const zero_copy_if::sptr _xport;
- const boost::uint32_t _sid;
+ const uint32_t _sid;
size_t _count;
size_t _baud_div;
bounded_buffer<std::string> _line_queue;
@@ -107,7 +107,7 @@ struct b200_uart_impl : b200_uart
};
-b200_uart::sptr b200_uart::make(zero_copy_if::sptr xport, const boost::uint32_t sid)
+b200_uart::sptr b200_uart::make(zero_copy_if::sptr xport, const uint32_t sid)
{
return b200_uart::sptr(new b200_uart_impl(xport, sid));
}