Skip to content

Commit ccfcc89

Browse files
committed
added SDA and SCL Variables
Added SDA and SCL variables in variant.h of samd boards This resolve: #473
1 parent 663b71d commit ccfcc89

File tree

7 files changed

+14
-0
lines changed

7 files changed

+14
-0
lines changed

variants/mkrfox1200/variant.h

+2
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ static const uint8_t SCK1 = PIN_SPI1_SCK;
142142
#define PIN_WIRE_SCL (12u)
143143
#define PERIPH_WIRE sercom2
144144
#define WIRE_IT_HANDLER SERCOM2_Handler
145+
static const uint8_t SDA = PIN_WIRE_SDA;
146+
static const uint8_t SCL = PIN_WIRE_SCL;
145147

146148
// USB
147149
// ---

variants/mkrgsm1400/variant.h

+2
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ static const uint8_t SCK = PIN_SPI_SCK;
122122
#define PIN_WIRE_SCL (12u)
123123
#define PERIPH_WIRE sercom2
124124
#define WIRE_IT_HANDLER SERCOM2_Handler
125+
static const uint8_t SDA = PIN_WIRE_SDA;
126+
static const uint8_t SCL = PIN_WIRE_SCL;
125127

126128
// USB
127129
// ---

variants/mkrnb1500/variant.h

+2
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ static const uint8_t SCK = PIN_SPI_SCK;
123123
#define PIN_WIRE_SCL (12u)
124124
#define PERIPH_WIRE sercom2
125125
#define WIRE_IT_HANDLER SERCOM2_Handler
126+
static const uint8_t SDA = PIN_WIRE_SDA;
127+
static const uint8_t SCL = PIN_WIRE_SCL;
126128

127129
// USB
128130
// ---

variants/mkrvidor4000/variant.h

+2
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ static const uint8_t SCK1 = PIN_SPI1_SCK;
126126
#define PIN_WIRE_SCL (12u)
127127
#define PERIPH_WIRE sercom0
128128
#define WIRE_IT_HANDLER SERCOM0_Handler
129+
static const uint8_t SDA = PIN_WIRE_SDA;
130+
static const uint8_t SCL = PIN_WIRE_SCL;
129131

130132
// USB
131133
// ---

variants/mkrwan1300/variant.h

+2
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ static const uint8_t SCK1 = PIN_SPI1_SCK;
132132
#define PIN_WIRE_SCL (12u)
133133
#define PERIPH_WIRE sercom2
134134
#define WIRE_IT_HANDLER SERCOM2_Handler
135+
static const uint8_t SDA = PIN_WIRE_SDA;
136+
static const uint8_t SCL = PIN_WIRE_SCL;
135137

136138
// USB
137139
// ---

variants/mkrwifi1010/variant.h

+2
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ static const uint8_t SCK1 = PIN_SPI1_SCK;
139139
#define PIN_WIRE_SCL (12u)
140140
#define PERIPH_WIRE sercom2
141141
#define WIRE_IT_HANDLER SERCOM2_Handler
142+
static const uint8_t SDA = PIN_WIRE_SDA;
143+
static const uint8_t SCL = PIN_WIRE_SCL;
142144

143145
// USB
144146
// ---

variants/mkrzero/variant.h

+2
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ static const uint8_t SCK1 = PIN_SPI1_SCK;
136136
#define PIN_WIRE_SCL (12u)
137137
#define PERIPH_WIRE sercom2
138138
#define WIRE_IT_HANDLER SERCOM2_Handler
139+
static const uint8_t SDA = PIN_WIRE_SDA;
140+
static const uint8_t SCL = PIN_WIRE_SCL;
139141

140142
// USB
141143
// ---

0 commit comments

Comments
 (0)