File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 8
8
extern "C" {
9
9
#endif
10
10
11
+ // Alternative possibilities which use other HW peripheral instances
12
+ #define ALT0 0x100
13
+ #define ALT1 0x200
14
+ #define ALT2 0x300
15
+ #define ALT3 0x400
16
+ #define ALT4 0x500
17
+ #define ALT5 0x600
18
+ #define ALT6 0x700
19
+ // Analog internal
20
+ #define ALTA 0x1000
21
+ // Dual pad pin
22
+ #define ALTC 0x2000
23
+ // Remap pin
24
+ #define ALTR 0x3000
25
+ // PinName mask
26
+ #define PN_MASK 0xFF
27
+
11
28
typedef enum {
12
29
// Not connected
13
30
NC = (int )0xFFFFFFFF ,
@@ -227,7 +244,7 @@ typedef enum {
227
244
PZ_15 = (PortZ << 4 ) + 0x0F ,
228
245
#endif
229
246
// Specific pin name
230
- PADC_BASE = 0x100 ,
247
+ PADC_BASE = ALTA ,
231
248
#if defined(ADC_CHANNEL_TEMPSENSOR ) || defined(ADC_CHANNEL_TEMPSENSOR_ADC1 )
232
249
PADC_TEMP ,
233
250
#endif
Original file line number Diff line number Diff line change @@ -726,6 +726,17 @@ PADC_TEMP LITERAL1
726
726
PADC_VREF LITERAL1
727
727
PADC_VBAT LITERAL1
728
728
729
+ ALT0 LITERAL1
730
+ ALT1 LITERAL1
731
+ ALT2 LITERAL1
732
+ ALT3 LITERAL1
733
+ ALT4 LITERAL1
734
+ ALT5 LITERAL1
735
+ ALT6 LITERAL1
736
+ ALTA LITERAL1
737
+ ALTC LITERAL1
738
+ ALTR LITERAL1
739
+
729
740
# Port Name
730
741
PortName KEYWORD3
731
742
FirstPort
You can’t perform that action at this time.
0 commit comments