From e4c6dcca922d8dd4b0f5b93e1a4394a6d182d6fb Mon Sep 17 00:00:00 2001 From: Laurentiu Badea Date: Sun, 6 Dec 2015 18:43:40 -0800 Subject: [PATCH] TeensyLC: updated to support TeensyLC via pedvide ADC --- tiny_scope/adc.h | 2 +- tiny_scope/adc_teensy3.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tiny_scope/adc.h b/tiny_scope/adc.h index 827bf59..4de04d5 100644 --- a/tiny_scope/adc.h +++ b/tiny_scope/adc.h @@ -80,7 +80,7 @@ class ADCBase { } }; -#ifdef __MK20DX256__ +#if defined(__MK20DX256__) || defined(__MKL26Z64__) #include "adc_teensy3.h" #elif defined(__AVR__) && defined(ADCSRA) && defined(ADCL) #include "adc_avr.h" diff --git a/tiny_scope/adc_teensy3.cpp b/tiny_scope/adc_teensy3.cpp index df6ba76..f417fa6 100644 --- a/tiny_scope/adc_teensy3.cpp +++ b/tiny_scope/adc_teensy3.cpp @@ -8,7 +8,7 @@ * A copy of this license has been included with this distribution in the file LICENSE. * */ -#ifdef __MK20DX256__ +#if defined(__MK20DX256__) || defined(__MKL26Z64__) #include "adc_teensy3.h" // Actual voltage of internal 1.2V ref in mV. This is different from chip to chip. @@ -107,4 +107,4 @@ uint32_t ADCInput::getSampleRate(){ return ADCInput::getClock() / ADC_CLOCK_TO_SAMPLING; } -#endif /* __MK20DX256__ */ +#endif /* defined(__MK20DX256__) || defined(__MKL26Z64__) */