-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move part of the CLI to microsd to free up space for COMPACT 0 builds
CLI wrapper and idea by Willy-JL
- Loading branch information
Showing
18 changed files
with
202 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include <cli/cli_i.h> | ||
|
||
static void ibutton_cli_wrapper(Cli* cli, FuriString* args, void* context) { | ||
cli_plugin_wrapper("ibutton", cli, args, context); | ||
} | ||
|
||
void ibutton_on_system_start(void) { | ||
Cli* cli = furi_record_open(RECORD_CLI); | ||
cli_add_command(cli, "ikey", CliCommandFlagDefault, ibutton_cli_wrapper, cli); | ||
furi_record_close(RECORD_CLI); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include <cli/cli_i.h> | ||
|
||
static void infrared_cli_start_ir_wrapper(Cli* cli, FuriString* args, void* context) { | ||
cli_plugin_wrapper("infrared", cli, args, context); | ||
} | ||
|
||
void infrared_on_system_start(void) { | ||
Cli* cli = (Cli*)furi_record_open(RECORD_CLI); | ||
cli_add_command(cli, "ir", CliCommandFlagDefault, infrared_cli_start_ir_wrapper, NULL); | ||
furi_record_close(RECORD_CLI); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include <cli/cli_i.h> | ||
|
||
static void lfrfid_cli_wrapper(Cli* cli, FuriString* args, void* context) { | ||
cli_plugin_wrapper("lfrfid", cli, args, context); | ||
} | ||
|
||
void lfrfid_on_system_start(void) { | ||
Cli* cli = furi_record_open(RECORD_CLI); | ||
cli_add_command(cli, "rfid", CliCommandFlagDefault, lfrfid_cli_wrapper, NULL); | ||
furi_record_close(RECORD_CLI); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include <cli/cli_i.h> | ||
|
||
static void nfc_cli_wrapper(Cli* cli, FuriString* args, void* context) { | ||
cli_plugin_wrapper("nfc", cli, args, context); | ||
} | ||
|
||
void nfc_on_system_start(void) { | ||
Cli* cli = furi_record_open(RECORD_CLI); | ||
cli_add_command(cli, "nfc", CliCommandFlagDefault, nfc_cli_wrapper, NULL); | ||
furi_record_close(RECORD_CLI); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,16 @@ | ||
App( | ||
appid="onewire_cli", | ||
targets=["f7"], | ||
apptype=FlipperAppType.PLUGIN, | ||
entry_point="onewire_cli_plugin_ep", | ||
requires=["cli"], | ||
sources=["onewire_cli.c"], | ||
) | ||
|
||
App( | ||
appid="onewire_start", | ||
apptype=FlipperAppType.STARTUP, | ||
entry_point="onewire_on_system_start", | ||
sources=["onewire_start.c"], | ||
order=60, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include <cli/cli_i.h> | ||
|
||
static void onewire_cli_wrapper(Cli* cli, FuriString* args, void* context) { | ||
cli_plugin_wrapper("onewire", cli, args, context); | ||
} | ||
|
||
void onewire_on_system_start(void) { | ||
Cli* cli = furi_record_open(RECORD_CLI); | ||
cli_add_command(cli, "onewire", CliCommandFlagDefault, onewire_cli_wrapper, cli); | ||
furi_record_close(RECORD_CLI); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.