mirror of
https://github.com/opentx/opentx.git
synced 2025-07-23 00:05:17 +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)
|
||||
else if (i <= MIXSRC_LAST_ROTARY_ENCODER) {
|
||||
#if ROTARY_ENCODERS > 0
|
||||
return getRotaryEncoder(i - MIXSRC_REa);
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue