Nfc: replace cmsis thread with furi, fix condition race in thread stop routine. (#1003)

* Nfc: replace cmsis thread with furi, fix condition race on thread stop routine.
* Nfc: fix memory leak
* FuriCore, CMSIS: properly handle thread names before scheduler start
This commit is contained in:
あく
2022-02-19 02:38:44 +03:00
committed by GitHub
parent ddd909faa0
commit 3c77ae2eb8
4 changed files with 25 additions and 9 deletions

View File

@@ -17,8 +17,7 @@
#include <st25r3916_irq.h>
struct NfcWorker {
osThreadAttr_t thread_attr;
osThreadId_t thread;
FuriThread* thread;
NfcDeviceData* dev_data;
@@ -30,7 +29,7 @@ struct NfcWorker {
void nfc_worker_change_state(NfcWorker* nfc_worker, NfcWorkerState state);
void nfc_worker_task(void* context);
int32_t nfc_worker_task(void* context);
void nfc_worker_read_emv_app(NfcWorker* nfc_worker);