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

Compilation fixes

This commit is contained in:
Bertrand Songis 2019-04-03 08:07:05 +02:00
parent cc9ea65c6c
commit 01bf3d2ef6
4 changed files with 8 additions and 0 deletions

View file

@ -323,7 +323,11 @@ getvalue_t getValue(mixsrc_t i)
#if defined(PCBSKY9X)
else if (i <= MIXSRC_LAST_ROTARY_ENCODER) {
#if ROTARY_ENCODERS > 0
return getRotaryEncoder(i - MIXSRC_REa);
#else
return 0;
#endif
}
#endif

View file

@ -441,6 +441,8 @@ uint16_t getAnalogValue(uint8_t index);
void sticksPwmInit(void);
void sticksPwmRead(uint16_t * values);
extern volatile uint32_t pwm_interrupt_count;
#else
#define STICKS_PWM_ENABLED() (false)
#endif
// Battery driver

View file

@ -336,6 +336,7 @@ enum CalibratedAnalogs {
};
#define IS_POT(x) ((x)>=POT_FIRST && (x)<=POT_LAST)
#define IS_SLIDER(x) false
#define STICKS_PWM_ENABLED() false
void adcInit();
void adcRead(void);
uint16_t getAnalogValue(uint8_t index);

View file

@ -481,6 +481,7 @@ enum Analogs {
#define NUM_TRIMS_KEYS 4
#else
#define NUM_TRIMS_KEYS 8
#define STICKS_PWM_ENABLED() false
#endif
PACK(typedef struct {