mirror of
https://github.com/opentx/opentx.git
synced 2025-07-23 16:25:16 +03:00
Compilation fixes
This commit is contained in:
parent
cc9ea65c6c
commit
01bf3d2ef6
4 changed files with 8 additions and 0 deletions
|
@ -323,7 +323,11 @@ getvalue_t getValue(mixsrc_t i)
|
||||||
|
|
||||||
#if defined(PCBSKY9X)
|
#if defined(PCBSKY9X)
|
||||||
else if (i <= MIXSRC_LAST_ROTARY_ENCODER) {
|
else if (i <= MIXSRC_LAST_ROTARY_ENCODER) {
|
||||||
|
#if ROTARY_ENCODERS > 0
|
||||||
return getRotaryEncoder(i - MIXSRC_REa);
|
return getRotaryEncoder(i - MIXSRC_REa);
|
||||||
|
#else
|
||||||
|
return 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -441,6 +441,8 @@ uint16_t getAnalogValue(uint8_t index);
|
||||||
void sticksPwmInit(void);
|
void sticksPwmInit(void);
|
||||||
void sticksPwmRead(uint16_t * values);
|
void sticksPwmRead(uint16_t * values);
|
||||||
extern volatile uint32_t pwm_interrupt_count;
|
extern volatile uint32_t pwm_interrupt_count;
|
||||||
|
#else
|
||||||
|
#define STICKS_PWM_ENABLED() (false)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Battery driver
|
// Battery driver
|
||||||
|
|
|
@ -336,6 +336,7 @@ enum CalibratedAnalogs {
|
||||||
};
|
};
|
||||||
#define IS_POT(x) ((x)>=POT_FIRST && (x)<=POT_LAST)
|
#define IS_POT(x) ((x)>=POT_FIRST && (x)<=POT_LAST)
|
||||||
#define IS_SLIDER(x) false
|
#define IS_SLIDER(x) false
|
||||||
|
#define STICKS_PWM_ENABLED() false
|
||||||
void adcInit();
|
void adcInit();
|
||||||
void adcRead(void);
|
void adcRead(void);
|
||||||
uint16_t getAnalogValue(uint8_t index);
|
uint16_t getAnalogValue(uint8_t index);
|
||||||
|
|
|
@ -481,6 +481,7 @@ enum Analogs {
|
||||||
#define NUM_TRIMS_KEYS 4
|
#define NUM_TRIMS_KEYS 4
|
||||||
#else
|
#else
|
||||||
#define NUM_TRIMS_KEYS 8
|
#define NUM_TRIMS_KEYS 8
|
||||||
|
#define STICKS_PWM_ENABLED() false
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
PACK(typedef struct {
|
PACK(typedef struct {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue