1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00

Track state execution time for OSD, baro, rx and GPS tasks and inform scheduler of next state execution time

This commit is contained in:
Steve Evans 2020-08-14 16:42:20 +01:00 committed by Steve Evans
parent a63172cc1f
commit ab1baccc66
44 changed files with 1392 additions and 721 deletions

View file

@ -64,7 +64,9 @@ static int heartbeat(displayPort_t *displayPort)
// heartbeat is used to:
// a) ensure display is not released by MW OSD software
// b) prevent OSD Slave boards from displaying a 'disconnected' status.
return output(displayPort, MSP_DISPLAYPORT, subcmd, sizeof(subcmd));
output(displayPort, MSP_DISPLAYPORT, subcmd, sizeof(subcmd));
return 0;
}
static int grab(displayPort_t *displayPort)
@ -86,10 +88,12 @@ static int clearScreen(displayPort_t *displayPort)
return output(displayPort, MSP_DISPLAYPORT, subcmd, sizeof(subcmd));
}
static int drawScreen(displayPort_t *displayPort)
static bool drawScreen(displayPort_t *displayPort)
{
uint8_t subcmd[] = { 4 };
return output(displayPort, MSP_DISPLAYPORT, subcmd, sizeof(subcmd));
output(displayPort, MSP_DISPLAYPORT, subcmd, sizeof(subcmd));
return 0;
}
static int screenSize(const displayPort_t *displayPort)