mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
Introduction of displayPort_t
This commit is contained in:
parent
e26258e686
commit
7960b1665d
16 changed files with 907 additions and 883 deletions
|
@ -1,17 +1,41 @@
|
|||
#pragma once
|
||||
|
||||
typedef struct screenFnVTable_s {
|
||||
int (*begin)(void);
|
||||
int (*end)(void);
|
||||
int (*clear)(void);
|
||||
int (*write)(uint8_t, uint8_t, char *);
|
||||
int (*heartbeat)(void);
|
||||
void (*resync)(void);
|
||||
} screenFnVTable_t;
|
||||
|
||||
typedef struct displayPort_s {
|
||||
uint8_t rows;
|
||||
uint8_t cols;
|
||||
uint16_t buftime;
|
||||
uint16_t bufsize;
|
||||
uint16_t batchsize; // Computed by CMS
|
||||
screenFnVTable_t *VTable;
|
||||
|
||||
// CMS state
|
||||
bool cleared;
|
||||
} displayPort_t;
|
||||
|
||||
void cmsInit(void);
|
||||
void cmsHandler(uint32_t);
|
||||
|
||||
#if 0
|
||||
void cmsOpenMenu();
|
||||
void cmsUpdate(uint32_t);
|
||||
void cmsScreenResync(void);
|
||||
void cmsScreenResync(displayPort_t *);
|
||||
#endif
|
||||
|
||||
// Required for external CMS tables
|
||||
|
||||
void cmsChangeScreen(void * ptr);
|
||||
void cmsExitMenu(void * ptr);
|
||||
void cmsChangeScreen(displayPort_t *, void *);
|
||||
void cmsExitMenu(displayPort_t *, void *);
|
||||
|
||||
#define STARTUP_HELP_TEXT1 "MENU: THR MID"
|
||||
#define STARTUP_HELP_TEXT2 "+ YAW LEFT"
|
||||
#define STARTUP_HELP_TEXT3 "+ PITCH UP"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue