|
@@ -45,7 +45,7 @@
|
45
|
45
|
#line 46
|
46
|
46
|
|
47
|
47
|
// manually add pins that have names that are macros which don't play well with these macros
|
48
|
|
-#if (AVR_ATmega2560_FAMILY || AVR_ATmega1284_FAMILY || defined(ARDUINO_ARCH_SAM))
|
|
48
|
+#if (AVR_ATmega2560_FAMILY || AVR_ATmega1284_FAMILY || defined(ARDUINO_ARCH_SAM) || defined(TARGET_LPC1768))
|
49
|
49
|
#if SERIAL_PORT == 0
|
50
|
50
|
static const char RXD_NAME_0[] PROGMEM = { "RXD0" };
|
51
|
51
|
static const char TXD_NAME_0[] PROGMEM = { "TXD0" };
|
|
@@ -116,6 +116,9 @@ const PinInfo pin_array[] PROGMEM = {
|
116
|
116
|
#elif AVR_ATmega1284_FAMILY
|
117
|
117
|
{ RXD_NAME_0, 8, true },
|
118
|
118
|
{ TXD_NAME_0, 9, true },
|
|
119
|
+ #elif defined(TARGET_LPC1768)
|
|
120
|
+ { RXD_NAME_0, 3, true },
|
|
121
|
+ { TXD_NAME_0, 2, true },
|
119
|
122
|
#endif
|
120
|
123
|
#elif SERIAL_PORT == 1
|
121
|
124
|
#if (AVR_ATmega2560_FAMILY || defined(ARDUINO_ARCH_SAM))
|
|
@@ -124,16 +127,25 @@ const PinInfo pin_array[] PROGMEM = {
|
124
|
127
|
#elif AVR_ATmega1284_FAMILY
|
125
|
128
|
{ RXD_NAME_1, 10, true },
|
126
|
129
|
{ TXD_NAME_1, 11, true },
|
|
130
|
+ #elif defined(TARGET_LPC1768)
|
|
131
|
+ { RXD_NAME_1, 16, true },
|
|
132
|
+ { TXD_NAME_1, 15, true },
|
127
|
133
|
#endif
|
128
|
134
|
#elif SERIAL_PORT == 2
|
129
|
135
|
#if (AVR_ATmega2560_FAMILY || defined(ARDUINO_ARCH_SAM))
|
130
|
136
|
{ RXD_NAME_2, 17, true },
|
131
|
137
|
{ TXD_NAME_2, 16, true },
|
|
138
|
+ #elif defined(TARGET_LPC1768)
|
|
139
|
+ { RXD_NAME_2, 11, true },
|
|
140
|
+ { TXD_NAME_2, 10, true },
|
132
|
141
|
#endif
|
133
|
142
|
#elif SERIAL_PORT == 3
|
134
|
143
|
#if (AVR_ATmega2560_FAMILY || defined(ARDUINO_ARCH_SAM))
|
135
|
144
|
{ RXD_NAME_3, 15, true },
|
136
|
145
|
{ TXD_NAME_3, 14, true },
|
|
146
|
+ #elif defined(TARGET_LPC1768)
|
|
147
|
+ { RXD_NAME_3, 1, true },
|
|
148
|
+ { TXD_NAME_3, 0, true },
|
137
|
149
|
#endif
|
138
|
150
|
#endif
|
139
|
151
|
|
|
@@ -145,6 +157,9 @@ const PinInfo pin_array[] PROGMEM = {
|
145
|
157
|
#elif AVR_ATmega1284_FAMILY
|
146
|
158
|
{ RXD_NAME_0, 8, true },
|
147
|
159
|
{ TXD_NAME_0, 9, true },
|
|
160
|
+ #elif defined(TARGET_LPC1768)
|
|
161
|
+ { RXD_NAME_0, 3, true },
|
|
162
|
+ { TXD_NAME_0, 2, true },
|
148
|
163
|
#endif
|
149
|
164
|
#elif SERIAL_PORT_2 == 1
|
150
|
165
|
#if (AVR_ATmega2560_FAMILY || defined(ARDUINO_ARCH_SAM))
|
|
@@ -153,16 +168,25 @@ const PinInfo pin_array[] PROGMEM = {
|
153
|
168
|
#elif AVR_ATmega1284_FAMILY
|
154
|
169
|
{ RXD_NAME_1, 10, true },
|
155
|
170
|
{ TXD_NAME_1, 11, true },
|
|
171
|
+ #elif defined(TARGET_LPC1768)
|
|
172
|
+ { RXD_NAME_1, 16, true },
|
|
173
|
+ { TXD_NAME_1, 15, true },
|
156
|
174
|
#endif
|
157
|
175
|
#elif SERIAL_PORT_2 == 2
|
158
|
176
|
#if (AVR_ATmega2560_FAMILY || defined(ARDUINO_ARCH_SAM))
|
159
|
177
|
{ RXD_NAME_2, 17, true },
|
160
|
178
|
{ TXD_NAME_2, 16, true },
|
|
179
|
+ #elif defined(TARGET_LPC1768)
|
|
180
|
+ { RXD_NAME_2, 11, true },
|
|
181
|
+ { TXD_NAME_2, 10, true },
|
161
|
182
|
#endif
|
162
|
183
|
#elif SERIAL_PORT_2 == 3
|
163
|
184
|
#if (AVR_ATmega2560_FAMILY || defined(ARDUINO_ARCH_SAM))
|
164
|
185
|
{ RXD_NAME_3, 15, true },
|
165
|
186
|
{ TXD_NAME_3, 14, true },
|
|
187
|
+ #elif defined(TARGET_LPC1768)
|
|
188
|
+ { RXD_NAME_3, 1, true },
|
|
189
|
+ { TXD_NAME_3, 0, true },
|
166
|
190
|
#endif
|
167
|
191
|
#endif
|
168
|
192
|
#endif
|