Skip to content

Commit 7a60a36

Browse files
committed
I2C slave support for Pyportal Titano M4
1 parent bc5fcc0 commit 7a60a36

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

variants/pyportal_m4_titano/variant.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ 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
178182

179183
static const uint8_t SDA = PIN_WIRE_SDA;
180184
static const uint8_t SCL = PIN_WIRE_SCL;
@@ -245,5 +249,5 @@ extern Uart Serial1;
245249
#define SERIAL_PORT_HARDWARE Serial1
246250
#define SERIAL_PORT_HARDWARE_OPEN Serial1
247251

248-
#endif /* _VARIANT_METRO_M4_ */
252+
#endif /* _VARIANT_PYPORTAL_M4_TITANO_ */
249253

0 commit comments

Comments
 (0)