Skip to content

Commit f8b4c97

Browse files
dineshgit411LinjingZhang
authored andcommitted
variants/XMC4700/config: Modified analog macros.
Signed-off-by: MDin <Dinesh.M-EE@infineon.com>
1 parent 5987c3c commit f8b4c97

1 file changed

Lines changed: 44 additions & 22 deletions

File tree

variants/XMC4700/config/KIT_XMC47_RELAX/pins_arduino.h

Lines changed: 44 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -113,33 +113,55 @@ static const uint8_t SCK_SD = SDCARD_SCK_PIN;
113113
#define MASTER_SCLK PORT3, 9
114114
#define MASTER_WACLK PORT3, 10
115115

116-
#define A0 0
117-
#define A1 1
118-
#define A2 2
119-
#define A3 3
120-
#define A4 4
121-
#define A5 5
116+
#define PIN_A0 0
117+
#define PIN_A1 1
118+
#define PIN_A2 2
119+
#define PIN_A3 3
120+
#define PIN_A4 4
121+
#define PIN_A5 5
122122
// Additional ADC ports starting here
123-
#define A6 6
124-
#define A7 7
125-
#define A8 8
126-
#define A9 9
127-
#define A10 10
128-
#define A11 11
129-
#define A12 12
130-
#define A13 13
131-
#define A14 14
132-
#define A15 15
133-
#define A16 16
134-
#define A17 17
135-
#define A18 18
136-
#define A19 19
137-
#define A20 20
138-
#define A21 21
123+
#define PIN_A6 6
124+
#define PIN_A7 7
125+
#define PIN_A8 8
126+
#define PIN_A9 9
127+
#define PIN_A10 10
128+
#define PIN_A11 11
129+
#define PIN_A12 12
130+
#define PIN_A13 13
131+
#define PIN_A14 14
132+
#define PIN_A15 15
133+
#define PIN_A16 16
134+
#define PIN_A17 17
135+
#define PIN_A18 18
136+
#define PIN_A19 19
137+
#define PIN_A20 20
138+
#define PIN_A21 21
139139
// ADC G3CH0 on P15.8 not available
140140
// ADC G3CH1 on P15.9 not available
141141
// ADC G3CH4 on P15.12 button
142142
// ADC G3CH5 on P15.13 button
143+
static const uint8_t A0 = PIN_A0;
144+
static const uint8_t A1 = PIN_A1;
145+
static const uint8_t A2 = PIN_A2;
146+
static const uint8_t A3 = PIN_A3;
147+
static const uint8_t A4 = PIN_A4;
148+
static const uint8_t A5 = PIN_A5;
149+
static const uint8_t A6 = PIN_A6;
150+
static const uint8_t A7 = PIN_A7;
151+
static const uint8_t A8 = PIN_A8;
152+
static const uint8_t A9 = PIN_A9;
153+
static const uint8_t A10 = PIN_A10;
154+
static const uint8_t A11 = PIN_A11;
155+
static const uint8_t A12 = PIN_A12;
156+
static const uint8_t A13 = PIN_A13;
157+
static const uint8_t A14 = PIN_A14;
158+
static const uint8_t A15 = PIN_A15;
159+
static const uint8_t A16 = PIN_A16;
160+
static const uint8_t A17 = PIN_A17;
161+
static const uint8_t A18 = PIN_A18;
162+
static const uint8_t A19 = PIN_A19;
163+
static const uint8_t A20 = PIN_A20;
164+
static const uint8_t A21 = PIN_A21;
143165

144166
#define LED1 22
145167
#define LED2 23

0 commit comments

Comments
 (0)