diff options
author | Josh Blum <josh@joshknows.com> | 2010-04-16 22:10:35 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-04-16 22:10:35 -0700 |
commit | 8375ae721cd819b54fae4cc22e76285552033945 (patch) | |
tree | 5f2140a4e358d9f5259c617d17316d1a6ee17fdf /host/lib/types.cpp | |
parent | 632ca4afbbc2e383b956a7abe8e35ee1020c7306 (diff) | |
download | uhd-8375ae721cd819b54fae4cc22e76285552033945.tar.gz uhd-8375ae721cd819b54fae4cc22e76285552033945.tar.bz2 uhd-8375ae721cd819b54fae4cc22e76285552033945.zip |
moved spi and i2c api into serial.hpp, its used for more than the dboard interfacing
Diffstat (limited to 'host/lib/types.cpp')
-rw-r--r-- | host/lib/types.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/host/lib/types.cpp b/host/lib/types.cpp index 0fd2522cf..2a687f34f 100644 --- a/host/lib/types.cpp +++ b/host/lib/types.cpp @@ -25,6 +25,7 @@ #include <uhd/types/mac_addr.hpp> #include <uhd/types/otw_type.hpp> #include <uhd/types/io_type.hpp> +#include <uhd/types/serial.hpp> #include <boost/algorithm/string.hpp> #include <boost/math/special_functions/round.hpp> #include <boost/foreach.hpp> @@ -243,3 +244,11 @@ io_type_t::io_type_t(size_t size) : size(size), tid(CUSTOM_TYPE){ /* NOP */ } + +/*********************************************************************** + * serial + **********************************************************************/ +spi_config_t::spi_config_t(edge_t edge){ + mosi_edge = edge; + miso_edge = edge; +} |