mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-15 02:52:58 +00:00
externalize basebands, not needed, and remove too high level function (#3134)
* externalize basebands, not needed, and remove too high level function * fix ert
This commit is contained in:
+1
-1
@@ -100,7 +100,7 @@ namespace ui::external_app::ert_app {
|
|||||||
|
|
||||||
ERTAppView::ERTAppView(NavigationView& nav)
|
ERTAppView::ERTAppView(NavigationView& nav)
|
||||||
: nav_{nav} {
|
: nav_{nav} {
|
||||||
baseband::run_image(portapack::spi_flash::image_tag_ert);
|
baseband::run_prepared_image(portapack::memory::map::m4_code.base());
|
||||||
|
|
||||||
add_children({
|
add_children({
|
||||||
&field_frequency,
|
&field_frequency,
|
||||||
|
|||||||
+1
-1
@@ -77,7 +77,7 @@ __attribute__((section(".external_app.app_ert.application_information"), used))
|
|||||||
/*.menu_location = */ app_location_t::RX,
|
/*.menu_location = */ app_location_t::RX,
|
||||||
/*.desired_menu_position = */ -1,
|
/*.desired_menu_position = */ -1,
|
||||||
|
|
||||||
/*.m4_app_tag = portapack::spi_flash::image_tag_none */ {'P', 'E', 'R', 'T'},
|
/*.m4_app_tag = portapack::spi_flash::image_tag_ert */ {'P', 'E', 'R', 'T'},
|
||||||
/*.m4_app_offset = */ 0x00000000, // will be filled at compile time
|
/*.m4_app_offset = */ 0x00000000, // will be filled at compile time
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -309,8 +309,10 @@ set(EXTCPPSRC
|
|||||||
external/morseradiotx/main.cpp
|
external/morseradiotx/main.cpp
|
||||||
external/morseradiotx/ui_morse_radiotx.cpp
|
external/morseradiotx/ui_morse_radiotx.cpp
|
||||||
|
|
||||||
|
#keeloqtx
|
||||||
external/keeloqtx/main.cpp
|
external/keeloqtx/main.cpp
|
||||||
external/keeloqtx/ui_keeloqtx.cpp
|
external/keeloqtx/ui_keeloqtx.cpp
|
||||||
|
|
||||||
#rtty_rx
|
#rtty_rx
|
||||||
external/rtty_rx/main.cpp
|
external/rtty_rx/main.cpp
|
||||||
external/rtty_rx/ui_rtty_rx.cpp
|
external/rtty_rx/ui_rtty_rx.cpp
|
||||||
|
|||||||
+13
-1
@@ -96,7 +96,19 @@ bool POCSAGTXView::start_tx() {
|
|||||||
|
|
||||||
if (type == MessageType::NUMERIC_ONLY) {
|
if (type == MessageType::NUMERIC_ONLY) {
|
||||||
// Check for invalid characters
|
// Check for invalid characters
|
||||||
if (message.find_first_not_of("0123456789SU -][") != std::string::npos) {
|
const char* p = message.c_str();
|
||||||
|
bool is_valid = true;
|
||||||
|
while (*p != '\0') {
|
||||||
|
const char c = *p;
|
||||||
|
// Check if char is NOT in the allowed set
|
||||||
|
if (!((c >= '0' && c <= '9') || c == 'S' || c == 'U' ||
|
||||||
|
c == ' ' || c == '-' || c == '[' || c == ']')) {
|
||||||
|
is_valid = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
p++;
|
||||||
|
}
|
||||||
|
if (!is_valid) {
|
||||||
nav_.display_modal("Bad message", "A numeric only message must\nonly contain:\n0123456789SU][- or space.");
|
nav_.display_modal("Bad message", "A numeric only message must\nonly contain:\n0123456789SU][- or space.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -380,13 +380,6 @@ set(MODE_CPPSRC
|
|||||||
)
|
)
|
||||||
DeclareTargets(PCAP capture)
|
DeclareTargets(PCAP capture)
|
||||||
|
|
||||||
### ERT
|
|
||||||
|
|
||||||
set(MODE_CPPSRC
|
|
||||||
proc_ert.cpp
|
|
||||||
)
|
|
||||||
DeclareTargets(PERT ert)
|
|
||||||
|
|
||||||
### Radiosonde
|
### Radiosonde
|
||||||
|
|
||||||
set(MODE_CPPSRC
|
set(MODE_CPPSRC
|
||||||
@@ -452,13 +445,6 @@ set(MODE_CPPSRC
|
|||||||
DeclareTargets(PREP replay)
|
DeclareTargets(PREP replay)
|
||||||
|
|
||||||
|
|
||||||
### Tones
|
|
||||||
|
|
||||||
set(MODE_CPPSRC
|
|
||||||
proc_tones.cpp
|
|
||||||
)
|
|
||||||
DeclareTargets(PTON tones)
|
|
||||||
|
|
||||||
|
|
||||||
### Wideband Spectrum
|
### Wideband Spectrum
|
||||||
|
|
||||||
@@ -707,6 +693,15 @@ set(MODE_CPPSRC
|
|||||||
DeclareTargets(PRTR rtty_rx)
|
DeclareTargets(PRTR rtty_rx)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### ERT
|
||||||
|
|
||||||
|
set(MODE_CPPSRC
|
||||||
|
proc_ert.cpp
|
||||||
|
)
|
||||||
|
DeclareTargets(PERT ert)
|
||||||
|
|
||||||
|
|
||||||
### RTTY TX
|
### RTTY TX
|
||||||
|
|
||||||
set(MODE_CPPSRC
|
set(MODE_CPPSRC
|
||||||
@@ -729,6 +724,15 @@ set(MODE_CPPSRC
|
|||||||
)
|
)
|
||||||
DeclareTargets(PMRT morsetx)
|
DeclareTargets(PMRT morsetx)
|
||||||
|
|
||||||
|
### Tones
|
||||||
|
|
||||||
|
set(MODE_CPPSRC
|
||||||
|
proc_tones.cpp
|
||||||
|
)
|
||||||
|
DeclareTargets(PTON tones)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Time Sink
|
### Time Sink
|
||||||
|
|
||||||
set(MODE_CPPSRC
|
set(MODE_CPPSRC
|
||||||
|
|||||||
Reference in New Issue
Block a user