altos: Rework packet receive for cc1120
authorKeith Packard <keithp@keithp.com>
Sat, 5 Jul 2014 07:04:06 +0000 (00:04 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 5 Jul 2014 07:38:10 +0000 (00:38 -0700)
commit292cb8380b478542555b5f370e8252eafa2f74ac
treec596a045bf49faefe845e42539691db7adbca8cc
parente0ee2ac6bc68b73e13bf34fac3ffd4a3b79dce98
altos: Rework packet receive for cc1120

Instead of blocking on PQT, just set up the receiver to start going
and when the first bit interrupt comes in, grab the SPI bus if
possible and configure it for reception. This improves sensitivity in
the radio by a significant amount while making the code conceptually a
bit nicer.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/cc1111/ao_pins.h
src/drivers/ao_cc1120.c
src/kernel/ao.h
src/kernel/ao_mutex.c
src/lpc/ao_arch_funcs.h
src/stm/ao_arch_funcs.h
src/stm/ao_spi_stm.c