Skip to content

Commit

Permalink
Ook remote adjustements (#2365)
Browse files Browse the repository at this point in the history
* moved to ook_remote dir

* moved to new filenames / dir

* adjusted build files to new dir/filenames

* changed name of var / dirname

* deleted wrongly included swap files

* Added 'Set' 'Open File'

* Use language API, make it so TX can be started and also stopped

* added send, recv

* fixed the name which was too long

* renamed some fields, moved the ui, added some text informations, renames some variables

* changed to FrequencyField, allow on change, on edit, commented out button_save for a next pass

* added OOK files examples

* added button_save feature
  • Loading branch information
gullradriel authored Nov 18, 2024
1 parent 52b2cb2 commit d31857c
Show file tree
Hide file tree
Showing 12 changed files with 238 additions and 119 deletions.
8 changes: 4 additions & 4 deletions firmware/application/external/external.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ set(EXTCPPSRC
external/ookbrute/main.cpp
external/ookbrute/ui_ookbrute.cpp

#rook
external/rook/main.cpp
external/rook/ui_rook.cpp
#ook_remote
external/ook_remote/main.cpp
external/ook_remote/ui_ook_remote.cpp

#cvs_spam
external/cvs_spam/main.cpp
Expand Down Expand Up @@ -157,7 +157,7 @@ set(EXTAPPLIST
random_password
#acars_rx
ookbrute
rook
ook_remote
shoppingcart_lock
flippertx
)
10 changes: 5 additions & 5 deletions firmware/application/external/external.ld
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ MEMORY
ram_external_app_cvs_spam(rwx) : org = 0xADCB0000, len = 32k
ram_external_app_ookbrute(rwx) : org = 0xADCC0000, len = 32k
ram_external_app_flippertx(rwx) : org = 0xADCD0000, len = 32k
ram_external_app_rook(rwx) : org = 0xADCE0000, len = 32k
ram_external_app_ook_remote(rwx) : org = 0xADCE0000, len = 32k
}

SECTIONS
Expand Down Expand Up @@ -226,11 +226,11 @@ SECTIONS
*(*ui*external_app*ookbrute*);
} > ram_external_app_ookbrute

.external_app_rook : ALIGN(4) SUBALIGN(4)
.external_app_ook_remote : ALIGN(4) SUBALIGN(4)
{
KEEP(*(.external_app.app_rook.application_information));
*(*ui*external_app*rook*);
} > ram_external_app_rook
KEEP(*(.external_app.app_ook_remote.application_information));
*(*ui*external_app*ook_remote*);
} > ram_external_app_ook_remote

.external_app_flippertx : ALIGN(4) SUBALIGN(4)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,25 @@
*/

#include "ui.hpp"
#include "ui_rook.hpp"
#include "ui_ook_remote.hpp"
#include "ui_navigation.hpp"
#include "external_app.hpp"

namespace ui::external_app::rook {
namespace ui::external_app::ook_remote {
void initialize_app(ui::NavigationView& nav) {
nav.push<ROOKAppView>();
nav.push<OOKRemoteAppView>();
}
} // namespace ui::external_app::rook
} // namespace ui::external_app::ook_remote

extern "C" {

__attribute__((section(".external_app.app_rook.application_information"), used)) application_information_t _application_information_rook = {
__attribute__((section(".external_app.app_ook_remote.application_information"), used)) application_information_t _application_information_ook_remote = {
/*.memory_location = */ (uint8_t*)0x00000000,
/*.externalAppEntry = */ ui::external_app::rook::initialize_app,
/*.externalAppEntry = */ ui::external_app::ook_remote::initialize_app,
/*.header_version = */ CURRENT_HEADER_VERSION,
/*.app_version = */ VERSION_MD5,

/*.app_name = */ "ROOK",
/*.app_name = */ "OOKRemote",
/*.bitmap_data = */ {
0x20,
0x00,
Expand Down Expand Up @@ -79,4 +79,4 @@ __attribute__((section(".external_app.app_rook.application_information"), used))
/*.m4_app_tag = portapack::spi_flash::image_tag_ook */ {'P', 'O', 'O', 'K'},
/*.m4_app_offset = */ 0x00000000, // will be filled at compile time
};
}
}
Loading

0 comments on commit d31857c

Please sign in to comment.