Prefer Servo AVR timer4 over 3 (#19025)
This commit is contained in:
parent
aa92fa7ee3
commit
b6e4acec9d
@ -59,9 +59,9 @@
|
|||||||
// Say which 16 bit timers can be used and in what order
|
// Say which 16 bit timers can be used and in what order
|
||||||
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
|
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
|
||||||
//#define _useTimer1
|
//#define _useTimer1
|
||||||
#define _useTimer3
|
|
||||||
#if NUM_SERVOS > SERVOS_PER_TIMER
|
|
||||||
#define _useTimer4
|
#define _useTimer4
|
||||||
|
#if NUM_SERVOS > SERVOS_PER_TIMER
|
||||||
|
#define _useTimer3
|
||||||
#if !HAS_MOTOR_CURRENT_PWM && SERVOS > 2 * SERVOS_PER_TIMER
|
#if !HAS_MOTOR_CURRENT_PWM && SERVOS > 2 * SERVOS_PER_TIMER
|
||||||
#define _useTimer5 // Timer 5 is used for motor current PWM and can't be used for servos.
|
#define _useTimer5 // Timer 5 is used for motor current PWM and can't be used for servos.
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user