mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-01 01:27:48 +03:00
8c36d65e63
* Add input driver and definitions for target_f2 * Add input_dump example * Invert charge input * Fix back and left button configuration * remove input debug * input testing case * move header * lint code Co-authored-by: aanper <mail@s3f.ru>
58 lines
1.2 KiB
C
58 lines
1.2 KiB
C
#pragma once
|
|
|
|
#include "furi.h"
|
|
|
|
typedef struct {
|
|
FlipperApplication app;
|
|
const char* name;
|
|
} FlipperStartupApp;
|
|
|
|
#ifdef TEST
|
|
void flipper_test_app(void* p);
|
|
#endif
|
|
|
|
void application_blink(void* p);
|
|
void application_uart_write(void* p);
|
|
void application_ipc_display(void* p);
|
|
void application_ipc_widget(void* p);
|
|
void application_input_dump(void* p);
|
|
|
|
void display_u8g2(void* p);
|
|
|
|
void u8g2_example(void* p);
|
|
|
|
void input_task(void* p);
|
|
|
|
void coreglitch_demo_0(void* p);
|
|
|
|
const FlipperStartupApp FLIPPER_STARTUP[] = {
|
|
#ifndef TEST
|
|
{.app = display_u8g2, .name = "display_u8g2"},
|
|
{.app = u8g2_example, .name = "u8g2_example"},
|
|
#endif
|
|
|
|
#ifdef USE_INPUT
|
|
{.app = input_task, .name = "input_task"},
|
|
#endif
|
|
|
|
// {.app = coreglitch_demo_0, .name = "coreglitch_demo_0"},
|
|
|
|
#ifdef TEST
|
|
{.app = flipper_test_app, .name = "test app"},
|
|
#endif
|
|
|
|
#ifdef EXAMPLE_BLINK
|
|
{.app = application_blink, .name = "blink"},
|
|
#endif
|
|
#ifdef EXAMPLE_UART_WRITE
|
|
{.app = application_uart_write, .name = "uart write"},
|
|
#endif
|
|
#ifdef EXAMPLE_IPC
|
|
{.app = application_ipc_display, .name = "ipc display"},
|
|
{.app = application_ipc_widget, .name = "ipc widget"},
|
|
#endif
|
|
#ifdef EXAMPLE_INPUT_DUMP
|
|
{.app = application_input_dump, .name = "input dump"},
|
|
#endif
|
|
};
|