File tree Expand file tree Collapse file tree 7 files changed +39
-32
lines changed Expand file tree Collapse file tree 7 files changed +39
-32
lines changed Original file line number Diff line number Diff line change @@ -110,9 +110,10 @@ static const uint8_t D15 = PIN_D15;
110
110
111
111
/****** WIRE CORE DEFINES ******/
112
112
113
- #define WIRE_HOWMANY 1
114
- #define WIRE_SDA_PIN 18 /* A4 */
115
- #define WIRE_SCL_PIN 19 /* A5 */
113
+ #define WIRE_HOWMANY 1
114
+ #define WIRE_INTERFACES_COUNT WIRE_HOWMANY
115
+ #define WIRE_SDA_PIN 18 /* A4 */
116
+ #define WIRE_SCL_PIN 19 /* A5 */
116
117
117
118
static const uint8_t SDA = WIRE_SDA_PIN ;
118
119
static const uint8_t SCL = WIRE_SCL_PIN ;
Original file line number Diff line number Diff line change @@ -145,9 +145,10 @@ static const uint8_t A6 = PIN_A6;
145
145
146
146
/****** WIRE CORE DEFINES ******/
147
147
148
- #define WIRE_HOWMANY 1
149
- #define WIRE_SDA_PIN 20
150
- #define WIRE_SCL_PIN 21
148
+ #define WIRE_HOWMANY 1
149
+ #define WIRE_INTERFACES_COUNT WIRE_HOWMANY
150
+ #define WIRE_SDA_PIN 20
151
+ #define WIRE_SCL_PIN 21
151
152
152
153
// TODO: removeme
153
154
#ifdef __cplusplus
Original file line number Diff line number Diff line change @@ -117,11 +117,12 @@ static const uint8_t D15 = PIN_D15;
117
117
118
118
/****** WIRE CORE DEFINES ******/
119
119
120
- #define WIRE_HOWMANY 2
121
- #define WIRE_SDA_PIN 18 /* A4 */
122
- #define WIRE_SCL_PIN 19 /* A5 */
123
- #define WIRE1_SDA_PIN 27
124
- #define WIRE1_SCL_PIN 26
120
+ #define WIRE_HOWMANY 2
121
+ #define WIRE_INTERFACES_COUNT WIRE_HOWMANY
122
+ #define WIRE_SDA_PIN 18 /* A4 */
123
+ #define WIRE_SCL_PIN 19 /* A5 */
124
+ #define WIRE1_SDA_PIN 27
125
+ #define WIRE1_SCL_PIN 26
125
126
126
127
static const uint8_t SDA = WIRE_SDA_PIN ;
127
128
static const uint8_t SCL = WIRE_SCL_PIN ;
Original file line number Diff line number Diff line change @@ -74,10 +74,11 @@ extern "C" unsigned int PINCOUNT_fn();
74
74
#define UART1_RX_PIN UART_RX
75
75
/* ************************** WIRE CORE DEFINES **************************** */
76
76
#define WIRE_HOWMANY 1
77
- #define WIRE_SDA_PIN I2C_SDA
78
- #define WIRE_SCL_PIN I2C_SCL
77
+ #define WIRE_INTERFACES_COUNT WIRE_HOWMANY
78
+ #define WIRE_SDA_PIN I2C_SDA
79
+ #define WIRE_SCL_PIN I2C_SCL
79
80
static const uint8_t SDA = WIRE_SDA_PIN ;
80
- static const uint8_t SCL = WIRE_SDA_PIN ;
81
+ static const uint8_t SCL = WIRE_SCL_PIN ;
81
82
/* *************************** SPI CORE DEFINES **************************** */
82
83
#define SPI_HOWMANY 1
83
84
#define PIN_SPI_MOSI SPI_MOSI
Original file line number Diff line number Diff line change @@ -138,12 +138,13 @@ static const uint8_t A15 = AN15;
138
138
#define UART1_RX_PIN UART_TX
139
139
140
140
/****** WIRE CORE DEFINES ******/
141
- #define WIRE_HOWMANY 1
142
- #define WIRE_SDA_PIN I2C_SDA
143
- #define WIRE_SCL_PIN I2C_SCL
141
+ #define WIRE_HOWMANY 1
142
+ #define WIRE_INTERFACES_COUNT WIRE_HOWMANY
143
+ #define WIRE_SDA_PIN I2C_SDA
144
+ #define WIRE_SCL_PIN I2C_SCL
144
145
145
146
static const uint8_t SDA = WIRE_SDA_PIN ;
146
- static const uint8_t SCL = WIRE_SDA_PIN ;
147
+ static const uint8_t SCL = WIRE_SCL_PIN ;
147
148
148
149
/****** SPI CORE DEFINES ******/
149
150
Original file line number Diff line number Diff line change @@ -99,15 +99,16 @@ static const uint8_t D7 = PIN_D7;
99
99
100
100
/****** WIRE CORE DEFINES ******/
101
101
102
- #define WIRE_HOWMANY 4
103
- #define WIRE_SDA_PIN 11
104
- #define WIRE_SCL_PIN 12
105
- #define WIRE1_SDA_PIN 37
106
- #define WIRE1_SCL_PIN 38
107
- #define WIRE2_SDA_PIN 39
108
- #define WIRE2_SCL_PIN 40
109
- #define WIRE3_SDA_PIN 96
110
- #define WIRE3_SCL_PIN 97
102
+ #define WIRE_HOWMANY 4
103
+ #define WIRE_INTERFACES_COUNT WIRE_HOWMANY
104
+ #define WIRE_SDA_PIN 11
105
+ #define WIRE_SCL_PIN 12
106
+ #define WIRE1_SDA_PIN 37
107
+ #define WIRE1_SCL_PIN 38
108
+ #define WIRE2_SDA_PIN 39
109
+ #define WIRE2_SCL_PIN 40
110
+ #define WIRE3_SDA_PIN 96
111
+ #define WIRE3_SCL_PIN 97
111
112
112
113
/****** SPI CORE DEFINES ******/
113
114
Original file line number Diff line number Diff line change @@ -113,11 +113,12 @@ static const uint8_t D15 = PIN_D15;
113
113
114
114
/****** WIRE CORE DEFINES ******/
115
115
116
- #define WIRE_HOWMANY 2
117
- #define WIRE_SDA_PIN 18 /* A4 */
118
- #define WIRE_SCL_PIN 19 /* A5 */
119
- #define WIRE1_SDA_PIN 27
120
- #define WIRE1_SCL_PIN 26
116
+ #define WIRE_HOWMANY 2
117
+ #define WIRE_INTERFACES_COUNT WIRE_HOWMANY
118
+ #define WIRE_SDA_PIN 18 /* A4 */
119
+ #define WIRE_SCL_PIN 19 /* A5 */
120
+ #define WIRE1_SDA_PIN 27
121
+ #define WIRE1_SCL_PIN 26
121
122
122
123
static const uint8_t SDA = WIRE_SDA_PIN ;
123
124
static const uint8_t SCL = WIRE_SCL_PIN ;
You can’t perform that action at this time.
0 commit comments