mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-12 16:18:35 -07:00
Launch SubGhz from SD (runs internal subghz) --nobuild
This commit is contained in:
@@ -18,8 +18,21 @@ App(
|
||||
fap_libs=["hwdrivers"],
|
||||
fap_icon="icon.png",
|
||||
fap_category="Sub-GHz",
|
||||
sdk_headers=["subghz_fap.h"],
|
||||
)
|
||||
|
||||
App(
|
||||
appid="subghz_fap",
|
||||
name="SubGHz",
|
||||
apptype=FlipperAppType.EXTERNAL,
|
||||
entry_point="subghz_fap",
|
||||
stack_size=3 * 1024,
|
||||
sources=["subghz_fap.c"],
|
||||
fap_icon="icon.png",
|
||||
fap_category="Sub-GHz",
|
||||
)
|
||||
|
||||
|
||||
App(
|
||||
appid="subghz_start",
|
||||
targets=["f7"],
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
#include <applications/main/archive/helpers/archive_helpers_ext.h>
|
||||
#include <xtreme/xtreme.h>
|
||||
|
||||
#include "subghz_fap.h"
|
||||
|
||||
#define TAG "SubGhzApp"
|
||||
|
||||
bool subghz_custom_event_callback(void* context, uint32_t event) {
|
||||
|
||||
5
applications/main/subghz/subghz_fap.c
Normal file
5
applications/main/subghz/subghz_fap.c
Normal file
@@ -0,0 +1,5 @@
|
||||
#include "subghz_fap.h"
|
||||
|
||||
int32_t subghz_fap(char* p) {
|
||||
return subghz_app(p);
|
||||
}
|
||||
13
applications/main/subghz/subghz_fap.h
Normal file
13
applications/main/subghz/subghz_fap.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int32_t subghz_app(char* p);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user