From aa9eb5264f1a2926cdc92ff9db352d366d6ebc68 Mon Sep 17 00:00:00 2001 From: Antonio Lignan Date: Tue, 24 Nov 2015 17:06:34 +0100 Subject: [PATCH] Fixed warning related to gpio_callback_t type --- platform/zoul/dev/cc1200-zoul-arch.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/platform/zoul/dev/cc1200-zoul-arch.c b/platform/zoul/dev/cc1200-zoul-arch.c index ac5d05a8f..0df21a037 100644 --- a/platform/zoul/dev/cc1200-zoul-arch.c +++ b/platform/zoul/dev/cc1200-zoul-arch.c @@ -92,6 +92,13 @@ extern int cc1200_rx_interrupt(void); /*---------------------------------------------------------------------------*/ void +cc1200_int_handler(uint8_t port, uint8_t pin) +{ + /* To keep the gpio_register_callback happy */ + cc1200_rx_interrupt(); +} +/*---------------------------------------------------------------------------*/ +void cc1200_arch_spi_select(void) { /* Set CSn to low (0) */ @@ -177,7 +184,7 @@ cc1200_arch_gpio0_setup_irq(int rising) GPIO_ENABLE_INTERRUPT(CC1200_GDO0_PORT_BASE, CC1200_GDO0_PIN_MASK); ioc_set_over(CC1200_GDO0_PORT, CC1200_GDO0_PIN, IOC_OVERRIDE_PUE); nvic_interrupt_enable(CC1200_GPIOx_VECTOR); - gpio_register_callback(cc1200_rx_interrupt, CC1200_GDO0_PORT, + gpio_register_callback(cc1200_int_handler, CC1200_GDO0_PORT, CC1200_GDO0_PIN); } /*---------------------------------------------------------------------------*/ @@ -199,7 +206,7 @@ cc1200_arch_gpio2_setup_irq(int rising) GPIO_ENABLE_INTERRUPT(CC1200_GDO2_PORT_BASE, CC1200_GDO2_PIN_MASK); ioc_set_over(CC1200_GDO2_PORT, CC1200_GDO2_PIN, IOC_OVERRIDE_PUE); nvic_interrupt_enable(CC1200_GPIOx_VECTOR); - gpio_register_callback(cc1200_rx_interrupt, CC1200_GDO2_PORT, + gpio_register_callback(cc1200_int_handler, CC1200_GDO2_PORT, CC1200_GDO2_PIN); } /*---------------------------------------------------------------------------*/