Skip to content

Commit

Permalink
Minor fix for future Teensy boards (using AVR conventions)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulStoffregen committed Feb 1, 2015
1 parent c389591 commit 9985bad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utility/direct_pin_read.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef direct_pin_read_h_
#define direct_pin_read_h_

#if defined(__AVR__) || defined(__MK20DX128__) || defined(__MK20DX256__)
#if defined(__AVR__) || (defined(__arm__) && defined(CORE_TEENSY))

#define IO_REG_TYPE uint8_t
#define PIN_TO_BASEREG(pin) (portInputRegister(digitalPinToPort(pin)))
Expand Down

0 comments on commit 9985bad

Please sign in to comment.