2020-08-24 18:31:22 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "furi.h"
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
FlipperApplication app;
|
|
|
|
const char* name;
|
2020-10-05 13:17:34 +03:00
|
|
|
const char* libs;
|
2020-08-24 18:31:22 +03:00
|
|
|
} FlipperStartupApp;
|
|
|
|
|
2020-10-07 12:37:43 +03:00
|
|
|
#ifdef APP_TEST
|
2020-08-26 04:56:33 +03:00
|
|
|
void flipper_test_app(void* p);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
void application_blink(void* p);
|
2020-08-26 21:32:22 +03:00
|
|
|
void application_uart_write(void* p);
|
2020-09-01 13:34:23 +03:00
|
|
|
void application_ipc_display(void* p);
|
|
|
|
void application_ipc_widget(void* p);
|
2020-10-02 09:44:05 +03:00
|
|
|
void application_input_dump(void* p);
|
2020-08-26 04:56:33 +03:00
|
|
|
|
2020-09-09 19:12:09 +03:00
|
|
|
void display_u8g2(void* p);
|
|
|
|
|
|
|
|
void u8g2_example(void* p);
|
|
|
|
|
2020-10-02 09:44:05 +03:00
|
|
|
void input_task(void* p);
|
2020-10-07 12:37:43 +03:00
|
|
|
void menu_task(void* p);
|
2020-10-02 09:44:05 +03:00
|
|
|
|
2020-09-09 19:54:21 +03:00
|
|
|
void coreglitch_demo_0(void* p);
|
|
|
|
|
2020-10-05 13:33:35 +03:00
|
|
|
void u8g2_qrcode(void* p);
|
|
|
|
|
2020-08-24 18:31:22 +03:00
|
|
|
const FlipperStartupApp FLIPPER_STARTUP[] = {
|
2020-10-07 12:37:43 +03:00
|
|
|
#ifdef APP_DISPLAY
|
2020-10-05 13:17:34 +03:00
|
|
|
{.app = display_u8g2, .name = "display_u8g2", .libs = ""},
|
2020-09-30 02:18:30 +03:00
|
|
|
#endif
|
|
|
|
|
2020-10-07 12:37:43 +03:00
|
|
|
#ifdef APP_INPUT
|
2020-10-05 13:17:34 +03:00
|
|
|
{.app = input_task, .name = "input_task", .libs = ""},
|
2020-10-02 09:44:05 +03:00
|
|
|
#endif
|
|
|
|
|
2020-10-05 13:17:34 +03:00
|
|
|
// {.app = coreglitch_demo_0, .name = "coreglitch_demo_0", .libs = ""},
|
2020-09-09 19:54:21 +03:00
|
|
|
|
2020-10-07 12:37:43 +03:00
|
|
|
#ifdef APP_TEST
|
2020-10-05 13:17:34 +03:00
|
|
|
{.app = flipper_test_app, .name = "test app", .libs = ""},
|
2020-09-30 02:18:30 +03:00
|
|
|
#endif
|
2020-08-26 04:56:33 +03:00
|
|
|
|
2020-10-07 12:37:43 +03:00
|
|
|
#ifdef APP_EXAMPLE_BLINK
|
2020-10-05 13:17:34 +03:00
|
|
|
{.app = application_blink, .name = "blink", .libs = ""},
|
2020-09-30 02:18:30 +03:00
|
|
|
#endif
|
2020-10-07 12:37:43 +03:00
|
|
|
|
|
|
|
#ifdef APP_EXAMPLE_UART_WRITE
|
2020-10-05 13:17:34 +03:00
|
|
|
{.app = application_uart_write, .name = "uart write", .libs = ""},
|
2020-09-30 02:18:30 +03:00
|
|
|
#endif
|
2020-10-07 12:37:43 +03:00
|
|
|
|
|
|
|
#ifdef APP_EXAMPLE_IPC
|
2020-10-05 13:17:34 +03:00
|
|
|
{.app = application_ipc_display, .name = "ipc display", .libs = ""},
|
|
|
|
{.app = application_ipc_widget, .name = "ipc widget", .libs = ""},
|
2020-09-30 02:18:30 +03:00
|
|
|
#endif
|
2020-10-07 12:37:43 +03:00
|
|
|
|
|
|
|
#ifdef APP_EXAMPLE_INPUT_DUMP
|
2020-10-05 13:17:34 +03:00
|
|
|
{.app = application_input_dump, .name = "input dump", .libs = "input_task"},
|
2020-10-02 09:44:05 +03:00
|
|
|
#endif
|
2020-10-05 13:33:35 +03:00
|
|
|
|
2020-10-07 12:37:43 +03:00
|
|
|
#ifdef APP_EXAMPLE_QRCODE
|
2020-10-05 13:33:35 +03:00
|
|
|
{.app = u8g2_qrcode, .name = "u8g2_qrcode", .libs = "display_u8g2"},
|
|
|
|
#endif
|
2020-10-07 12:37:43 +03:00
|
|
|
|
|
|
|
#ifdef APP_EXAMPLE_DISPLAY
|
|
|
|
{.app = u8g2_example, .name = "u8g2_example", .libs = "display_u8g2"},
|
|
|
|
#endif
|
|
|
|
|
2020-09-30 02:18:30 +03:00
|
|
|
};
|