From d27b93c1ca60124def65f2c59b73dca9db9cc192 Mon Sep 17 00:00:00 2001 From: Aleksandr Kutuzov Date: Mon, 19 Oct 2020 13:36:40 +0300 Subject: [PATCH] NFC: add interrupt routine only if APP_NFC is defined --- applications/input/input.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/applications/input/input.c b/applications/input/input.c index f647f06e..814cb2fb 100644 --- a/applications/input/input.c +++ b/applications/input/input.c @@ -3,7 +3,10 @@ #include #include +#ifdef APP_NFC void st25r3916Isr(void); +#endif + static volatile bool initialized = false; static SemaphoreHandle_t event; static InputState input_state = { @@ -101,10 +104,12 @@ void input_task(void* p) { } void HAL_GPIO_EXTI_Callback(uint16_t pin) { +#ifdef APP_NFC if(pin == RFID_PULL_Pin) { st25r3916Isr(); return; } +#endif if(!initialized) return;