|
@ -47,49 +47,49 @@ |
|
|
// The order is based on (lack of) features and compare channels, we choose the simplest available
|
|
|
// The order is based on (lack of) features and compare channels, we choose the simplest available
|
|
|
// because we only need an update interrupt
|
|
|
// because we only need an update interrupt
|
|
|
#if !defined(TIMER_SERIAL) |
|
|
#if !defined(TIMER_SERIAL) |
|
|
#if defined (TIM18_BASE) |
|
|
#if defined(TIM18_BASE) |
|
|
#define TIMER_SERIAL TIM18 |
|
|
#define TIMER_SERIAL TIM18 |
|
|
#elif defined (TIM7_BASE) |
|
|
#elif defined(TIM7_BASE) |
|
|
#define TIMER_SERIAL TIM7 |
|
|
#define TIMER_SERIAL TIM7 |
|
|
#elif defined (TIM6_BASE) |
|
|
#elif defined(TIM6_BASE) |
|
|
#define TIMER_SERIAL TIM6 |
|
|
#define TIMER_SERIAL TIM6 |
|
|
#elif defined (TIM22_BASE) |
|
|
#elif defined(TIM22_BASE) |
|
|
#define TIMER_SERIAL TIM22 |
|
|
#define TIMER_SERIAL TIM22 |
|
|
#elif defined (TIM21_BASE) |
|
|
#elif defined(TIM21_BASE) |
|
|
#define TIMER_SERIAL TIM21 |
|
|
#define TIMER_SERIAL TIM21 |
|
|
#elif defined (TIM17_BASE) |
|
|
#elif defined(TIM17_BASE) |
|
|
#define TIMER_SERIAL TIM17 |
|
|
#define TIMER_SERIAL TIM17 |
|
|
#elif defined (TIM16_BASE) |
|
|
#elif defined(TIM16_BASE) |
|
|
#define TIMER_SERIAL TIM16 |
|
|
#define TIMER_SERIAL TIM16 |
|
|
#elif defined (TIM15_BASE) |
|
|
#elif defined(TIM15_BASE) |
|
|
#define TIMER_SERIAL TIM15 |
|
|
#define TIMER_SERIAL TIM15 |
|
|
#elif defined (TIM14_BASE) |
|
|
#elif defined(TIM14_BASE) |
|
|
#define TIMER_SERIAL TIM14 |
|
|
#define TIMER_SERIAL TIM14 |
|
|
#elif defined (TIM13_BASE) |
|
|
#elif defined(TIM13_BASE) |
|
|
#define TIMER_SERIAL TIM13 |
|
|
#define TIMER_SERIAL TIM13 |
|
|
#elif defined (TIM11_BASE) |
|
|
#elif defined(TIM11_BASE) |
|
|
#define TIMER_SERIAL TIM11 |
|
|
#define TIMER_SERIAL TIM11 |
|
|
#elif defined (TIM10_BASE) |
|
|
#elif defined(TIM10_BASE) |
|
|
#define TIMER_SERIAL TIM10 |
|
|
#define TIMER_SERIAL TIM10 |
|
|
#elif defined (TIM12_BASE) |
|
|
#elif defined(TIM12_BASE) |
|
|
#define TIMER_SERIAL TIM12 |
|
|
#define TIMER_SERIAL TIM12 |
|
|
#elif defined (TIM19_BASE) |
|
|
#elif defined(TIM19_BASE) |
|
|
#define TIMER_SERIAL TIM19 |
|
|
#define TIMER_SERIAL TIM19 |
|
|
#elif defined (TIM9_BASE) |
|
|
#elif defined(TIM9_BASE) |
|
|
#define TIMER_SERIAL TIM9 |
|
|
#define TIMER_SERIAL TIM9 |
|
|
#elif defined (TIM5_BASE) |
|
|
#elif defined(TIM5_BASE) |
|
|
#define TIMER_SERIAL TIM5 |
|
|
#define TIMER_SERIAL TIM5 |
|
|
#elif defined (TIM4_BASE) |
|
|
#elif defined(TIM4_BASE) |
|
|
#define TIMER_SERIAL TIM4 |
|
|
#define TIMER_SERIAL TIM4 |
|
|
#elif defined (TIM3_BASE) |
|
|
#elif defined(TIM3_BASE) |
|
|
#define TIMER_SERIAL TIM3 |
|
|
#define TIMER_SERIAL TIM3 |
|
|
#elif defined (TIM2_BASE) |
|
|
#elif defined(TIM2_BASE) |
|
|
#define TIMER_SERIAL TIM2 |
|
|
#define TIMER_SERIAL TIM2 |
|
|
#elif defined (TIM20_BASE) |
|
|
#elif defined(TIM20_BASE) |
|
|
#define TIMER_SERIAL TIM20 |
|
|
#define TIMER_SERIAL TIM20 |
|
|
#elif defined (TIM8_BASE) |
|
|
#elif defined(TIM8_BASE) |
|
|
#define TIMER_SERIAL TIM8 |
|
|
#define TIMER_SERIAL TIM8 |
|
|
#elif defined (TIM1_BASE) |
|
|
#elif defined(TIM1_BASE) |
|
|
#define TIMER_SERIAL TIM1 |
|
|
#define TIMER_SERIAL TIM1 |
|
|
#else |
|
|
#else |
|
|
#error No suitable timer found for SoftwareSerial, define TIMER_SERIAL in variant.h |
|
|
#error No suitable timer found for SoftwareSerial, define TIMER_SERIAL in variant.h |
|
|