[FL-1214] NFC application (#448)
* platform: include only used api-hal files * api-hal-nfc: introduce nfc hal * nfc_worker: rework nfc worker * nfc: move nfc from services to applications, add startup hook * api-hal-nfc: init nfc worker in api_hal_detect * nfc: rework nfc application * nfc: fix app exit * api-hal-nfc: init nfc worker only once
This commit is contained in:
@@ -10,7 +10,9 @@
|
||||
#include "math.h"
|
||||
#include "spi.h"
|
||||
#include "main.h"
|
||||
#include <api-hal.h>
|
||||
#include <api-hal-gpio.h>
|
||||
#include <api-hal-light.h>
|
||||
#include <api-hal-spi.h>
|
||||
|
||||
typedef void (*PlatformIrqCallback)();
|
||||
void platformSetIrqCallback(PlatformIrqCallback cb);
|
||||
|
@@ -36,7 +36,7 @@ C_SOURCES += $(FATFS_DIR)/ff_gen_drv.c
|
||||
C_SOURCES += $(FATFS_DIR)/diskio.c
|
||||
C_SOURCES += $(FATFS_DIR)/option/unicode.c
|
||||
|
||||
ifeq ($(SRV_NFC), 1)
|
||||
ifeq ($(APP_NFC), 1)
|
||||
ST25RFAL002_DIR = $(LIB_DIR)/ST25RFAL002
|
||||
CFLAGS += -I$(ST25RFAL002_DIR)
|
||||
CFLAGS += -I$(ST25RFAL002_DIR)/include
|
||||
|
Reference in New Issue
Block a user