@@ -45,14 +45,6 @@ extern "C"{
45
45
*----------------------------------------------------------------------------*/
46
46
extern const PinName digitalPin [];
47
47
48
- // Enum defining pin names to match digital pin number --> Dx
49
- // !!!
50
- // !!! Copy the digitalPin[] array in variant.cpp
51
- // !!! and remove all '_': PX_n --> PXn
52
- // !!! For NC, suffix by _x where x is the number of NC:
53
- // !!! NC_1, NC_2,...
54
- // !!! For duplicated pin name, suffix by _x where x is the number of pin:
55
- // !!! PA7, PA7_2, PA7_3,...
56
48
enum {
57
49
/* Left Side
58
50
Ext Int */
@@ -126,24 +118,9 @@ enum {
126
118
};
127
119
128
120
// This must be a literal with the same value as PEND
129
- // It is used with preprocessor tests (e.g. #if NUM_DIGITAL_PINS > 3)
130
- // so an enum will not work.
131
121
#define NUM_DIGITAL_PINS 89
132
-
133
- // Allow to define Arduino style alias for analog input pin number --> Ax
134
- // All pins are digital, analog inputs are a subset of digital pins
135
- // and must be contiguous to be able to loop on each value
136
122
// This must be a literal with a value less than or equal to MAX_ANALOG_INPUTS
137
- // defined in pin_arduino.h
138
- // It is used with preprocessor tests (e.g. #if NUM_ANALOG_INPUTS > 3)
139
- // so an enum will not work.
140
- // !!!
141
- // !!! It must be aligned with the number of analog PinName
142
- // !!! defined in digitalPin[] array in variant.cpp
143
- // !!!
144
123
#define NUM_ANALOG_INPUTS 14
145
- // Define digital pin number of the first analog input (i.e. which digital pin is A0)
146
- // First analog pin value (A0) must be greater than or equal to NUM_ANALOG_INPUTS
147
124
#define NUM_ANALOG_FIRST 75
148
125
149
126
// Below ADC, DAC and PWM definitions already done in the core
0 commit comments