Quellcode durchsuchen

Merge pull request #23 from KurtE/T41_Wire1_Pins

T41 Wire1 Alternate pins different than T40
main
Paul Stoffregen vor 4 Jahren
Ursprung
Commit
e4b5c6623c
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden
1 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen
  1. +5
    -0
      WireIMXRT.cpp

+ 5
- 0
WireIMXRT.cpp Datei anzeigen

PROGMEM PROGMEM
constexpr TwoWire::I2C_Hardware_t TwoWire::i2c3_hardware = { constexpr TwoWire::I2C_Hardware_t TwoWire::i2c3_hardware = {
CCM_CCGR2, CCM_CCGR2_LPI2C3(CCM_CCGR_ON), CCM_CCGR2, CCM_CCGR2_LPI2C3(CCM_CCGR_ON),
#if defined(ARDUINO_TEENSY41)
{{17, 1 | 0x10, &IOMUXC_LPI2C3_SDA_SELECT_INPUT, 2}, {44, 2 | 0x10, &IOMUXC_LPI2C3_SDA_SELECT_INPUT, 1}},
{{16, 1 | 0x10, &IOMUXC_LPI2C3_SCL_SELECT_INPUT, 2}, {45, 2 | 0x10, &IOMUXC_LPI2C3_SCL_SELECT_INPUT, 1}},
#else
{{17, 1 | 0x10, &IOMUXC_LPI2C3_SDA_SELECT_INPUT, 2}, {36, 2 | 0x10, &IOMUXC_LPI2C3_SDA_SELECT_INPUT, 1}}, {{17, 1 | 0x10, &IOMUXC_LPI2C3_SDA_SELECT_INPUT, 2}, {36, 2 | 0x10, &IOMUXC_LPI2C3_SDA_SELECT_INPUT, 1}},
{{16, 1 | 0x10, &IOMUXC_LPI2C3_SCL_SELECT_INPUT, 2}, {37, 2 | 0x10, &IOMUXC_LPI2C3_SCL_SELECT_INPUT, 1}}, {{16, 1 | 0x10, &IOMUXC_LPI2C3_SCL_SELECT_INPUT, 2}, {37, 2 | 0x10, &IOMUXC_LPI2C3_SCL_SELECT_INPUT, 1}},
#endif
IRQ_LPI2C3 IRQ_LPI2C3
}; };
TwoWire Wire1(&IMXRT_LPI2C3, TwoWire::i2c3_hardware); TwoWire Wire1(&IMXRT_LPI2C3, TwoWire::i2c3_hardware);

Laden…
Abbrechen
Speichern