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 ;
#define PIN_WIRE_SDA (20u)
#define PIN_WIRE_SCL (19u)
static const uint8_t SDA = PIN_WIRE_SDA;
static const uint8_t SCL = PIN_WIRE_SCL;
#ifdef __cplusplus
}
#endif
......
......@@ -88,6 +88,9 @@ static const uint8_t SCK = PIN_SPI_SCK ;
#define PIN_WIRE_SDA (2u)
#define PIN_WIRE_SCL (3u)
static const uint8_t SDA = PIN_WIRE_SDA;
static const uint8_t SCL = PIN_WIRE_SCL;
#ifdef __cplusplus
}
#endif
......
......@@ -107,6 +107,9 @@ static const uint8_t SCK1 = PIN_SPI1_SCK ;
#define PIN_WIRE_SDA (0u)
#define PIN_WIRE_SCL (1u)
static const uint8_t SDA = PIN_WIRE_SDA;
static const uint8_t SCL = PIN_WIRE_SCL;
#ifdef __cplusplus
}
#endif
......
......@@ -96,6 +96,9 @@ static const uint8_t SCK = PIN_SPI_SCK ;
#define PIN_WIRE_SDA (20u)
#define PIN_WIRE_SCL (21u)
static const uint8_t SDA = PIN_WIRE_SDA;
static const uint8_t SCL = PIN_WIRE_SCL;
#ifdef __cplusplus
}
#endif
......
......@@ -110,6 +110,9 @@ extern "C"
#define PIN_WIRE_SDA (25u)
#define PIN_WIRE_SCL (24u)
static const uint8_t SDA = PIN_WIRE_SDA;
static const uint8_t SCL = PIN_WIRE_SCL;
#else
/* PCA10000
* *********/
......
......@@ -88,6 +88,9 @@ static const uint8_t SCK = PIN_SPI_SCK ;
#define PIN_WIRE_SDA (20u)
#define PIN_WIRE_SCL (21u)
static const uint8_t SDA = PIN_WIRE_SDA;
static const uint8_t SCL = PIN_WIRE_SCL;
#ifdef __cplusplus
}
#endif
......
......@@ -87,6 +87,9 @@ static const uint8_t SCK = PIN_SPI_SCK ;
#define PIN_WIRE_SDA (2u)
#define PIN_WIRE_SCL (3u)
static const uint8_t SDA = PIN_WIRE_SDA;
static const uint8_t SCL = PIN_WIRE_SCL;
#ifdef __cplusplus
}
#endif
......
......@@ -91,6 +91,9 @@ static const uint8_t SCK = PIN_SPI_SCK ;
#define PIN_WIRE_SDA (20u)
#define PIN_WIRE_SCL (21u)
static const uint8_t SDA = PIN_WIRE_SDA;
static const uint8_t SCL = PIN_WIRE_SCL;
#ifdef __cplusplus
}
#endif
......
......@@ -101,6 +101,9 @@ static const uint8_t SCK = PIN_SPI_SCK ;
#define PIN_WIRE_SDA (2u)
#define PIN_WIRE_SCL (3u)
static const uint8_t SDA = PIN_WIRE_SDA;
static const uint8_t SCL = PIN_WIRE_SCL;
#ifdef __cplusplus
}
#endif
......
......@@ -104,6 +104,9 @@ static const uint8_t SCK = PIN_SPI_SCK ;
#define PIN_WIRE_SDA (0u)
#define PIN_WIRE_SCL (1u)
static const uint8_t SDA = PIN_WIRE_SDA;
static const uint8_t SCL = PIN_WIRE_SCL;
#ifdef __cplusplus
}
#endif
......
......@@ -105,6 +105,9 @@ static const uint8_t SCK = PIN_SPI_SCK ;
#define PIN_WIRE_SDA (22u)
#define PIN_WIRE_SCL (23u)
static const uint8_t SDA = PIN_WIRE_SDA;
static const uint8_t SCL = PIN_WIRE_SCL;
#ifdef __cplusplus
}
#endif
......
......@@ -80,6 +80,9 @@ static const uint8_t SCK = PIN_SPI_SCK ;
#define PIN_WIRE_SDA (6u)
#define PIN_WIRE_SCL (7u)
static const uint8_t SDA = PIN_WIRE_SDA;
static const uint8_t SCL = PIN_WIRE_SCL;
#ifdef __cplusplus
}
#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