Skip to content

Commit 52b98ba

Browse files
committed
I2C slave support for grove-ui-wireless
1 parent 0425224 commit 52b98ba

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

variants/grove_ui_wireless/variant.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,10 @@ static const uint8_t DAC1 = PIN_DAC1;
288288
#define PIN_WIRE_SCL (45ul)
289289
#define PERIPH_WIRE sercom3
290290
#define WIRE_IT_HANDLER SERCOM3_Handler
291+
#define WIRE_IT_HANDLER_0 SERCOM3_0_Handler
292+
#define WIRE_IT_HANDLER_1 SERCOM3_1_Handler
293+
#define WIRE_IT_HANDLER_2 SERCOM3_2_Handler
294+
#define WIRE_IT_HANDLER_3 SERCOM3_3_Handler
291295

292296
static const uint8_t SDA = PIN_WIRE_SDA;
293297
static const uint8_t SCL = PIN_WIRE_SCL;
@@ -296,6 +300,10 @@ static const uint8_t DAC1 = PIN_DAC1;
296300
#define PIN_WIRE1_SCL (77ul)
297301
#define PERIPH_WIRE1 sercom4
298302
#define WIRE1_IT_HANDLER SERCOM4_Handler
303+
#define WIRE1_IT_HANDLER_0 SERCOM4_0_Handler
304+
#define WIRE1_IT_HANDLER_1 SERCOM4_1_Handler
305+
#define WIRE1_IT_HANDLER_2 SERCOM4_2_Handler
306+
#define WIRE1_IT_HANDLER_3 SERCOM4_3_Handler
299307

300308
static const uint8_t SDA1 = PIN_WIRE1_SDA;
301309
static const uint8_t SCL1 = PIN_WIRE1_SCL;

0 commit comments

Comments
 (0)