|
@@ -109,11 +109,11 @@ constexpr int8_t LPC1768_PIN_ADC(const pin_t pin) { return (int8_t)((pin >> 10)
|
109
|
109
|
// ******************
|
110
|
110
|
#define P_NC -1
|
111
|
111
|
|
112
|
|
-#if SERIAL_PORT != 3
|
|
112
|
+#if SERIAL_PORT != 3 && SERIAL_PORT_2 != 3
|
113
|
113
|
#define P0_00 LPC1768_PIN(PORT(0), PIN( 0), INTERRUPT(1), PWM(0), ADC_NONE)
|
114
|
114
|
#define P0_01 LPC1768_PIN(PORT(0), PIN( 1), INTERRUPT(1), PWM(0), ADC_NONE)
|
115
|
115
|
#endif
|
116
|
|
-#if SERIAL_PORT != 0
|
|
116
|
+#if SERIAL_PORT != 0 && SERIAL_PORT_2 != 0
|
117
|
117
|
#define P0_02 LPC1768_PIN(PORT(0), PIN( 2), INTERRUPT(1), PWM(0), ADC_CHAN(7))
|
118
|
118
|
#define P0_03 LPC1768_PIN(PORT(0), PIN( 3), INTERRUPT(1), PWM(0), ADC_CHAN(6))
|
119
|
119
|
#endif
|
|
@@ -123,11 +123,11 @@ constexpr int8_t LPC1768_PIN_ADC(const pin_t pin) { return (int8_t)((pin >> 10)
|
123
|
123
|
#define P0_07 LPC1768_PIN(PORT(0), PIN( 7), INTERRUPT(1), PWM(0), ADC_NONE)
|
124
|
124
|
#define P0_08 LPC1768_PIN(PORT(0), PIN( 8), INTERRUPT(1), PWM(0), ADC_NONE)
|
125
|
125
|
#define P0_09 LPC1768_PIN(PORT(0), PIN( 9), INTERRUPT(1), PWM(0), ADC_NONE)
|
126
|
|
-#if SERIAL_PORT != 2
|
|
126
|
+#if SERIAL_PORT != 2 && SERIAL_PORT_2 != 2
|
127
|
127
|
#define P0_10 LPC1768_PIN(PORT(0), PIN(10), INTERRUPT(1), PWM(0), ADC_NONE)
|
128
|
128
|
#define P0_11 LPC1768_PIN(PORT(0), PIN(11), INTERRUPT(1), PWM(0), ADC_NONE)
|
129
|
129
|
#endif
|
130
|
|
-#if SERIAL_PORT != 1
|
|
130
|
+#if SERIAL_PORT != 1 && SERIAL_PORT_2 != 1
|
131
|
131
|
#define P0_15 LPC1768_PIN(PORT(0), PIN(15), INTERRUPT(1), PWM(0), ADC_NONE)
|
132
|
132
|
#define P0_16 LPC1768_PIN(PORT(0), PIN(16), INTERRUPT(1), PWM(0), ADC_NONE)
|
133
|
133
|
#endif
|
|
@@ -190,25 +190,25 @@ constexpr int8_t LPC1768_PIN_ADC(const pin_t pin) { return (int8_t)((pin >> 10)
|
190
|
190
|
|
191
|
191
|
// Pin index for M43 and M226
|
192
|
192
|
constexpr pin_t pin_map[] = {
|
193
|
|
- #if SERIAL_PORT != 3
|
|
193
|
+ #if SERIAL_PORT != 3 && SERIAL_PORT_2 != 3
|
194
|
194
|
P0_00, P0_01,
|
195
|
195
|
#else
|
196
|
196
|
P_NC, P_NC,
|
197
|
197
|
#endif
|
198
|
|
- #if SERIAL_PORT != 0
|
|
198
|
+ #if SERIAL_PORT != 0 && SERIAL_PORT_2 != 0
|
199
|
199
|
P0_02, P0_03,
|
200
|
200
|
#else
|
201
|
201
|
P_NC, P_NC,
|
202
|
202
|
#endif
|
203
|
203
|
P0_04, P0_05, P0_06, P0_07,
|
204
|
204
|
P0_08, P0_09,
|
205
|
|
- #if SERIAL_PORT != 2
|
|
205
|
+ #if SERIAL_PORT != 2 && SERIAL_PORT_2 != 2
|
206
|
206
|
P0_10, P0_11,
|
207
|
207
|
#else
|
208
|
208
|
P_NC, P_NC,
|
209
|
209
|
#endif
|
210
|
210
|
P_NC, P_NC, P_NC,
|
211
|
|
- #if SERIAL_PORT != 1
|
|
211
|
+ #if SERIAL_PORT != 1 && SERIAL_PORT_2 != 1
|
212
|
212
|
P0_15,
|
213
|
213
|
P0_16,
|
214
|
214
|
#else
|
|
@@ -243,7 +243,7 @@ constexpr uint8_t NUM_DIGITAL_PINS = COUNT(pin_map);
|
243
|
243
|
|
244
|
244
|
constexpr pin_t adc_pin_table[] = {
|
245
|
245
|
P0_23, P0_24, P0_25, P0_26, P1_30, P1_31,
|
246
|
|
- #if SERIAL_PORT != 0
|
|
246
|
+ #if SERIAL_PORT != 0 && SERIAL_PORT_2 != 0
|
247
|
247
|
P0_03, P0_02
|
248
|
248
|
#endif
|
249
|
249
|
};
|