altos: clean up radio abort paths. Share radio code.
authorKeith Packard <keithp@keithp.com>
Sat, 27 Nov 2010 00:14:15 +0000 (16:14 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 23 Dec 2010 04:39:40 +0000 (20:39 -0800)
commit07213dc34fa20470a4b36a327a83d75b0f010ebb
treea85d444ab7d2ccf01153c15e6fb2adf8473b602f
parentb62580855c5144f5bc7e0172289bce08814d9472
altos: clean up radio abort paths. Share radio code.

Instead of aborting the DMA and radio operation and expecting that to
be handled reasonably by the radio receiving task, rewrite things so
that the abort function just wakes the receiving task while that
terminates the DMA and cleans up the radio.

This eliminates all kinds of nasty bugs dealing with radio abort
smashing the radio registers at the wrong time, or interrupting a
radio transmission.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/ao.h
src/ao_config.c
src/ao_dma.c
src/ao_monitor.c
src/ao_packet.c
src/ao_packet_master.c
src/ao_packet_slave.c
src/ao_radio.c
src/ao_telemetry.c