1
0
Fork 0
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:
mikeller 2019-10-27 22:14:06 +13:00
parent 887a913c6e
commit d71b117c3e
8 changed files with 90 additions and 40 deletions

View file

@ -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);