Browse Source

Merge pull request #6 from crteensy/patch-1

Update SPI.h
main
Paul Stoffregen 9 years ago
parent
commit
a5977d6d1f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      SPI.h

+ 2
- 2
SPI.h View File

inline static void attachInterrupt() { } inline static void attachInterrupt() { }
inline static void detachInterrupt() { } inline static void detachInterrupt() { }


// Teensy 3.x can use alternate pins for these 3 SPI signals.
// Teensy LC can use alternate pins for these 3 SPI signals.
inline static void setMOSI(uint8_t pin) __attribute__((always_inline)) { inline static void setMOSI(uint8_t pin) __attribute__((always_inline)) {
SPCR.setMOSI(pin); SPCR.setMOSI(pin);
} }
inline static void attachInterrupt() { } inline static void attachInterrupt() { }
inline static void detachInterrupt() { } inline static void detachInterrupt() { }


// Teensy 3.x can use alternate pins for these 3 SPI signals.
// Teensy LC can use alternate pins for these 3 SPI signals.
inline static void setMOSI(uint8_t pin) __attribute__((always_inline)) { inline static void setMOSI(uint8_t pin) __attribute__((always_inline)) {
SPCR1.setMOSI(pin); SPCR1.setMOSI(pin);
} }

Loading…
Cancel
Save