altos: Make sure we drop the SPI mutex when aborting cc1120 recv branch-1.5
authorKeith Packard <keithp@keithp.com>
Sat, 27 Sep 2014 05:53:39 +0000 (22:53 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 27 Sep 2014 06:00:37 +0000 (23:00 -0700)
commit1b19c9b0c622b79a0fa251fd369eb6834256b4f7
tree769ca889ce8787085961bf19e7f180454be88a12
parent453abb62172324989b38629772f32eddf0c46ea7
altos: Make sure we drop the SPI mutex when aborting cc1120 recv

The cc1120 receive code is 'twisty', in that it acquires the SPI mutex
in the middle of an interrupt handler so that it can quickly start the
radio when the signal comes in. This means we have to be careful to
drop that mutex in all paths which leave the receive code, including
when the packet receive is aborted mid-way through the process.

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