Procházet zdrojové kódy

Update SPI.h

In the comments: "Teensy 3.x" changed to "Teensy LC". Or is the LC also part of the "3" family?
main
crteensy před 10 roky
rodič
revize
2401901b56
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. +2
    -2
      SPI.h

+ 2
- 2
SPI.h Zobrazit soubor

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);
} }

Načítá se…
Zrušit
Uložit