Browse Source

Add LPC1768 Serial ports for pinsDebug (#16980)

ellensp 4 years ago
parent
commit
70af080813
No account linked to committer's email address
1 changed files with 25 additions and 1 deletions
  1. 25
    1
      Marlin/src/pins/pinsDebug.h

+ 25
- 1
Marlin/src/pins/pinsDebug.h View File

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

Loading…
Cancel
Save