Skip to content

Commit 3d92deb

Browse files
authored
Merge pull request #4813 from sandeepmistry/sam-i2c-symbols
Port SDA and SCL symbols to SAM
2 parents c63ae04 + ea7fbde commit 3d92deb

File tree

1 file changed

+5
-0
lines changed
  • hardware/arduino/sam/variants/arduino_due_x

1 file changed

+5
-0
lines changed

hardware/arduino/sam/variants/arduino_due_x/variant.h

+5
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,11 @@ static const uint8_t SCK = PIN_SPI_SCK;
154154
#define WIRE1_ISR_HANDLER TWI0_Handler
155155
#define WIRE1_ISR_ID TWI0_IRQn
156156

157+
static const uint8_t SDA = PIN_WIRE_SDA;
158+
static const uint8_t SCL = PIN_WIRE_SCL;
159+
static const uint8_t SDA1 = PIN_WIRE1_SDA;
160+
static const uint8_t SCL1 = PIN_WIRE1_SCL;
161+
157162
/*
158163
* UART/USART Interfaces
159164
*/

0 commit comments

Comments
 (0)