mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-21 02:03:18 +00:00
b9a766d909
* Added support for running applications from SD card (FAPs - Flipper Application Packages) * Added plugin_dist target for fbt to build FAPs * All apps of type FlipperAppType.EXTERNAL and FlipperAppType.PLUGIN are built as FAPs by default * Updated VSCode configuration for new fbt features - re-deploy stock configuration to use them * Added debugging support for FAPs with fbt debug & VSCode * Added public firmware API with automated versioning Co-authored-by: hedger <hedger@users.noreply.github.com> Co-authored-by: SG <who.just.the.doctor@gmail.com> Co-authored-by: あく <alleteam@gmail.com>
42 lines
1 KiB
C
42 lines
1 KiB
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <gui/view.h>
|
|
#include "desktop_events.h"
|
|
|
|
typedef struct DesktopDebugView DesktopDebugView;
|
|
|
|
typedef void (*DesktopDebugViewCallback)(DesktopEvent event, void* context);
|
|
|
|
// Debug info
|
|
typedef enum {
|
|
DesktopViewStatsFw,
|
|
DesktopViewStatsMeta,
|
|
DesktopViewStatsTotalCount,
|
|
} DesktopViewStatsScreens;
|
|
|
|
struct DesktopDebugView {
|
|
View* view;
|
|
DesktopDebugViewCallback callback;
|
|
void* context;
|
|
};
|
|
|
|
typedef struct {
|
|
uint32_t icounter;
|
|
uint32_t butthurt;
|
|
uint64_t timestamp;
|
|
DesktopViewStatsScreens screen;
|
|
} DesktopDebugViewModel;
|
|
|
|
void desktop_debug_set_callback(
|
|
DesktopDebugView* debug_view,
|
|
DesktopDebugViewCallback callback,
|
|
void* context);
|
|
|
|
View* desktop_debug_get_view(DesktopDebugView* debug_view);
|
|
|
|
DesktopDebugView* desktop_debug_alloc();
|
|
void desktop_debug_free(DesktopDebugView* debug_view);
|
|
|
|
void desktop_debug_get_dolphin_data(DesktopDebugView* debug_view);
|
|
void desktop_debug_reset_screen_idx(DesktopDebugView* debug_view);
|