We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67a07ed commit 5fd4736Copy full SHA for 5fd4736
libraries/Wire/src/Wire.cpp
@@ -108,11 +108,27 @@ void TwoWire::begin() {
108
}
109
110
static void _handler0() {
111
+#if defined(__WIRE0_DEVICE)
112
+ if (__WIRE0_DEVICE == i2c0) {
113
+ Wire.onIRQ();
114
+ } else {
115
+ Wire1.onIRQ();
116
+ }
117
+#else
118
Wire.onIRQ();
119
+#endif
120
121
122
static void _handler1() {
123
+#if defined(__WIRE1_DEVICE)
124
+ if (__WIRE1_DEVICE == i2c0) {
125
126
127
128
129
130
Wire1.onIRQ();
131
132
133
134
// Slave mode
0 commit comments