From c2c51e32c346cfb3cc064ed5faec3c19956ca93b Mon Sep 17 00:00:00 2001 From: pmantoine Date: Wed, 17 Aug 2022 15:28:52 +0800 Subject: [PATCH] Update STM32 timer 11 commentary --- DCCTimerSTM32.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DCCTimerSTM32.cpp b/DCCTimerSTM32.cpp index 640599f..3f66a5f 100644 --- a/DCCTimerSTM32.cpp +++ b/DCCTimerSTM32.cpp @@ -36,7 +36,9 @@ HardwareSerial Serial1(PA10, PA15); // Rx=PA10, Tx=PA15 INTERRUPT_CALLBACK interruptHandler=0; -// Let's use STM32's timer #1 until disabused of this notion +// Let's use STM32's timer #11 until disabused of this notion +// Timer #11 is used for "servo" library, but as DCC-EX is not using +// this libary, we should be free and clear. HardwareTimer timer(TIM11); // Timer IRQ handler @@ -44,8 +46,6 @@ void Timer11_Handler() { interruptHandler(); } - - void DCCTimer::begin(INTERRUPT_CALLBACK callback) { interruptHandler=callback; noInterrupts();