NFC: add interrupt routine only if APP_NFC is defined

This commit is contained in:
Aleksandr Kutuzov 2020-10-19 13:36:40 +03:00
parent 785469f598
commit d27b93c1ca

View File

@ -3,7 +3,10 @@
#include <stdio.h>
#include <flipper.h>
#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;