|
@@ -3,7 +3,10 @@
|
|
|
#include <stdio.h>
|
|
#include <stdio.h>
|
|
|
#include <flipper.h>
|
|
#include <flipper.h>
|
|
|
|
|
|
|
|
|
|
+#ifdef APP_NFC
|
|
|
void st25r3916Isr(void);
|
|
void st25r3916Isr(void);
|
|
|
|
|
+#endif
|
|
|
|
|
+
|
|
|
static volatile bool initialized = false;
|
|
static volatile bool initialized = false;
|
|
|
static SemaphoreHandle_t event;
|
|
static SemaphoreHandle_t event;
|
|
|
static InputState input_state = {
|
|
static InputState input_state = {
|
|
@@ -101,10 +104,12 @@ void input_task(void* p) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
void HAL_GPIO_EXTI_Callback(uint16_t pin) {
|
|
void HAL_GPIO_EXTI_Callback(uint16_t pin) {
|
|
|
|
|
+#ifdef APP_NFC
|
|
|
if(pin == RFID_PULL_Pin) {
|
|
if(pin == RFID_PULL_Pin) {
|
|
|
st25r3916Isr();
|
|
st25r3916Isr();
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
if(!initialized) return;
|
|
if(!initialized) return;
|
|
|
|
|
|