[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,6 +10,8 @@ typedef struct {
|
||||
const IconName icon;
|
||||
} FlipperApplication;
|
||||
|
||||
typedef void (*FlipperOnStartHook)(void);
|
||||
|
||||
/* Services list
|
||||
* Spawned on startup
|
||||
*/
|
||||
@@ -22,6 +24,12 @@ extern const size_t FLIPPER_SERVICES_COUNT;
|
||||
extern const FlipperApplication FLIPPER_APPS[];
|
||||
extern const size_t FLIPPER_APPS_COUNT;
|
||||
|
||||
/* On system start hooks
|
||||
* Called by app-loader, after OS initialization complete
|
||||
*/
|
||||
extern const FlipperOnStartHook FLIPPER_ON_SYSTEM_START[];
|
||||
extern const size_t FLIPPER_ON_SYSTEM_START_COUNT;
|
||||
|
||||
/* Plugins list
|
||||
* Spawned by app-loader
|
||||
*/
|
||||
|
Reference in New Issue
Block a user