Skip to content

Commit 59f72cb

Browse files
authored
Flipper sub (raw+binraw AND ONLY OOK) TX (#2361)
1 parent 31c53dc commit 59f72cb

13 files changed

+888
-33
lines changed

firmware/application/external/external.cmake

+7-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,12 @@ set(EXTCPPSRC
117117

118118
#cvs_spam
119119
external/cvs_spam/main.cpp
120-
external/cvs_spam/cvs_spam.cpp
120+
external/cvs_spam/cvs_spam.cpp
121+
122+
#flippertx
123+
external/flippertx/main.cpp
124+
external/flippertx/ui_flippertx.cpp
125+
121126
)
122127

123128
set(EXTAPPLIST
@@ -149,4 +154,5 @@ set(EXTAPPLIST
149154
#acars_rx
150155
ookbrute
151156
shoppingcart_lock
157+
flippertx
152158
)

firmware/application/external/external.ld

+7
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ MEMORY
5151
ram_external_app_shoppingcart_lock(rwx) : org = 0xADCA0000, len = 32k
5252
ram_external_app_cvs_spam(rwx) : org = 0xADCB0000, len = 32k
5353
ram_external_app_ookbrute(rwx) : org = 0xADCC0000, len = 32k
54+
ram_external_app_flippertx(rwx) : org = 0xADCD0000, len = 32k
5455
}
5556

5657
SECTIONS
@@ -224,4 +225,10 @@ SECTIONS
224225
*(*ui*external_app*ookbrute*);
225226
} > ram_external_app_ookbrute
226227

228+
.external_app_flippertx : ALIGN(4) SUBALIGN(4)
229+
{
230+
KEEP(*(.external_app.app_flippertx.application_information));
231+
*(*ui*external_app*flippertx*);
232+
} > ram_external_app_flippertx
233+
227234
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
/*
2+
* Copyright (C) 2023 Bernd Herzog
3+
*
4+
* This file is part of PortaPack.
5+
*
6+
* This program is free software; you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License as published by
8+
* the Free Software Foundation; either version 2, or (at your option)
9+
* any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program; see the file COPYING. If not, write to
18+
* the Free Software Foundation, Inc., 51 Franklin Street,
19+
* Boston, MA 02110-1301, USA.
20+
*/
21+
22+
#include "ui.hpp"
23+
#include "ui_flippertx.hpp"
24+
#include "ui_navigation.hpp"
25+
#include "external_app.hpp"
26+
27+
namespace ui::external_app::flippertx {
28+
void initialize_app(ui::NavigationView& nav) {
29+
nav.push<FlipperTxView>();
30+
}
31+
} // namespace ui::external_app::flippertx
32+
33+
extern "C" {
34+
35+
__attribute__((section(".external_app.app_flippertx.application_information"), used)) application_information_t _application_information_flippertx = {
36+
/*.memory_location = */ (uint8_t*)0x00000000,
37+
/*.externalAppEntry = */ ui::external_app::flippertx::initialize_app,
38+
/*.header_version = */ CURRENT_HEADER_VERSION,
39+
/*.app_version = */ VERSION_MD5,
40+
41+
/*.app_name = */ "FlipperTx",
42+
/*.bitmap_data = */ {
43+
0x20,
44+
0x00,
45+
0x20,
46+
0x00,
47+
0x20,
48+
0x00,
49+
0x20,
50+
0x00,
51+
0xE0,
52+
0x07,
53+
0xF0,
54+
0x0F,
55+
0x30,
56+
0x0C,
57+
0x30,
58+
0x0C,
59+
0xF0,
60+
0x0F,
61+
0xF0,
62+
0x0F,
63+
0x70,
64+
0x0D,
65+
0xB0,
66+
0x0E,
67+
0x70,
68+
0x0D,
69+
0xB0,
70+
0x0E,
71+
0xF0,
72+
0x0F,
73+
0xE0,
74+
0x07,
75+
},
76+
/*.icon_color = */ ui::Color::orange().v,
77+
/*.menu_location = */ app_location_t::TX,
78+
79+
/*.m4_app_tag = portapack::spi_flash::image_tag_ookstreaming */ {'P', 'O', 'S', 'K'},
80+
/*.m4_app_offset = */ 0x00000000, // will be filled at compile time
81+
};
82+
}

0 commit comments

Comments
 (0)