Skip to content

Commit

Permalink
TeensyLC: updated to support TeensyLC via pedvide ADC
Browse files Browse the repository at this point in the history
  • Loading branch information
laurb9 committed Jun 4, 2018
1 parent db5da54 commit e4c6dcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tiny_scope/adc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions tiny_scope/adc_teensy3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -107,4 +107,4 @@ uint32_t ADCInput::getSampleRate(){
return ADCInput::getClock() / ADC_CLOCK_TO_SAMPLING;
}

#endif /* __MK20DX256__ */
#endif /* defined(__MK20DX256__) || defined(__MKL26Z64__) */

0 comments on commit e4c6dcc

Please sign in to comment.