Skip to content

Commit 2d9c206

Browse files
committed
Rename analogInPin to analogInputPin
Some example use analogInPin as variable name. Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 8eeafef commit 2d9c206

File tree

36 files changed

+42
-42
lines changed

36 files changed

+42
-42
lines changed

cores/arduino/pins_arduino.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ bool pinIsAnalogInput(uint32_t pin)
7575
ret = (pin >= A0) && (pin < (A0 + NUM_ANALOG_INPUTS));
7676
#else
7777
for (uint32_t i = 0; i < NUM_ANALOG_INPUTS; i++) {
78-
if (analogInPin[i] == pin) {
78+
if (analogInputPin[i] == pin) {
7979
ret = true;
8080
break;
8181
}
@@ -93,7 +93,7 @@ uint32_t digitalPinToAnalogInput(uint32_t pin)
9393
ret = pin - A0;
9494
#else
9595
for (uint32_t i = 0; i < NUM_ANALOG_INPUTS; i++) {
96-
if (analogInPin[i] == pin) {
96+
if (analogInputPin[i] == pin) {
9797
ret = i;
9898
break;
9999
}

cores/arduino/pins_arduino.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ enum {
5959

6060
// If NUM_ANALOG_FIRST is not defined:
6161
// - Ax are not contiguous in the digitalPin array
62-
// - analogInPin array is available
62+
// - analogInputPin array is available
6363
#ifndef NUM_ANALOG_FIRST
6464
#define NUM_ANALOG_FIRST (NUM_DIGITAL_PINS + 1)
6565
#define NUM_ANALOG_LAST (NUM_DIGITAL_PINS + NUM_ANALOG_INPUTS)
@@ -239,7 +239,7 @@ static const uint8_t SCL = PIN_WIRE_SCL;
239239
extern "C" {
240240
#endif
241241
extern const PinName digitalPin[];
242-
extern const uint32_t analogInPin[];
242+
extern const uint32_t analogInputPin[];
243243

244244
#define NOT_AN_INTERRUPT NC // -1
245245

@@ -250,7 +250,7 @@ extern const uint32_t analogInPin[];
250250
#else
251251
#define digitalPinToPinName(p) (((uint32_t)p < NUM_DIGITAL_PINS) ? digitalPin[p] : \
252252
((uint32_t)p >= NUM_ANALOG_FIRST) && ((uint32_t)p <= NUM_ANALOG_LAST) ? \
253-
digitalPin[analogInPin[p-NUM_ANALOG_FIRST]] : NC)
253+
digitalPin[analogInputPin[p-NUM_ANALOG_FIRST]] : NC)
254254
#endif
255255
// Convert a PinName PX_n to a digital pin number
256256
uint32_t pinNametoDigitalPin(PinName p);
@@ -264,9 +264,9 @@ uint32_t pinNametoDigitalPin(PinName p);
264264
#else
265265
// For non contiguous analog pins definition in digitalPin array
266266
#define analogInputToDigitalPin(p) ( \
267-
((uint32_t)p < NUM_ANALOG_INPUTS) ? analogInPin[p] : \
267+
((uint32_t)p < NUM_ANALOG_INPUTS) ? analogInputPin[p] : \
268268
((uint32_t)p >= NUM_ANALOG_FIRST) && ((uint32_t)p <= NUM_ANALOG_LAST) ? \
269-
analogInPin[p-NUM_ANALOG_FIRST] : p)
269+
analogInputPin[p-NUM_ANALOG_FIRST] : p)
270270
#endif // !NUM_ANALOG_LAST
271271
#else
272272
// No analog pin defined

variants/BLUE_F407VE_Mini/variant.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ const PinName digitalPin[] = {
135135
};
136136

137137
// Analog (Ax) pin number array
138-
const uint32_t analogInPin[] = {
138+
const uint32_t analogInputPin[] = {
139139
7, //A0
140140
8, //A1
141141
49, //A2

variants/DEMO_F030F4/variant.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const PinName digitalPin[] = {
6060
};
6161

6262
// Analog (Ax) pin number array
63-
const uint32_t analogInPin[] = {
63+
const uint32_t analogInputPin[] = {
6464
0, //A0
6565
1, //A1
6666
2, //A2

variants/DISCO_F030R8/variant.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const PinName digitalPin[] = {
9696
};
9797

9898
// Analog (Ax) pin number array
99-
const uint32_t analogInPin[] = {
99+
const uint32_t analogInputPin[] = {
100100
5, //A0 = D5
101101
6, //A1 = D6
102102
7, //A2 = D7

variants/DISCO_F100RB/variant.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const PinName digitalPin[] = {
7777
};
7878

7979
// Analog (Ax) pin number array
80-
const uint32_t analogInPin[] = {
80+
const uint32_t analogInputPin[] = {
8181
1, //A0
8282
2, //A1
8383
3, //A2

variants/DISCO_F407VG/variant.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ const PinName digitalPin[] = {
110110
};
111111

112112
// Analog (Ax) pin number array
113-
const uint32_t analogInPin[] = {
113+
const uint32_t analogInputPin[] = {
114114
1, //A0
115115
6, //A1
116116
7, //A2

variants/DISCO_L475VG_IOT/variant.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ const PinName digitalPin[] = {
110110
};
111111

112112
// Analog (Ax) pin number array
113-
const uint32_t analogInPin[] = {
113+
const uint32_t analogInputPin[] = {
114114
69, //A0
115115
70, //A1
116116
71, //A2

variants/DIYMORE_F407VGT/variant.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ const PinName digitalPin[] = {
137137
};
138138

139139
// Analog (Ax) pin number array
140-
const uint32_t analogInPin[] = {
140+
const uint32_t analogInputPin[] = {
141141
8, //A0
142142
11, //A1
143143
10, //A2

variants/FK407M1/variant.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const PinName digitalPin[] = {
8484
};
8585

8686
// Analog (Ax) pin number array
87-
const uint32_t analogInPin[] = {
87+
const uint32_t analogInputPin[] = {
8888
30, //A0
8989
32, //A1
9090
31, //A2

0 commit comments

Comments
 (0)