Skip to content

Commit

Permalink
Define WIRE_INTERFACES_COUNT
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulStoffregen committed Mar 4, 2023
1 parent 4a75d04 commit f3c8817
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions teensy/pins_arduino.h
Expand Up @@ -163,4 +163,8 @@ static inline uint8_t digitalPinToTimer(uint8_t pin)

#define SerialUSB Serial

#if defined(__AVR_ATmega32U4__) || defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB1286__)
#define WIRE_INTERFACES_COUNT 1
#endif

#endif
9 changes: 9 additions & 0 deletions teensy3/pins_arduino.h
Expand Up @@ -283,4 +283,13 @@ static inline uint8_t digitalPinToTimer(uint8_t pin)

#define SerialUSB Serial

#if defined(__MK66FX1M0__)
#define WIRE_INTERFACES_COUNT 4
#elif defined(__MK64FX512__)
#define WIRE_INTERFACES_COUNT 3
#else
#define WIRE_INTERFACES_COUNT 2
#endif


#endif
2 changes: 2 additions & 0 deletions teensy4/pins_arduino.h
Expand Up @@ -202,4 +202,6 @@ static inline uint8_t digitalPinToTimer(uint8_t pin)

#define SerialUSB Serial

#define WIRE_INTERFACES_COUNT 3

#endif // pins_macros_for_arduino_compatibility_h

0 comments on commit f3c8817

Please sign in to comment.