altos/cc1200: Wait for packet to be placed in FIFO during receive
authorKeith Packard <keithp@keithp.com>
Mon, 24 Nov 2014 02:31:15 +0000 (18:31 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 24 Nov 2014 02:31:15 +0000 (18:31 -0800)
commiteabeb76a2a9acb624ae364c4f0f315bfc3549d98
treea575992598ad235933dd24a23b96f7924cc195ae
parent2163f6e6b341b7840f03e89d568699b8ea186435
altos/cc1200: Wait for packet to be placed in FIFO during receive

This changes the receive code to use MCU_STATUS, waiting for
MARC_STATUS1 to indicate that the packet is in the fifo before reading
it out.

It also fixes the receive timeout code to keep receiving if the
preamble or sync have been seen when the timeout fires. This makes
TeleLCO able to use short timeouts during scanning while still
successfully receiving packets.

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