mirror of https://github.com/noisymime/Arduino.git
Avoid TIMER3 conflict with Servo and tone().
This commit is contained in:
parent
44556206a8
commit
f60f17f79a
|
@ -65,9 +65,8 @@
|
||||||
typedef enum { _timer5, _timer1, _timer3, _timer4, _Nbr_16timers } timer16_Sequence_t ;
|
typedef enum { _timer5, _timer1, _timer3, _timer4, _Nbr_16timers } timer16_Sequence_t ;
|
||||||
|
|
||||||
#elif defined(__AVR_ATmega32U4__)
|
#elif defined(__AVR_ATmega32U4__)
|
||||||
#define _useTimer3
|
|
||||||
#define _useTimer1
|
#define _useTimer1
|
||||||
typedef enum { _timer3, _timer1, _Nbr_16timers } timer16_Sequence_t ;
|
typedef enum { _timer1, _Nbr_16timers } timer16_Sequence_t ;
|
||||||
|
|
||||||
#elif defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB1286__)
|
#elif defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB1286__)
|
||||||
#define _useTimer3
|
#define _useTimer3
|
||||||
|
@ -124,4 +123,4 @@ private:
|
||||||
int8_t max; // maximum is this value times 4 added to MAX_PULSE_WIDTH
|
int8_t max; // maximum is this value times 4 added to MAX_PULSE_WIDTH
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue