Commit b226a160 authored by Jacob Rosenthal's avatar Jacob Rosenthal Committed by GitHub

Merge pull request #132 from carlosperate/sda_scl

Add SDA and SCL pin constants to variant definitions.
parents 570d689a da24f08c
...@@ -94,6 +94,9 @@ static const uint8_t SCK = PIN_SPI_SCK ; ...@@ -94,6 +94,9 @@ static const uint8_t SCK = PIN_SPI_SCK ;
#define PIN_WIRE_SDA (20u) #define PIN_WIRE_SDA (20u)
#define PIN_WIRE_SCL (19u) #define PIN_WIRE_SCL (19u)
static const uint8_t SDA = PIN_WIRE_SDA;
static const uint8_t SCL = PIN_WIRE_SCL;
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
......
...@@ -88,6 +88,9 @@ static const uint8_t SCK = PIN_SPI_SCK ; ...@@ -88,6 +88,9 @@ static const uint8_t SCK = PIN_SPI_SCK ;
#define PIN_WIRE_SDA (2u) #define PIN_WIRE_SDA (2u)
#define PIN_WIRE_SCL (3u) #define PIN_WIRE_SCL (3u)
static const uint8_t SDA = PIN_WIRE_SDA;
static const uint8_t SCL = PIN_WIRE_SCL;
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
......
...@@ -107,6 +107,9 @@ static const uint8_t SCK1 = PIN_SPI1_SCK ; ...@@ -107,6 +107,9 @@ static const uint8_t SCK1 = PIN_SPI1_SCK ;
#define PIN_WIRE_SDA (0u) #define PIN_WIRE_SDA (0u)
#define PIN_WIRE_SCL (1u) #define PIN_WIRE_SCL (1u)
static const uint8_t SDA = PIN_WIRE_SDA;
static const uint8_t SCL = PIN_WIRE_SCL;
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
......
...@@ -96,6 +96,9 @@ static const uint8_t SCK = PIN_SPI_SCK ; ...@@ -96,6 +96,9 @@ static const uint8_t SCK = PIN_SPI_SCK ;
#define PIN_WIRE_SDA (20u) #define PIN_WIRE_SDA (20u)
#define PIN_WIRE_SCL (21u) #define PIN_WIRE_SCL (21u)
static const uint8_t SDA = PIN_WIRE_SDA;
static const uint8_t SCL = PIN_WIRE_SCL;
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
......
...@@ -110,6 +110,9 @@ extern "C" ...@@ -110,6 +110,9 @@ extern "C"
#define PIN_WIRE_SDA (25u) #define PIN_WIRE_SDA (25u)
#define PIN_WIRE_SCL (24u) #define PIN_WIRE_SCL (24u)
static const uint8_t SDA = PIN_WIRE_SDA;
static const uint8_t SCL = PIN_WIRE_SCL;
#else #else
/* PCA10000 /* PCA10000
* *********/ * *********/
......
...@@ -88,6 +88,9 @@ static const uint8_t SCK = PIN_SPI_SCK ; ...@@ -88,6 +88,9 @@ static const uint8_t SCK = PIN_SPI_SCK ;
#define PIN_WIRE_SDA (20u) #define PIN_WIRE_SDA (20u)
#define PIN_WIRE_SCL (21u) #define PIN_WIRE_SCL (21u)
static const uint8_t SDA = PIN_WIRE_SDA;
static const uint8_t SCL = PIN_WIRE_SCL;
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
......
...@@ -87,6 +87,9 @@ static const uint8_t SCK = PIN_SPI_SCK ; ...@@ -87,6 +87,9 @@ static const uint8_t SCK = PIN_SPI_SCK ;
#define PIN_WIRE_SDA (2u) #define PIN_WIRE_SDA (2u)
#define PIN_WIRE_SCL (3u) #define PIN_WIRE_SCL (3u)
static const uint8_t SDA = PIN_WIRE_SDA;
static const uint8_t SCL = PIN_WIRE_SCL;
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
......
...@@ -91,6 +91,9 @@ static const uint8_t SCK = PIN_SPI_SCK ; ...@@ -91,6 +91,9 @@ static const uint8_t SCK = PIN_SPI_SCK ;
#define PIN_WIRE_SDA (20u) #define PIN_WIRE_SDA (20u)
#define PIN_WIRE_SCL (21u) #define PIN_WIRE_SCL (21u)
static const uint8_t SDA = PIN_WIRE_SDA;
static const uint8_t SCL = PIN_WIRE_SCL;
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
......
...@@ -101,6 +101,9 @@ static const uint8_t SCK = PIN_SPI_SCK ; ...@@ -101,6 +101,9 @@ static const uint8_t SCK = PIN_SPI_SCK ;
#define PIN_WIRE_SDA (2u) #define PIN_WIRE_SDA (2u)
#define PIN_WIRE_SCL (3u) #define PIN_WIRE_SCL (3u)
static const uint8_t SDA = PIN_WIRE_SDA;
static const uint8_t SCL = PIN_WIRE_SCL;
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
......
...@@ -104,6 +104,9 @@ static const uint8_t SCK = PIN_SPI_SCK ; ...@@ -104,6 +104,9 @@ static const uint8_t SCK = PIN_SPI_SCK ;
#define PIN_WIRE_SDA (0u) #define PIN_WIRE_SDA (0u)
#define PIN_WIRE_SCL (1u) #define PIN_WIRE_SCL (1u)
static const uint8_t SDA = PIN_WIRE_SDA;
static const uint8_t SCL = PIN_WIRE_SCL;
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
......
...@@ -105,6 +105,9 @@ static const uint8_t SCK = PIN_SPI_SCK ; ...@@ -105,6 +105,9 @@ static const uint8_t SCK = PIN_SPI_SCK ;
#define PIN_WIRE_SDA (22u) #define PIN_WIRE_SDA (22u)
#define PIN_WIRE_SCL (23u) #define PIN_WIRE_SCL (23u)
static const uint8_t SDA = PIN_WIRE_SDA;
static const uint8_t SCL = PIN_WIRE_SCL;
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
......
...@@ -80,6 +80,9 @@ static const uint8_t SCK = PIN_SPI_SCK ; ...@@ -80,6 +80,9 @@ static const uint8_t SCK = PIN_SPI_SCK ;
#define PIN_WIRE_SDA (6u) #define PIN_WIRE_SDA (6u)
#define PIN_WIRE_SCL (7u) #define PIN_WIRE_SCL (7u)
static const uint8_t SDA = PIN_WIRE_SDA;
static const uint8_t SCL = PIN_WIRE_SCL;
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment