From d022276c94e7070cb30366ec00dbf4ad473e7571 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Wed, 30 Nov 2016 09:44:17 +0000 Subject: [PATCH] Move the LPTMR enable. --- IOTeensy.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/IOTeensy.cpp b/IOTeensy.cpp index ae143a7..f5e7514 100644 --- a/IOTeensy.cpp +++ b/IOTeensy.cpp @@ -131,9 +131,9 @@ void CIO::startInt() SIM_SCGC5 |= SIM_SCGC5_LPTIMER; LPTMR0_PSR = LPTMR_PSR_PBYP; // Bypass prescaler/filter LPTMR0_CMR = EXTERNAL_OSC / 24000; - LPTMR0_CSR = LPTMR_CSR_TIE | LPTMR_CSR_TPS(2) | // Interrupt, counter, input=Alt2, free running mode, enable - LPTMR_CSR_TFC | LPTMR_CSR_TMS | - LPTMR_CSR_TEN; + LPTMR0_CSR = LPTMR_CSR_TIE | LPTMR_CSR_TPS(2) | // Interrupt, counter, input=Alt2, free running mode + LPTMR_CSR_TFC | LPTMR_CSR_TMS; + LPTMR0_CSR |= LPTMR_CSR_TEN; // Enable #else // Setup PDB for ADC0 at 24 kHz SIM_SCGC6 |= SIM_SCGC6_PDB; // Enable PDB clock