From 7c0d0e30f56a4d6674d6c7fff3ddcda1f7c23fe5 Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 11 Aug 2017 12:35:14 +0200 Subject: [PATCH] Loco deck has an option for alternative pins for IRQ and RESET. This is the implementation that changes to the alternative pins set in the config.mk --- src/deck/drivers/src/locodeck.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/deck/drivers/src/locodeck.c b/src/deck/drivers/src/locodeck.c index 0cf2ca0708..1c24962f47 100644 --- a/src/deck/drivers/src/locodeck.c +++ b/src/deck/drivers/src/locodeck.c @@ -262,20 +262,9 @@ static void spiRead(dwDevice_t* dev, const void *header, size_t headerLength, #if LOCODECK_USE_ALT_PINS void __attribute__((used)) EXTI5_Callback(void) - { - portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE; - - NVIC_ClearPendingIRQ(EXTI_IRQChannel); - EXTI_ClearITPendingBit(EXTI_LineN); - - //To unlock RadioTask - xSemaphoreGiveFromISR(irqSemaphore, &xHigherPriorityTaskWoken); - - if(xHigherPriorityTaskWoken) - portYIELD(); - } #else void __attribute__((used)) EXTI11_Callback(void) +#endif { portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE; @@ -288,9 +277,6 @@ static void spiRead(dwDevice_t* dev, const void *header, size_t headerLength, if(xHigherPriorityTaskWoken) portYIELD(); } -#endif - - static void spiSetSpeed(dwDevice_t* dev, dwSpiSpeed_t speed) {