|
| 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