diff options
author | Josh Blum <josh@joshknows.com> | 2011-06-20 07:59:09 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-06-20 07:59:09 -0700 |
commit | e0af09e96509ee091ca94cbe64dd818a4a221fdd (patch) | |
tree | 4e7c5f7bed13675d57db5bb03ffd3ce6ebac731a /host/lib/usrp | |
parent | c7f848ab0da69e54c88ad36bde94b9fe665f386e (diff) | |
download | uhd-e0af09e96509ee091ca94cbe64dd818a4a221fdd.tar.gz uhd-e0af09e96509ee091ca94cbe64dd818a4a221fdd.tar.bz2 uhd-e0af09e96509ee091ca94cbe64dd818a4a221fdd.zip |
b100: also spi wait before using spi to ensure its ready
Diffstat (limited to 'host/lib/usrp')
-rw-r--r-- | host/lib/usrp/b100/b100_iface.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/host/lib/usrp/b100/b100_iface.cpp b/host/lib/usrp/b100/b100_iface.cpp index 402560c33..f0e241541 100644 --- a/host/lib/usrp/b100/b100_iface.cpp +++ b/host/lib/usrp/b100/b100_iface.cpp @@ -282,6 +282,7 @@ public: boost::uint16_t ctrl = SPI_CTRL_ASS | (SPI_CTRL_CHAR_LEN_MASK & num_bits) | edge_flags; + spi_wait(); poke16(B100_REG_SPI_DIV, 0x0001); // = fpga_clk / 4 poke32(B100_REG_SPI_SS, which_slave & 0xFFFF); poke32(B100_REG_SPI_TXRX0, bits); |