Skip to content

Commit bc5fcc0

Browse files
committed
I2C slave support for Pyportal M4
1 parent 8368e5f commit bc5fcc0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

variants/pyportal_m4/variant.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,11 @@ static const uint8_t SCK = PIN_SPI_SCK;
175175
#define PIN_WIRE_SCL (28u)
176176
#define PERIPH_WIRE sercom5
177177
#define WIRE_IT_HANDLER SERCOM5_Handler
178+
#define WIRE_IT_HANDLER_0 SERCOM5_0_Handler
179+
#define WIRE_IT_HANDLER_1 SERCOM5_1_Handler
180+
#define WIRE_IT_HANDLER_2 SERCOM5_2_Handler
181+
#define WIRE_IT_HANDLER_3 SERCOM5_3_Handler
182+
178183

179184
static const uint8_t SDA = PIN_WIRE_SDA;
180185
static const uint8_t SCL = PIN_WIRE_SCL;
@@ -245,5 +250,5 @@ extern Uart Serial1;
245250
#define SERIAL_PORT_HARDWARE Serial1
246251
#define SERIAL_PORT_HARDWARE_OPEN Serial1
247252

248-
#endif /* _VARIANT_METRO_M4_ */
253+
#endif /* _VARIANT_PYPORTAL_M4_ */
249254

0 commit comments

Comments
 (0)