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)
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>

No differences found