Skip to content

Commit efd2961

Browse files
committed
I2C slave support for Grand Central M4
1 parent 3ed74de commit efd2961

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

variants/grand_central_m4/variant.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@ static const uint8_t SCK1 = PIN_SPI1_SCK;
217217
#define PIN_WIRE_SCL (63)
218218
#define PERIPH_WIRE sercom3
219219
#define WIRE_IT_HANDLER SERCOM3_Handler
220+
#define WIRE_IT_HANDLER_0 SERCOM3_0_Handler
221+
#define WIRE_IT_HANDLER_1 SERCOM3_1_Handler
222+
#define WIRE_IT_HANDLER_2 SERCOM3_2_Handler
223+
#define WIRE_IT_HANDLER_3 SERCOM3_3_Handler
220224

221225
static const uint8_t SDA = PIN_WIRE_SDA;
222226
static const uint8_t SCL = PIN_WIRE_SCL;
@@ -225,6 +229,10 @@ static const uint8_t SCL = PIN_WIRE_SCL;
225229
#define PIN_WIRE1_SCL (24)
226230
#define PERIPH_WIRE1 sercom6
227231
#define WIRE1_IT_HANDLER SERCOM6_Handler
232+
#define WIRE1_IT_HANDLER_0 SERCOM6_0_Handler
233+
#define WIRE1_IT_HANDLER_1 SERCOM6_1_Handler
234+
#define WIRE1_IT_HANDLER_2 SERCOM6_2_Handler
235+
#define WIRE1_IT_HANDLER_3 SERCOM6_3_Handler
228236

229237
static const uint8_t SDA1 = PIN_WIRE1_SDA;
230238
static const uint8_t SCL1 = PIN_WIRE1_SCL;
@@ -331,4 +339,4 @@ extern Uart Serial1;
331339
#define SERIAL_PORT_HARDWARE Serial1
332340
#define SERIAL_PORT_HARDWARE_OPEN Serial1
333341

334-
#endif /* _VARIANT_METRO_M4_ */
342+
#endif /* _VARIANT_GRAND_CENTRAL_M4_ */

0 commit comments

Comments
 (0)