1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00

CF/BF - First cut of allow building of the OSD SLAVE board without all

the flight controller code.

Likely the dependencies can be further improved.  This is a
minimal-impact solution while there are a lot of other Betaflight PR's
still pending.
This commit is contained in:
Hydra 2017-04-09 18:16:10 +01:00 committed by Dominic Clifton
parent 2ec39de031
commit 2b1dac4c6d
38 changed files with 923 additions and 409 deletions

View file

@ -30,8 +30,6 @@
#include "drivers/sound_beeper.h"
#include "drivers/vcd.h"
#define MAX_NAME_LENGTH 16
typedef enum {
FEATURE_RX_PPM = 1 << 0,
//FEATURE_VBAT = 1 << 1,
@ -64,13 +62,24 @@ typedef enum {
FEATURE_ANTI_GRAVITY = 1 << 28,
} features_e;
#define MAX_NAME_LENGTH 16
#ifdef USE_FC
typedef struct systemConfig_s {
uint8_t pidProfileIndex;
uint8_t activeRateProfile;
uint8_t debug_mode;
uint8_t task_statistics;
char name[MAX_NAME_LENGTH + 1];
char name[MAX_NAME_LENGTH + 1]; // FIXME misplaced, see PG_PILOT_CONFIG in CF v1.x
} systemConfig_t;
#endif
#ifdef USE_OSD_SLAVE
typedef struct systemConfig_s {
uint8_t debug_mode;
uint8_t task_statistics;
} systemConfig_t;
#endif
PG_DECLARE(systemConfig_t, systemConfig);
PG_DECLARE(adcConfig_t, adcConfig);