From: Keith Packard Date: Mon, 24 Jun 2013 21:29:43 +0000 (-0700) Subject: altos: Remove ao_radio_gpio_bits from normal build X-Git-Tag: 1.2.9.4~143 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=d95a2c5d1ddce913dcb1d1ab5dc59f6a588ab599;ds=sidebyside altos: Remove ao_radio_gpio_bits from normal build Only needed for the CC115L_TRACE code, and it only builds on STM Signed-off-by: Keith Packard --- diff --git a/src/drivers/ao_cc115l.c b/src/drivers/ao_cc115l.c index 05e6a762..56afc3c7 100644 --- a/src/drivers/ao_cc115l.c +++ b/src/drivers/ao_cc115l.c @@ -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)