From f831b64518a6da1a45c320ee935e3e57440d3a1c Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Tue, 13 Dec 2016 09:45:10 +0000 Subject: [PATCH] LPTMR changes based on PJRC Teensy forum feedback from manitou. --- IOTeensy.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/IOTeensy.cpp b/IOTeensy.cpp index bfd419c..7572ccd 100644 --- a/IOTeensy.cpp +++ b/IOTeensy.cpp @@ -131,9 +131,7 @@ void CIO::startInt() LPTMR0_CSR = 0; // Disable LPTMR0_PSR = LPTMR_PSR_PBYP; // Bypass prescaler/filter LPTMR0_CMR = EXTERNAL_OSC / 24000; - LPTMR0_CSR = LPTMR_CSR_TIE | // Interrupt Enable - LPTMR_CSR_TPS(2) | // Pin: 0=CMP0, 1=xtal, 2=pin13 - LPTMR_CSR_TFC | // Free-Running Counter + LPTMR0_CSR = LPTMR_CSR_TPS(2) | // Pin: 0=CMP0, 1=xtal, 2=pin13 LPTMR_CSR_TMS; // Mode Select, 0=timer, 1=counter LPTMR0_CSR |= LPTMR_CSR_TEN; // Enable #else