mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
Cleaned up parameter group definitions for displayPort.
This commit is contained in:
parent
887a913c6e
commit
d71b117c3e
8 changed files with 90 additions and 40 deletions
|
@ -37,8 +37,6 @@ typedef struct displayPort_s {
|
|||
int8_t grabCount;
|
||||
} displayPort_t;
|
||||
|
||||
// displayPort_t is used as a parameter group in 'displayport_msp.h' and 'displayport_max7456`.h'. Treat accordingly!
|
||||
|
||||
typedef struct displayPortVTable_s {
|
||||
int (*grab)(displayPort_t *displayPort);
|
||||
int (*release)(displayPort_t *displayPort);
|
||||
|
@ -54,17 +52,6 @@ typedef struct displayPortVTable_s {
|
|||
uint32_t (*txBytesFree)(const displayPort_t *displayPort);
|
||||
} displayPortVTable_t;
|
||||
|
||||
typedef struct displayPortProfile_s {
|
||||
int8_t colAdjust;
|
||||
int8_t rowAdjust;
|
||||
bool invert;
|
||||
uint8_t blackBrightness;
|
||||
uint8_t whiteBrightness;
|
||||
int8_t displayPortSerial; // serialPortIdentifier_e
|
||||
} displayPortProfile_t;
|
||||
|
||||
// Note: displayPortProfile_t used as a parameter group for CMS over CRSF (io/displayport_crsf)
|
||||
|
||||
void displayGrab(displayPort_t *instance);
|
||||
void displayRelease(displayPort_t *instance);
|
||||
void displayReleaseAll(displayPort_t *instance);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue