Bsongis/gui refactoring for x7 d (#3701)

* [X7D] New board added
* Cosmetics
This commit is contained in:
Bertrand Songis
2016-08-18 11:49:16 +02:00
committed by GitHub
parent 282b856309
commit d3ae3c035d
233 changed files with 7472 additions and 4560 deletions
+13 -3
View File
@@ -21,16 +21,16 @@
#ifndef _GUI_COMMON_H_
#define _GUI_COMMON_H_
#include "lcd.h"
#if defined(CPUARM)
typedef bool (*IsValueAvailable)(int);
int circularIncDec(int current, int inc, int min, int max, IsValueAvailable isValueAvailable=NULL);
int getFirstAvailable(int min, int max, IsValueAvailable isValueAvailable);
#if defined(VIRTUALINPUTS)
bool isTrimModeAvailable(int mode);
bool isInputAvailable(int input);
#endif
bool isInputSourceAvailable(int source);
bool isThrottleSourceAvailable(int source);
bool isLogicalSwitchFunctionAvailable(int function);
@@ -73,4 +73,14 @@ bool isSwitchWarningStateAvailable(int state);
#define IS_INSTANT_TRIM_ALLOWED() true
#endif
#if defined(FLIGHT_MODES)
void drawFlightMode(coord_t x, coord_t y, int8_t idx, LcdFlags att=0);
#endif
#if defined(CPUARM)
void drawCurveRef(coord_t x, coord_t y, CurveRef & curve, LcdFlags att=0);
#endif
void drawCurve(coord_t offset=0);
#endif // _GUI_COMMON_H_