From 988c6e9e08c801a108338a3256e69ad7d41b81bf Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Wed, 17 Feb 2016 13:15:41 +0100 Subject: [PATCH] cc2520: Remove useless gpio logic cc2520 does not need to clear any gpio interruption as it does not deal with the low level gpio hardware directly. Change-Id: Ic568e817b23b879cdf7da791417a4a6e1f95d34a Signed-off-by: Tomasz Bursztyka --- drivers/802.15.4/cc2520.c | 3 --- drivers/802.15.4/cc2520_arch.h | 5 ----- 2 files changed, 8 deletions(-) diff --git a/drivers/802.15.4/cc2520.c b/drivers/802.15.4/cc2520.c index bd1c3c65a8c..cfc0041b378 100644 --- a/drivers/802.15.4/cc2520.c +++ b/drivers/802.15.4/cc2520.c @@ -111,7 +111,6 @@ static bool init_ok; #define CC2520_ENABLE_FIFOP_INT() cc2520_enable_fifop_int(1) #define CC2520_DISABLE_FIFOP_INT() cc2520_enable_fifop_int(0) #define CC2520_FIFOP_INT_INIT() cc2520_init_fifop_int(cc2520_gpio_int_handler) -#define CC2520_CLEAR_FIFOP_INT() cc2520_clear_fifop_int() #define SET_VREG_ACTIVE() cc2520_set_vreg(1) #define SET_VREG_INACTIVE() cc2520_set_vreg(0) #define SET_RESET_ACTIVE() cc2520_set_reset(0) @@ -957,8 +956,6 @@ static void cc2520_gpio_int_handler(struct device *port, uint32_t pin) * instance */ - CC2520_CLEAR_FIFOP_INT(); - nano_isr_sem_give(&info->read_lock); } diff --git a/drivers/802.15.4/cc2520_arch.h b/drivers/802.15.4/cc2520_arch.h index b9c17835598..343554c2a07 100644 --- a/drivers/802.15.4/cc2520_arch.h +++ b/drivers/802.15.4/cc2520_arch.h @@ -286,11 +286,6 @@ static inline void cc2520_enable_fifop_int(int enable) } } -static inline void cc2520_clear_fifop_int(void) -{ - /* Do nothing */ -} - static inline void cc2520_init_fifop_int(cc2520_gpio_int_handler_t handler) { gpio_set_callback(CC2520_GPIO(FIFOP), handler);