Skip to content

Commit b226a16

Browse files
Merge pull request sandeepmistry#132 from carlosperate/sda_scl
Add SDA and SCL pin constants to variant definitions.
2 parents 570d689 + da24f08 commit b226a16

File tree

12 files changed

+36
-0
lines changed

12 files changed

+36
-0
lines changed

variants/BBCmicrobit/variant.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ static const uint8_t SCK = PIN_SPI_SCK ;
9494
#define PIN_WIRE_SDA (20u)
9595
#define PIN_WIRE_SCL (19u)
9696

97+
static const uint8_t SDA = PIN_WIRE_SDA;
98+
static const uint8_t SCL = PIN_WIRE_SCL;
99+
97100
#ifdef __cplusplus
98101
}
99102
#endif

variants/BLENano/variant.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ static const uint8_t SCK = PIN_SPI_SCK ;
8888
#define PIN_WIRE_SDA (2u)
8989
#define PIN_WIRE_SCL (3u)
9090

91+
static const uint8_t SDA = PIN_WIRE_SDA;
92+
static const uint8_t SCL = PIN_WIRE_SCL;
93+
9194
#ifdef __cplusplus
9295
}
9396
#endif

variants/BluzDK/variant.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ static const uint8_t SCK1 = PIN_SPI1_SCK ;
107107
#define PIN_WIRE_SDA (0u)
108108
#define PIN_WIRE_SCL (1u)
109109

110+
static const uint8_t SDA = PIN_WIRE_SDA;
111+
static const uint8_t SCL = PIN_WIRE_SCL;
112+
110113
#ifdef __cplusplus
111114
}
112115
#endif

variants/Generic/variant.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ static const uint8_t SCK = PIN_SPI_SCK ;
9696
#define PIN_WIRE_SDA (20u)
9797
#define PIN_WIRE_SCL (21u)
9898

99+
static const uint8_t SDA = PIN_WIRE_SDA;
100+
static const uint8_t SCL = PIN_WIRE_SCL;
101+
99102
#ifdef __cplusplus
100103
}
101104
#endif

variants/PCA1000X/variant.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ extern "C"
110110
#define PIN_WIRE_SDA (25u)
111111
#define PIN_WIRE_SCL (24u)
112112

113+
static const uint8_t SDA = PIN_WIRE_SDA;
114+
static const uint8_t SCL = PIN_WIRE_SCL;
115+
113116
#else
114117
/* PCA10000
115118
* *********/

variants/RedBearLab_nRF51822/variant.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ static const uint8_t SCK = PIN_SPI_SCK ;
8888
#define PIN_WIRE_SDA (20u)
8989
#define PIN_WIRE_SCL (21u)
9090

91+
static const uint8_t SDA = PIN_WIRE_SDA;
92+
static const uint8_t SCL = PIN_WIRE_SCL;
93+
9194
#ifdef __cplusplus
9295
}
9396
#endif

variants/RedBear_BLENano2/variant.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ static const uint8_t SCK = PIN_SPI_SCK ;
8787
#define PIN_WIRE_SDA (2u)
8888
#define PIN_WIRE_SCL (3u)
8989

90+
static const uint8_t SDA = PIN_WIRE_SDA;
91+
static const uint8_t SCL = PIN_WIRE_SCL;
92+
9093
#ifdef __cplusplus
9194
}
9295
#endif

variants/RedBear_Blend2/variant.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ static const uint8_t SCK = PIN_SPI_SCK ;
9191
#define PIN_WIRE_SDA (20u)
9292
#define PIN_WIRE_SCL (21u)
9393

94+
static const uint8_t SDA = PIN_WIRE_SDA;
95+
static const uint8_t SCL = PIN_WIRE_SCL;
96+
9497
#ifdef __cplusplus
9598
}
9699
#endif

variants/Taida_Century_nRF52_minidev/variant.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ static const uint8_t SCK = PIN_SPI_SCK ;
101101
#define PIN_WIRE_SDA (2u)
102102
#define PIN_WIRE_SCL (3u)
103103

104+
static const uint8_t SDA = PIN_WIRE_SDA;
105+
static const uint8_t SCL = PIN_WIRE_SCL;
106+
104107
#ifdef __cplusplus
105108
}
106109
#endif

variants/Waveshare_BLE400/variant.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ static const uint8_t SCK = PIN_SPI_SCK ;
104104
#define PIN_WIRE_SDA (0u)
105105
#define PIN_WIRE_SCL (1u)
106106

107+
static const uint8_t SDA = PIN_WIRE_SDA;
108+
static const uint8_t SCL = PIN_WIRE_SCL;
109+
107110
#ifdef __cplusplus
108111
}
109112
#endif

0 commit comments

Comments
 (0)