Launch SubGhz from SD (runs internal subghz) --nobuild

This commit is contained in:
Willy-JL
2024-02-06 18:21:04 +00:00
parent 97d9fdb9b8
commit 7b684a4b56
5 changed files with 35 additions and 0 deletions

View File

@@ -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"],

View File

@@ -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) {

View File

@@ -0,0 +1,5 @@
#include "subghz_fap.h"
int32_t subghz_fap(char* p) {
return subghz_app(p);
}

View File

@@ -0,0 +1,13 @@
#pragma once
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
int32_t subghz_app(char* p);
#ifdef __cplusplus
}
#endif