mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-27 15:22:29 +03:00
e6f078eeb7
* Fix crash caused by garbage input * Add unit tests for garbage input * Enable applications to disable and then restore expansion module support * GPIO App: disable expansion on app start and re-enable on exit Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
48 lines
1.2 KiB
C
48 lines
1.2 KiB
C
#pragma once
|
|
|
|
#include "gpio_app.h"
|
|
#include "gpio_items.h"
|
|
#include "scenes/gpio_scene.h"
|
|
#include "gpio_custom_event.h"
|
|
#include "usb_uart_bridge.h"
|
|
|
|
#include <gui/gui.h>
|
|
#include <gui/view_dispatcher.h>
|
|
#include <gui/scene_manager.h>
|
|
#include <gui/modules/submenu.h>
|
|
#include <notification/notification_messages.h>
|
|
#include <gui/modules/variable_item_list.h>
|
|
#include <gui/modules/widget.h>
|
|
#include <gui/modules/dialog_ex.h>
|
|
#include "views/gpio_test.h"
|
|
#include "views/gpio_usb_uart.h"
|
|
#include <assets_icons.h>
|
|
#include <expansion/expansion.h>
|
|
|
|
struct GpioApp {
|
|
Expansion* expansion;
|
|
Gui* gui;
|
|
NotificationApp* notifications;
|
|
ViewDispatcher* view_dispatcher;
|
|
SceneManager* scene_manager;
|
|
Widget* widget;
|
|
DialogEx* dialog;
|
|
|
|
VariableItemList* var_item_list;
|
|
VariableItem* var_item_flow;
|
|
GpioTest* gpio_test;
|
|
GpioUsbUart* gpio_usb_uart;
|
|
GPIOItems* gpio_items;
|
|
UsbUartBridge* usb_uart_bridge;
|
|
UsbUartConfig* usb_uart_cfg;
|
|
};
|
|
|
|
typedef enum {
|
|
GpioAppViewVarItemList,
|
|
GpioAppViewGpioTest,
|
|
GpioAppViewUsbUart,
|
|
GpioAppViewUsbUartCfg,
|
|
GpioAppViewUsbUartCloseRpc,
|
|
GpioAppViewExitConfirm,
|
|
} GpioAppView;
|