altos: Clear any broken cc1120 TX fifo bits before transmitting
authorKeith Packard <keithp@keithp.com>
Mon, 29 Apr 2013 06:05:18 +0000 (23:05 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 8 May 2013 03:07:52 +0000 (20:07 -0700)
commitf09b2fc7fcfb1b3dcb1a46a8b9856092dd59866b
tree8df57a5c9f3260149645ed7889f32eb06601eb7f
parentb878ca38045b1bee6ea4d649298727ac3fa197c2
altos: Clear any broken cc1120 TX fifo bits before transmitting

This just goes and clears the transmitter before using it, just in
case it got wedged somehow. It also clears the bits while waiting for
the radio to go idle, otherwise it'd never make it.

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