altos: Wire up another CC1120 GPIO to get MARC status changes
authorKeith Packard <keithp@keithp.com>
Mon, 17 Dec 2012 00:04:05 +0000 (16:04 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 17 Dec 2012 00:04:05 +0000 (16:04 -0800)
commit22a58b0f9b82ea8c7abeda79ca7a4cd21c3dc93c
treeb7e3bae3670fc0e4b55571f3ea9abee48bf841ee
parent4e3ac3f2038cc3a43252fc8f820a1373a637ab83
altos: Wire up another CC1120 GPIO to get MARC status changes

When the radio drops out of RX or TX mode due to an error, it changes
the MARC status, and sends pulse down a configured GPIO. Use this to
tell when something 'bad' happened during TX or RX so that we can
recover from losing the SPI bus in the middle of transmission or
reception.

Without this, the radio would change state and we'd never know,
leaving the radio code waiting for an interrupt that would never arrive.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_cc1120.c
src/drivers/ao_m25.c
src/megadongle-v0.1/ao_pins.h
src/megametrum-v0.1/ao_megametrum.c
src/megametrum-v0.1/ao_pins.h