Code cleaning
This commit is contained in:
@@ -529,15 +529,19 @@ enum Analogs {
|
|||||||
#define NUM_MOUSE_ANALOGS 0
|
#define NUM_MOUSE_ANALOGS 0
|
||||||
#define STORAGE_NUM_MOUSE_ANALOGS 0
|
#define STORAGE_NUM_MOUSE_ANALOGS 0
|
||||||
|
|
||||||
|
#if defined(PCBXLITE)
|
||||||
|
#define NUM_TRIMS_KEYS 4
|
||||||
|
#else
|
||||||
|
#define NUM_TRIMS_KEYS (NUM_TRIMS * 2)
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(STICKS_PWM)
|
#if defined(STICKS_PWM)
|
||||||
#define NUM_PWMSTICKS 4
|
#define NUM_PWMSTICKS 4
|
||||||
#define STICKS_PWM_ENABLED() (!hardwareOptions.sticksPwmDisabled)
|
#define STICKS_PWM_ENABLED() (!hardwareOptions.sticksPwmDisabled)
|
||||||
void sticksPwmInit();
|
void sticksPwmInit();
|
||||||
void sticksPwmRead(uint16_t * values);
|
void sticksPwmRead(uint16_t * values);
|
||||||
extern volatile uint32_t pwm_interrupt_count; // TODO => reusable buffer (boot section)
|
extern volatile uint32_t pwm_interrupt_count; // TODO => reusable buffer (boot section)
|
||||||
#define NUM_TRIMS_KEYS 4
|
|
||||||
#else
|
#else
|
||||||
#define NUM_TRIMS_KEYS 8
|
|
||||||
#define STICKS_PWM_ENABLED() false
|
#define STICKS_PWM_ENABLED() false
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user