Skip to content

Commit 55b798c

Browse files
committed
I2C slave support for wio-terminal
1 parent 52b98ba commit 55b798c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

variants/wio_terminal/variant.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,10 @@ static const uint8_t DAC1 = PIN_DAC1;
295295
#define PIN_WIRE_SCL (45ul)
296296
#define PERIPH_WIRE sercom3
297297
#define WIRE_IT_HANDLER SERCOM3_Handler
298+
#define WIRE_IT_HANDLER_0 SERCOM3_0_Handler
299+
#define WIRE_IT_HANDLER_1 SERCOM3_1_Handler
300+
#define WIRE_IT_HANDLER_2 SERCOM3_2_Handler
301+
#define WIRE_IT_HANDLER_3 SERCOM3_3_Handler
298302

299303
static const uint8_t SDA = PIN_WIRE_SDA;
300304
static const uint8_t SCL = PIN_WIRE_SCL;
@@ -303,6 +307,10 @@ static const uint8_t DAC1 = PIN_DAC1;
303307
#define PIN_WIRE1_SCL (77ul)
304308
#define PERIPH_WIRE1 sercom4
305309
#define WIRE1_IT_HANDLER SERCOM4_Handler
310+
#define WIRE1_IT_HANDLER_0 SERCOM4_0_Handler
311+
#define WIRE1_IT_HANDLER_1 SERCOM4_1_Handler
312+
#define WIRE1_IT_HANDLER_2 SERCOM4_2_Handler
313+
#define WIRE1_IT_HANDLER_3 SERCOM4_3_Handler
306314

307315
static const uint8_t SDA1 = PIN_WIRE1_SDA;
308316
static const uint8_t SCL1 = PIN_WIRE1_SCL;

0 commit comments

Comments
 (0)