Skip to content

Commit 43e7bd8

Browse files
committed
I2C slave support for Pybadge M4
1 parent 84cef9a commit 43e7bd8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

variants/pybadge_airlift_m4/variant.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,5 +264,5 @@ extern Uart Serial1;
264264
#define SERIAL_PORT_HARDWARE Serial1
265265
#define SERIAL_PORT_HARDWARE_OPEN Serial1
266266

267-
#endif /* _VARIANT_FEATHER_M4_ */
267+
#endif /* _VARIANT_PYBADGE_AIRLIFT_M4_ */
268268

variants/pybadge_m4/variant.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ static const uint8_t SCK2 = PIN_SPI2_SCK ;
185185
#define PIN_WIRE_SCL (25u)
186186
#define PERIPH_WIRE sercom2
187187
#define WIRE_IT_HANDLER SERCOM2_Handler
188+
#define WIRE_IT_HANDLER_0 SERCOM2_0_Handler
189+
#define WIRE_IT_HANDLER_1 SERCOM2_1_Handler
190+
#define WIRE_IT_HANDLER_2 SERCOM2_2_Handler
191+
#define WIRE_IT_HANDLER_3 SERCOM2_3_Handler
188192

189193
static const uint8_t SDA = PIN_WIRE_SDA;
190194
static const uint8_t SCL = PIN_WIRE_SCL;
@@ -261,5 +265,5 @@ extern Uart Serial1;
261265
#define SERIAL_PORT_HARDWARE Serial1
262266
#define SERIAL_PORT_HARDWARE_OPEN Serial1
263267

264-
#endif /* _VARIANT_FEATHER_M4_ */
268+
#endif /* _VARIANT_PYBADGE_M4_ */
265269

0 commit comments

Comments
 (0)