From e0af09e96509ee091ca94cbe64dd818a4a221fdd Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 20 Jun 2011 07:59:09 -0700 Subject: b100: also spi wait before using spi to ensure its ready --- host/lib/usrp/b100/b100_iface.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'host/lib/usrp') 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); -- cgit v1.2.3