From c7f848ab0da69e54c88ad36bde94b9fe665f386e Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Fri, 17 Jun 2011 06:31:36 +0100 Subject: e100: implemented spi, i2c, messages w/ peek/poke spi and i2c are done w/ polling, but this is ok, the transactions always complete by the first check a gpio is used to wake up poll() and check for messages. messages are read using poke32, unpacked, and enqueued. --- host/lib/usrp/e100/e100_impl.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'host/lib/usrp/e100/e100_impl.cpp') diff --git a/host/lib/usrp/e100/e100_impl.cpp b/host/lib/usrp/e100/e100_impl.cpp index 40ae20eaa..aa87b87dd 100644 --- a/host/lib/usrp/e100/e100_impl.cpp +++ b/host/lib/usrp/e100/e100_impl.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -155,9 +156,9 @@ e100_impl::e100_impl( _iface(iface), _clock_ctrl(clock_ctrl), _codec_ctrl(e100_codec_ctrl::make(_iface)), - _data_xport(e100_make_mmap_zero_copy(_iface)), - _recv_frame_size(std::min(_data_xport->get_recv_frame_size(), size_t(device_addr.cast("recv_frame_size", 1e9)))), - _send_frame_size(std::min(_data_xport->get_send_frame_size(), size_t(device_addr.cast("send_frame_size", 1e9)))) + _data_transport(e100_make_mmap_zero_copy(_iface)), + _recv_frame_size(std::min(_data_transport->get_recv_frame_size(), size_t(device_addr.cast("recv_frame_size", 1e9)))), + _send_frame_size(std::min(_data_transport->get_send_frame_size(), size_t(device_addr.cast("send_frame_size", 1e9)))) { //setup otw types -- cgit v1.2.3