altos/lpc: Create TX/RX busy macros for SPI driver
authorKeith Packard <keithp@keithp.com>
Mon, 20 May 2013 03:22:20 +0000 (20:22 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 20 May 2013 03:39:19 +0000 (20:39 -0700)
commite383d7a28d01729c50f933ceda77ea767d1b8087
treed0bda7f5d7933ee75523e0db2158fb88daf58a6d
parent07d261c08214837b5d5cac4d2be43e51a0c47868
altos/lpc: Create TX/RX busy macros for SPI driver

Check for both fifo status *and* device busy to make sure the device
is idle before we touch any registers.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/lpc/ao_spi_lpc.c