mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 23:05:19 +03:00
Added FC identifier... (Argggh)
This commit is contained in:
parent
8f26ce95f0
commit
e8a22fa60e
5 changed files with 16 additions and 3 deletions
|
@ -102,7 +102,7 @@ cmsDeviceInitFuncPtr cmsDeviceSelectNext(void)
|
||||||
#define CMS_UPDATE_INTERVAL 50 // msec
|
#define CMS_UPDATE_INTERVAL 50 // msec
|
||||||
|
|
||||||
// XXX Why is this here? Something wrong?
|
// XXX Why is this here? Something wrong?
|
||||||
// XXX We need something like Drawing Context that holds all state variables?
|
// XXX Something like Drawing Context that holds all state variables would be the way...
|
||||||
int8_t lastCursorPos;
|
int8_t lastCursorPos;
|
||||||
|
|
||||||
void cmsScreenClear(displayPort_t *instance)
|
void cmsScreenClear(displayPort_t *instance)
|
||||||
|
@ -1214,8 +1214,11 @@ OSD_Entry menuOsdLayout[] =
|
||||||
static char infoGitRev[GIT_SHORT_REVISION_LENGTH];
|
static char infoGitRev[GIT_SHORT_REVISION_LENGTH];
|
||||||
static char infoTargetName[] = __TARGET__;
|
static char infoTargetName[] = __TARGET__;
|
||||||
|
|
||||||
|
#include "msp/msp_protocol.h" // XXX for FC identification... not available elsewhere
|
||||||
|
|
||||||
OSD_Entry menuInfo[] = {
|
OSD_Entry menuInfo[] = {
|
||||||
{ "--- INFO ---", OME_Label, NULL, NULL, 0 },
|
{ "--- INFO ---", OME_Label, NULL, NULL, 0 },
|
||||||
|
{ BETAFLIGHT_IDENTIFIER, OME_Label, NULL, NULL, 0 },
|
||||||
{ FC_VERSION_STRING, OME_Label, NULL, NULL, 0 },
|
{ FC_VERSION_STRING, OME_Label, NULL, NULL, 0 },
|
||||||
{ infoGitRev, OME_Label, NULL, NULL, 0 },
|
{ infoGitRev, OME_Label, NULL, NULL, 0 },
|
||||||
{ infoTargetName, OME_Label, NULL, NULL, 0 },
|
{ infoTargetName, OME_Label, NULL, NULL, 0 },
|
||||||
|
|
|
@ -70,6 +70,9 @@
|
||||||
//#define MAX7456_DMA_CHANNEL_RX DMA1_Stream0
|
//#define MAX7456_DMA_CHANNEL_RX DMA1_Stream0
|
||||||
//#define MAX7456_DMA_IRQ_HANDLER_ID DMA1_ST0_HANDLER
|
//#define MAX7456_DMA_IRQ_HANDLER_ID DMA1_ST0_HANDLER
|
||||||
|
|
||||||
|
#define CMS
|
||||||
|
#define CANVAS
|
||||||
|
|
||||||
//#define PITOT
|
//#define PITOT
|
||||||
//#define USE_PITOT_MS4525
|
//#define USE_PITOT_MS4525
|
||||||
//#define MS4525_BUS I2C_DEVICE_EXT
|
//#define MS4525_BUS I2C_DEVICE_EXT
|
||||||
|
|
|
@ -6,5 +6,7 @@ TARGET_SRC = \
|
||||||
drivers/barometer_ms5611.c \
|
drivers/barometer_ms5611.c \
|
||||||
drivers/compass_hmc5883l.c \
|
drivers/compass_hmc5883l.c \
|
||||||
drivers/max7456.c \
|
drivers/max7456.c \
|
||||||
io/osd.c
|
io/osd.c \
|
||||||
|
io/cms.c \
|
||||||
|
io/canvas.c
|
||||||
|
|
||||||
|
|
|
@ -144,3 +144,6 @@
|
||||||
|
|
||||||
#define USABLE_TIMER_CHANNEL_COUNT 12
|
#define USABLE_TIMER_CHANNEL_COUNT 12
|
||||||
#define USED_TIMERS ( TIM_N(2) | TIM_N(3) | TIM_N(5) | TIM_N(12) | TIM_N(8) | TIM_N(9) )
|
#define USED_TIMERS ( TIM_N(2) | TIM_N(3) | TIM_N(5) | TIM_N(12) | TIM_N(8) | TIM_N(9) )
|
||||||
|
|
||||||
|
#define CMS
|
||||||
|
#define CANVAS
|
||||||
|
|
|
@ -4,4 +4,6 @@ FEATURES += VCP ONBOARDFLASH
|
||||||
TARGET_SRC = \
|
TARGET_SRC = \
|
||||||
drivers/accgyro_spi_mpu6000.c \
|
drivers/accgyro_spi_mpu6000.c \
|
||||||
drivers/barometer_ms5611.c \
|
drivers/barometer_ms5611.c \
|
||||||
drivers/compass_hmc5883l.c
|
drivers/compass_hmc5883l.c \
|
||||||
|
io/cms.c \
|
||||||
|
io/canvas.c
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue