File tree 2 files changed +41
-30
lines changed 2 files changed +41
-30
lines changed Original file line number Diff line number Diff line change @@ -159,20 +159,32 @@ const PinName digitalPin[] = {
159
159
PC_5, // D112/A5
160
160
PB_1, // D113/A6
161
161
PC_2, // D114/A7
162
- PA_1, // D115/A8
163
- // Duplicated pins in order to be aligned with PinMapADC
164
- PA_7, // D116/A9 = D11
165
- PA_6, // D117/A10 = D12
166
- PA_5, // D118/A11 = D13
167
- PA_4, // D119/A12 = D20
168
- PA_2, // D120/A13 = D26
169
- PB_0, // D121/A14 = D29
170
- PA_0, // D122/A15 = D32
162
+ PA_1 // D115/A8
171
163
#ifdef ARDUINO_NUCLEO_L4R5ZI
172
- PG_15 // D123
164
+ , PG_15 // D116
173
165
#endif
174
166
};
175
167
168
+ // Analog (Ax) pin number array
169
+ const uint32_t analogInPin[] = {
170
+ 107 , // A0
171
+ 108 , // A1
172
+ 109 , // A2
173
+ 110 , // A3
174
+ 111 , // A4
175
+ 112 , // A5
176
+ 113 , // A6
177
+ 114 , // A7
178
+ 115 , // A8
179
+ 11 , // A9
180
+ 12 , // A10
181
+ 13 , // A11
182
+ 20 , // A12
183
+ 26 , // A13
184
+ 29 , // A14
185
+ 32 // A15
186
+ };
187
+
176
188
#ifdef __cplusplus
177
189
}
178
190
#endif
Original file line number Diff line number Diff line change @@ -52,28 +52,28 @@ extern "C" {
52
52
#define PF12 8
53
53
#define PD15 9
54
54
#define PD14 10
55
- #define PA7 11 // A9
56
- #define PA6 12 // A10
57
- #define PA5 13 // A11
55
+ #define PA7 A9
56
+ #define PA6 A10
57
+ #define PA5 A11
58
58
#define PB9 14
59
59
#define PB8 15
60
60
#define PC6 16
61
61
#define PB15 17
62
62
#define PB13 18
63
63
#define PB12 19
64
- #define PA4 20 // A12
64
+ #define PA4 A12
65
65
#define PB4 21
66
66
#define PB5 22
67
67
#define PB3 23
68
68
// 24 is PA4 (20)
69
69
// 25 is PB4 (21)
70
- #define PA2 26 // A13
70
+ #define PA2 A13
71
71
#define PB10 27
72
72
#define PE15 28
73
- #define PB0 29 // A14
73
+ #define PB0 A14
74
74
#define PE12 30
75
75
#define PE14 31
76
- #define PA0 32 // A15
76
+ #define PA0 A15
77
77
// 32 is PB0 (29)
78
78
#define PE0 34
79
79
#ifdef ARDUINO_NUCLEO_L4R5ZI
@@ -153,18 +153,18 @@ extern "C" {
153
153
#define PH0 105
154
154
#define PH1 106
155
155
// Analog pins
156
- #define PA3 107 // A0
157
- #define PC0 108 // A1
158
- #define PC3 109 // A2
159
- #define PC1 110 // A3
160
- #define PC4 111 // A4
161
- #define PC5 112 // A5
162
- #define PB1 113 // A6
163
- #define PC2 114 // A7
164
- #define PA1 115 // A8
156
+ #define PA3 A0
157
+ #define PC0 A1
158
+ #define PC3 A2
159
+ #define PC1 A3
160
+ #define PC4 A4
161
+ #define PC5 A5
162
+ #define PB1 A6
163
+ #define PC2 A7
164
+ #define PA1 A8
165
165
// 116 to 122 reserved fot A9 to A15
166
166
#ifdef ARDUINO_NUCLEO_L4R5ZI
167
- #define PG15 123
167
+ #define PG15 116
168
168
#endif
169
169
// PA13 and PA14 are shared with SWD signals connected to ST-LINK/V2-1.
170
170
// If ST-LINK part is not cut, it is not recommended to use them as I/O pins.
@@ -173,13 +173,12 @@ extern "C" {
173
173
174
174
// This must be a literal
175
175
#ifdef ARDUINO_NUCLEO_L4R5ZI
176
- #define NUM_DIGITAL_PINS 124
176
+ #define NUM_DIGITAL_PINS 117
177
177
#else
178
- #define NUM_DIGITAL_PINS 123
178
+ #define NUM_DIGITAL_PINS 116
179
179
#endif
180
180
// This must be a literal with a value less than or equal to to MAX_ANALOG_INPUTS
181
181
#define NUM_ANALOG_INPUTS 16
182
- #define NUM_ANALOG_FIRST 107
183
182
184
183
// On-board LED pin number
185
184
#define LED_BUILTIN PC7
You can’t perform that action at this time.
0 commit comments