|
@ -60,12 +60,17 @@ |
|
|
|
|
|
|
|
|
// 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 _useTimer5 |
|
|
|
|
|
//#define _useTimer1
|
|
|
//#define _useTimer1
|
|
|
#define _useTimer3 |
|
|
#define _useTimer3 |
|
|
#define _useTimer4 |
|
|
#define _useTimer4 |
|
|
|
|
|
#ifndef MOTOR_CURRENT_PWM_XY_PIN |
|
|
|
|
|
//Timer 5 is used for motor current PWM and can't be used for servos.
|
|
|
|
|
|
#define _useTimer5 |
|
|
//typedef enum { _timer5, _timer1, _timer3, _timer4, _Nbr_16timers } timer16_Sequence_t ;
|
|
|
//typedef enum { _timer5, _timer1, _timer3, _timer4, _Nbr_16timers } timer16_Sequence_t ;
|
|
|
typedef enum { _timer5, _timer3, _timer4, _Nbr_16timers } timer16_Sequence_t ; |
|
|
typedef enum { _timer5, _timer3, _timer4, _Nbr_16timers } timer16_Sequence_t ; |
|
|
|
|
|
#else |
|
|
|
|
|
typedef enum {_timer3, _timer4, _Nbr_16timers } timer16_Sequence_t ; |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
#elif defined(__AVR_ATmega32U4__) |
|
|
#elif defined(__AVR_ATmega32U4__) |
|
|
//#define _useTimer1
|
|
|
//#define _useTimer1
|
|
|