Skip to content

Commit c66bcd2

Browse files
Update SAMD21 board interrupt mapping to Rev3 design, based on the more common cables with GND on pin1, VCC on pin2
1 parent 24b33e7 commit c66bcd2

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/PlugAndPlay/EEPROMs/EEPROM_SAMD21_Dev.cpp

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,22 @@ void setup()
3131
deviceInfo.endpointData[0].i2cAddress = 0x70; // TCA9548A I2C mux address
3232
deviceInfo.paramsLength = 16;
3333

34-
interruptMapping[0*2 + 0] = 12;
35-
interruptMapping[0*2 + 1] = 11;
36-
interruptMapping[1*2 + 0] = 7;
37-
interruptMapping[1*2 + 1] = 6;
38-
interruptMapping[2*2 + 0] = A5;
39-
interruptMapping[2*2 + 1] = 26;
40-
interruptMapping[3*2 + 0] = A2;
41-
interruptMapping[3*2 + 1] = A1;
42-
interruptMapping[4*2 + 0] = 9;
43-
interruptMapping[4*2 + 1] = 8;
44-
interruptMapping[5*2 + 0] = 23;
45-
interruptMapping[5*2 + 1] = 24;
46-
interruptMapping[6*2 + 0] = 22;
47-
interruptMapping[6*2 + 1] = 13;
48-
interruptMapping[7*2 + 0] = 2;
49-
interruptMapping[7*2 + 1] = 38;
34+
interruptMapping[0*2 + 0] = 11;
35+
interruptMapping[0*2 + 1] = 12;
36+
interruptMapping[1*2 + 0] = 6;
37+
interruptMapping[1*2 + 1] = 7;
38+
interruptMapping[2*2 + 0] = 26;
39+
interruptMapping[2*2 + 1] = A5;
40+
interruptMapping[3*2 + 0] = A1;
41+
interruptMapping[3*2 + 1] = A2;
42+
interruptMapping[4*2 + 0] = 8;
43+
interruptMapping[4*2 + 1] = 9;
44+
interruptMapping[5*2 + 0] = 24;
45+
interruptMapping[5*2 + 1] = 23;
46+
interruptMapping[6*2 + 0] = 13;
47+
interruptMapping[6*2 + 1] = 22;
48+
interruptMapping[7*2 + 0] = 38;
49+
interruptMapping[7*2 + 1] = 2;
5050

5151
rc = EBF_PlugAndPlayManager::WriteDeviceEEPROM(0x50 + EBF_PlugAndPlayManager::PNP_EEPROM_MAIN_HUB, deviceInfo, interruptMapping, sizeof(interruptMapping));
5252
if (rc == EBF_OK) {

0 commit comments

Comments
 (0)