NFC: application + rfal + driver.

This commit is contained in:
Aleksandr Kutuzov
2020-10-19 01:09:48 +03:00
parent 13608cee9e
commit 4c9eb4928d
72 changed files with 42732 additions and 24 deletions

View File

@@ -3,6 +3,7 @@
#include <stdio.h>
#include <flipper.h>
void st25r3916Isr(void);
static volatile bool initialized = false;
static SemaphoreHandle_t event;
static InputState input_state = {
@@ -104,6 +105,8 @@ void HAL_GPIO_EXTI_Callback(uint16_t pin) {
BaseType_t task_woken = pdFALSE;
st25r3916Isr();
// Ignore the result, as we do not care about repeated event during event processing.
xSemaphoreGiveFromISR(event, &task_woken);