altos: Make sure we drop the SPI mutex when aborting cc1120 recv
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:01:18 +0000 (23:01 -0700)
commitb4eba3f3a58a9c35e3699ff14405b997c1318d91
tree065d882a65ef1744d71d34ac1843ecbb61389d88
parent22661ba69b8919116092382f1f5aa0dc79d02cc9
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