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

Touch-ups, tidy, bandwidth mgmt on serial canvas

This commit is contained in:
jflyper 2016-10-25 14:34:08 +09:00
parent c3c13cf454
commit 38660aa8a6
10 changed files with 524 additions and 507 deletions

View file

@ -17,8 +17,6 @@
#pragma once
#include <stdint.h>
typedef enum {
OSD_RSSI_VALUE,
OSD_MAIN_BATT_VOLTAGE,
@ -70,5 +68,13 @@ void osdInit(void);
void resetOsdConfig(osd_profile_t *osdProfile);
screenFnVTable_t *osdCmsInit(void);
#define VISIBLE_FLAG 0x0800
// Character coordinate and attributes
#define OSD_POS(x,y) (x | (y << 5))
#define OSD_X(x) (x & 0x001F)
#define OSD_Y(x) ((x >> 5) & 0x001F)
#define VISIBLE_FLAG 0x0800
#define BLINK_FLAG 0x0400
#define VISIBLE(x) (x & VISIBLE_FLAG)
#define BLINK(x) ((x & BLINK_FLAG) && blinkState)
#define BLINK_OFF(x) (x & ~BLINK_FLAG)