altos: Remove ao_radio_gpio_bits from normal build
authorKeith Packard <keithp@keithp.com>
Mon, 24 Jun 2013 21:29:43 +0000 (14:29 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 3 Jul 2013 00:55:24 +0000 (17:55 -0700)
Only needed for the CC115L_TRACE code, and it only builds on STM

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

index 05e6a762ecc722854d3f24579eb40dff07101c55..56afc3c75229c98aed314f1a92eca82ae4b6ed69 100644 (file)
@@ -655,12 +655,14 @@ ao_radio_test_cmd(void)
        }
 }
 
+#if CC115L_TRACE
 static inline int16_t
 ao_radio_gpio_bits(void)
 {
        return AO_CC115L_DONE_INT_PORT->idr & ((1 << AO_CC115L_FIFO_INT_PIN) |
                                               (1 << AO_CC115L_DONE_INT_PIN));
 }
+#endif
 
 static void
 ao_radio_wait_fifo(void)