altos: cc1200: use FIFO threshold pin output for APRS buffering
authorKeith Packard <keithp@keithp.com>
Wed, 29 Jun 2016 19:49:16 +0000 (12:49 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 30 Jun 2016 02:17:45 +0000 (19:17 -0700)
commit3b3a24f5f39a1b72cc8947c33b609f454b46aff8
tree8652bd5cff63e1a6779d04427337056dcbf6f6b5
parent658d8be170f9aea683fe62b68368736a177411a5
altos: cc1200: use FIFO threshold pin output for APRS buffering

Instead of polling the device for fifo space, just use the available
pin configuration to figure out if there is enough space for a single
APRS buffer. Then set the APRS buffer size to match the fifo threshold
setting in the chip so that we know we can write the whole APRS buffer
once the pin says there's space.

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