Implement LF RFID emulation (#208)

* migrate code from old repo, not work
* fix emulation
* disable irq handling while RFID emulating
* add testcase
This commit is contained in:
coreglitch
2020-10-28 14:38:04 +06:00
committed by GitHub
parent 665f6d7d9c
commit de968b13b4
6 changed files with 130 additions and 3 deletions

View File

@@ -4,7 +4,7 @@
#include <flipper_v2.h>
#ifdef APP_NFC
void st25r3916Isr(void);
void nfc_isr(void);
#endif
static volatile bool initialized = false;
@@ -104,7 +104,7 @@ void input_task(void* p) {
void HAL_GPIO_EXTI_Callback(uint16_t pin) {
#ifdef APP_NFC
if(pin == RFID_PULL_Pin) {
st25r3916Isr();
nfc_isr();
return;
}
#endif