mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
Add support for FrSky OSD
- Add displayWriteFontCharacter() for font writing, removing all max7456 specific code. - Add displayIsReady() for asynchronous display initialization - Add displayBeginTransaction()/displayCommitTransaction() for display transactions, which allow performing complex drawing operations without flickering - Add displayGetCanvas(), which retrieves the canvas associated with a display (if it has it) - Add canvas implementation for pixel based access for a display - Add FrSkyOSD driver and displayPort driver - Enable FrSkyOSD driver for targets with flash > 256 - Rename max7456_symbols.h to osd_symbols.h
This commit is contained in:
parent
cb538ea2ed
commit
37e66b3dda
30 changed files with 2311 additions and 44 deletions
|
@ -101,6 +101,7 @@
|
|||
#include "io/asyncfatfs/asyncfatfs.h"
|
||||
#include "io/beeper.h"
|
||||
#include "io/dashboard.h"
|
||||
#include "io/displayport_frsky_osd.h"
|
||||
#include "io/displayport_max7456.h"
|
||||
#include "io/displayport_msp.h"
|
||||
#include "io/displayport_srxl.h"
|
||||
|
@ -786,6 +787,18 @@ void init(void)
|
|||
case OSD_DISPLAYPORT_DEVICE_AUTO:
|
||||
FALLTHROUGH;
|
||||
|
||||
#if defined(USE_FRSKYOSD)
|
||||
// Test OSD_DISPLAYPORT_DEVICE_FRSKYOSD first, since an FC could
|
||||
// have a builtin MAX7456 but also an FRSKYOSD connected to an
|
||||
// uart.
|
||||
case OSD_DISPLAYPORT_DEVICE_FRSKYOSD:
|
||||
osdDisplayPort = frskyOsdDisplayPortInit(vcdProfile()->video_system);
|
||||
if (osdDisplayPort || device == OSD_DISPLAYPORT_DEVICE_FRSKYOSD) {
|
||||
break;
|
||||
}
|
||||
FALLTHROUGH;
|
||||
#endif
|
||||
|
||||
#if defined(USE_MAX7456)
|
||||
case OSD_DISPLAYPORT_DEVICE_MAX7456:
|
||||
// If there is a max7456 chip for the OSD configured and detectd then use it.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue