Prusa MINI Firmware overview
fastio_1281.h
Go to the documentation of this file.
1 /**
2  * Marlin 3D Printer Firmware
3  * Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4  *
5  * Based on Sprinter and grbl.
6  * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 #pragma once
23 
24 /**
25  * Pin mapping for the 1281 and 2561
26  *
27  * Logical Pin: 38 39 40 41 42 43 44 45 16 10 11 12 06 07 08 09 30 31 32 33 34 35 36 37 17 18 19 20 21 22 23 24 00 01 13 05 02 03 14 15 46 47 48 49 50 51 52 53 25 26 27 28 29 04
28  * Port: A0 A1 A2 A3 A4 A5 A6 A7 B0 B1 B2 B3 B4 B5 B6 B7 C0 C1 C2 C3 C4 C5 C6 C7 D0 D1 D2 D3 D4 D5 D6 D7 E0 E1 E2 E3 E4 E5 E6 E7 F0 F1 F2 F3 F4 F5 F6 F7 G0 G1 G2 G3 G4 G5
29  */
30 
31 #include "../fastio.h"
32 
33 // change for your board
34 #define DEBUG_LED DIO46
35 
36 // UART
37 #define RXD DIO0
38 #define TXD DIO1
39 
40 // SPI
41 #define SCK DIO10
42 #define MISO DIO12
43 #define MOSI DIO11
44 #define SS DIO16
45 
46 // TWI (I2C)
47 #define SCL DIO17
48 #define SDA DIO18
49 
50 // Timers and PWM
51 #define OC0A DIO9
52 #define OC0B DIO4
53 #define OC1A DIO7
54 #define OC1B DIO8
55 #define OC2A DIO6
56 #define OC3A DIO5
57 #define OC3B DIO2
58 #define OC3C DIO3
59 
60 // Digital I/O
61 
62 #define DIO0_PIN PINE0
63 #define DIO0_RPORT PINE
64 #define DIO0_WPORT PORTE
65 #define DIO0_DDR DDRE
66 #define DIO0_PWM nullptr
67 
68 #define DIO1_PIN PINE1
69 #define DIO1_RPORT PINE
70 #define DIO1_WPORT PORTE
71 #define DIO1_DDR DDRE
72 #define DIO1_PWM nullptr
73 
74 #define DIO2_PIN PINE4
75 #define DIO2_RPORT PINE
76 #define DIO2_WPORT PORTE
77 #define DIO2_DDR DDRE
78 #define DIO2_PWM &OCR3BL
79 
80 #define DIO3_PIN PINE5
81 #define DIO3_RPORT PINE
82 #define DIO3_WPORT PORTE
83 #define DIO3_DDR DDRE
84 #define DIO3_PWM &OCR3CL
85 
86 #define DIO4_PIN PING5
87 #define DIO4_RPORT PING
88 #define DIO4_WPORT PORTG
89 #define DIO4_DDR DDRG
90 #define DIO4_PWM &OCR0B
91 
92 #define DIO5_PIN PINE3
93 #define DIO5_RPORT PINE
94 #define DIO5_WPORT PORTE
95 #define DIO5_DDR DDRE
96 #define DIO5_PWM &OCR3AL
97 
98 #define DIO6_PIN PINB4
99 #define DIO6_RPORT PINB
100 #define DIO6_WPORT PORTB
101 #define DIO6_DDR DDRB
102 #define DIO6_PWM &OCR2AL
103 
104 #define DIO7_PIN PINB5
105 #define DIO7_RPORT PINB
106 #define DIO7_WPORT PORTB
107 #define DIO7_DDR DDRB
108 #define DIO7_PWM &OCR1AL
109 
110 #define DIO8_PIN PINB6
111 #define DIO8_RPORT PINB
112 #define DIO8_WPORT PORTB
113 #define DIO8_DDR DDRB
114 #define DIO8_PWM &OCR1BL
115 
116 #define DIO9_PIN PINB7
117 #define DIO9_RPORT PINB
118 #define DIO9_WPORT PORTB
119 #define DIO9_DDR DDRB
120 #define DIO9_PWM &OCR0AL
121 
122 #define DIO10_PIN PINB1
123 #define DIO10_RPORT PINB
124 #define DIO10_WPORT PORTB
125 #define DIO10_DDR DDRB
126 #define DIO10_PWM nullptr
127 
128 #define DIO11_PIN PINB2
129 #define DIO11_RPORT PINB
130 #define DIO11_WPORT PORTB
131 #define DIO11_DDR DDRB
132 #define DIO11_PWM nullptr
133 
134 #define DIO12_PIN PINB3
135 #define DIO12_RPORT PINB
136 #define DIO12_WPORT PORTB
137 #define DIO12_DDR DDRB
138 #define DIO12_PWM nullptr
139 
140 #define DIO13_PIN PINE2
141 #define DIO13_RPORT PINE
142 #define DIO13_WPORT PORTE
143 #define DIO13_DDR DDRE
144 #define DIO13_PWM nullptr
145 
146 #define DIO14_PIN PINE6
147 #define DIO14_RPORT PINE
148 #define DIO14_WPORT PORTE
149 #define DIO14_DDR DDRE
150 #define DIO14_PWM nullptr
151 
152 #define DIO15_PIN PINE7
153 #define DIO15_RPORT PINE
154 #define DIO15_WPORT PORTE
155 #define DIO15_DDR DDRE
156 #define DIO15_PWM nullptr
157 
158 #define DIO16_PIN PINB0
159 #define DIO16_RPORT PINB
160 #define DIO16_WPORT PORTB
161 #define DIO16_DDR DDRB
162 #define DIO16_PWM nullptr
163 
164 #define DIO17_PIN PIND0
165 #define DIO17_RPORT PIND
166 #define DIO17_WPORT PORTD
167 #define DIO17_DDR DDRD
168 #define DIO17_PWM nullptr
169 
170 #define DIO18_PIN PIND1
171 #define DIO18_RPORT PIND
172 #define DIO18_WPORT PORTD
173 #define DIO18_DDR DDRD
174 #define DIO18_PWM nullptr
175 
176 #define DIO19_PIN PIND2
177 #define DIO19_RPORT PIND
178 #define DIO19_WPORT PORTD
179 #define DIO19_DDR DDRD
180 #define DIO19_PWM nullptr
181 
182 #define DIO20_PIN PIND3
183 #define DIO20_RPORT PIND
184 #define DIO20_WPORT PORTD
185 #define DIO20_DDR DDRD
186 #define DIO20_PWM nullptr
187 
188 #define DIO21_PIN PIND4
189 #define DIO21_RPORT PIND
190 #define DIO21_WPORT PORTD
191 #define DIO21_DDR DDRD
192 #define DIO21_PWM nullptr
193 
194 #define DIO22_PIN PIND5
195 #define DIO22_RPORT PIND
196 #define DIO22_WPORT PORTD
197 #define DIO22_DDR DDRD
198 #define DIO22_PWM nullptr
199 
200 #define DIO23_PIN PIND6
201 #define DIO23_RPORT PIND
202 #define DIO23_WPORT PORTD
203 #define DIO23_DDR DDRD
204 #define DIO23_PWM nullptr
205 
206 #define DIO24_PIN PIND7
207 #define DIO24_RPORT PIND
208 #define DIO24_WPORT PORTD
209 #define DIO24_DDR DDRD
210 #define DIO24_PWM nullptr
211 
212 #define DIO25_PIN PING0
213 #define DIO25_RPORT PING
214 #define DIO25_WPORT PORTG
215 #define DIO25_DDR DDRG
216 #define DIO25_PWM nullptr
217 
218 #define DIO26_PIN PING1
219 #define DIO26_RPORT PING
220 #define DIO26_WPORT PORTG
221 #define DIO26_DDR DDRG
222 #define DIO26_PWM nullptr
223 
224 #define DIO27_PIN PING2
225 #define DIO27_RPORT PING
226 #define DIO27_WPORT PORTG
227 #define DIO27_DDR DDRG
228 #define DIO27_PWM nullptr
229 
230 #define DIO28_PIN PING3
231 #define DIO28_RPORT PING
232 #define DIO28_WPORT PORTG
233 #define DIO28_DDR DDRG
234 #define DIO28_PWM nullptr
235 
236 #define DIO29_PIN PING4
237 #define DIO29_RPORT PING
238 #define DIO29_WPORT PORTG
239 #define DIO29_DDR DDRG
240 #define DIO29_PWM nullptr
241 
242 #define DIO30_PIN PINC0
243 #define DIO30_RPORT PINC
244 #define DIO30_WPORT PORTC
245 #define DIO30_DDR DDRC
246 #define DIO30_PWM nullptr
247 
248 #define DIO31_PIN PINC1
249 #define DIO31_RPORT PINC
250 #define DIO31_WPORT PORTC
251 #define DIO31_DDR DDRC
252 #define DIO31_PWM nullptr
253 
254 #define DIO32_PIN PINC2
255 #define DIO32_RPORT PINC
256 #define DIO32_WPORT PORTC
257 #define DIO32_DDR DDRC
258 #define DIO32_PWM nullptr
259 
260 #define DIO33_PIN PINC3
261 #define DIO33_RPORT PINC
262 #define DIO33_WPORT PORTC
263 #define DIO33_DDR DDRC
264 #define DIO33_PWM nullptr
265 
266 #define DIO34_PIN PINC4
267 #define DIO34_RPORT PINC
268 #define DIO34_WPORT PORTC
269 #define DIO34_DDR DDRC
270 #define DIO34_PWM nullptr
271 
272 #define DIO35_PIN PINC5
273 #define DIO35_RPORT PINC
274 #define DIO35_WPORT PORTC
275 #define DIO35_DDR DDRC
276 #define DIO35_PWM nullptr
277 
278 #define DIO36_PIN PINC6
279 #define DIO36_RPORT PINC
280 #define DIO36_WPORT PORTC
281 #define DIO36_DDR DDRC
282 #define DIO36_PWM nullptr
283 
284 #define DIO37_PIN PINC7
285 #define DIO37_RPORT PINC
286 #define DIO37_WPORT PORTC
287 #define DIO37_DDR DDRC
288 #define DIO37_PWM nullptr
289 
290 #define DIO38_PIN PINA0
291 #define DIO38_RPORT PINA
292 #define DIO38_WPORT PORTA
293 #define DIO38_DDR DDRA
294 #define DIO38_PWM nullptr
295 
296 #define DIO39_PIN PINA1
297 #define DIO39_RPORT PINA
298 #define DIO39_WPORT PORTA
299 #define DIO39_DDR DDRA
300 #define DIO39_PWM nullptr
301 
302 #define DIO40_PIN PINA2
303 #define DIO40_RPORT PINA
304 #define DIO40_WPORT PORTA
305 #define DIO40_DDR DDRA
306 #define DIO40_PWM nullptr
307 
308 #define DIO41_PIN PINA3
309 #define DIO41_RPORT PINA
310 #define DIO41_WPORT PORTA
311 #define DIO41_DDR DDRA
312 #define DIO41_PWM nullptr
313 
314 #define DIO42_PIN PINA4
315 #define DIO42_RPORT PINA
316 #define DIO42_WPORT PORTA
317 #define DIO42_DDR DDRA
318 #define DIO42_PWM nullptr
319 
320 #define DIO43_PIN PINA5
321 #define DIO43_RPORT PINA
322 #define DIO43_WPORT PORTA
323 #define DIO43_DDR DDRA
324 #define DIO43_PWM nullptr
325 
326 #define DIO44_PIN PINA6
327 #define DIO44_RPORT PINA
328 #define DIO44_WPORT PORTA
329 #define DIO44_DDR DDRA
330 #define DIO44_PWM nullptr
331 
332 #define DIO45_PIN PINA7
333 #define DIO45_RPORT PINA
334 #define DIO45_WPORT PORTA
335 #define DIO45_DDR DDRA
336 #define DIO45_PWM nullptr
337 
338 #define DIO46_PIN PINF0
339 #define DIO46_RPORT PINF
340 #define DIO46_WPORT PORTF
341 #define DIO46_DDR DDRF
342 #define DIO46_PWM nullptr
343 
344 #define DIO47_PIN PINF1
345 #define DIO47_RPORT PINF
346 #define DIO47_WPORT PORTF
347 #define DIO47_DDR DDRF
348 #define DIO47_PWM nullptr
349 
350 #define DIO48_PIN PINF2
351 #define DIO48_RPORT PINF
352 #define DIO48_WPORT PORTF
353 #define DIO48_DDR DDRF
354 #define DIO48_PWM nullptr
355 
356 #define DIO49_PIN PINF3
357 #define DIO49_RPORT PINF
358 #define DIO49_WPORT PORTF
359 #define DIO49_DDR DDRF
360 #define DIO49_PWM nullptr
361 
362 #define DIO50_PIN PINF4
363 #define DIO50_RPORT PINF
364 #define DIO50_WPORT PORTF
365 #define DIO50_DDR DDRF
366 #define DIO50_PWM nullptr
367 
368 #define DIO51_PIN PINF5
369 #define DIO51_RPORT PINF
370 #define DIO51_WPORT PORTF
371 #define DIO51_DDR DDRF
372 #define DIO51_PWM nullptr
373 
374 #define DIO52_PIN PINF6
375 #define DIO52_RPORT PINF
376 #define DIO52_WPORT PORTF
377 #define DIO52_DDR DDRF
378 #define DIO52_PWM nullptr
379 
380 #define DIO53_PIN PINF7
381 #define DIO53_RPORT PINF
382 #define DIO53_WPORT PORTF
383 #define DIO53_DDR DDRF
384 #define DIO53_PWM nullptr
385 
386 #undef PA0
387 #define PA0_PIN PINA0
388 #define PA0_RPORT PINA
389 #define PA0_WPORT PORTA
390 #define PA0_DDR DDRA
391 #define PA0_PWM nullptr
392 #undef PA1
393 #define PA1_PIN PINA1
394 #define PA1_RPORT PINA
395 #define PA1_WPORT PORTA
396 #define PA1_DDR DDRA
397 #define PA1_PWM nullptr
398 #undef PA2
399 #define PA2_PIN PINA2
400 #define PA2_RPORT PINA
401 #define PA2_WPORT PORTA
402 #define PA2_DDR DDRA
403 #define PA2_PWM nullptr
404 #undef PA3
405 #define PA3_PIN PINA3
406 #define PA3_RPORT PINA
407 #define PA3_WPORT PORTA
408 #define PA3_DDR DDRA
409 #define PA3_PWM nullptr
410 #undef PA4
411 #define PA4_PIN PINA4
412 #define PA4_RPORT PINA
413 #define PA4_WPORT PORTA
414 #define PA4_DDR DDRA
415 #define PA4_PWM nullptr
416 #undef PA5
417 #define PA5_PIN PINA5
418 #define PA5_RPORT PINA
419 #define PA5_WPORT PORTA
420 #define PA5_DDR DDRA
421 #define PA5_PWM nullptr
422 #undef PA6
423 #define PA6_PIN PINA6
424 #define PA6_RPORT PINA
425 #define PA6_WPORT PORTA
426 #define PA6_DDR DDRA
427 #define PA6_PWM nullptr
428 #undef PA7
429 #define PA7_PIN PINA7
430 #define PA7_RPORT PINA
431 #define PA7_WPORT PORTA
432 #define PA7_DDR DDRA
433 #define PA7_PWM nullptr
434 
435 #undef PB0
436 #define PB0_PIN PINB0
437 #define PB0_RPORT PINB
438 #define PB0_WPORT PORTB
439 #define PB0_DDR DDRB
440 #define PB0_PWM nullptr
441 #undef PB1
442 #define PB1_PIN PINB1
443 #define PB1_RPORT PINB
444 #define PB1_WPORT PORTB
445 #define PB1_DDR DDRB
446 #define PB1_PWM nullptr
447 #undef PB2
448 #define PB2_PIN PINB2
449 #define PB2_RPORT PINB
450 #define PB2_WPORT PORTB
451 #define PB2_DDR DDRB
452 #define PB2_PWM nullptr
453 #undef PB3
454 #define PB3_PIN PINB3
455 #define PB3_RPORT PINB
456 #define PB3_WPORT PORTB
457 #define PB3_DDR DDRB
458 #define PB3_PWM nullptr
459 #undef PB4
460 #define PB4_PIN PINB4
461 #define PB4_RPORT PINB
462 #define PB4_WPORT PORTB
463 #define PB4_DDR DDRB
464 #define PB4_PWM &OCR2A
465 #undef PB5
466 #define PB5_PIN PINB5
467 #define PB5_RPORT PINB
468 #define PB5_WPORT PORTB
469 #define PB5_DDR DDRB
470 #define PB5_PWM nullptr
471 #undef PB6
472 #define PB6_PIN PINB6
473 #define PB6_RPORT PINB
474 #define PB6_WPORT PORTB
475 #define PB6_DDR DDRB
476 #define PB6_PWM nullptr
477 #undef PB7
478 #define PB7_PIN PINB7
479 #define PB7_RPORT PINB
480 #define PB7_WPORT PORTB
481 #define PB7_DDR DDRB
482 #define PB7_PWM &OCR0A
483 
484 #undef PC0
485 #define PC0_PIN PINC0
486 #define PC0_RPORT PINC
487 #define PC0_WPORT PORTC
488 #define PC0_DDR DDRC
489 #define PC0_PWM nullptr
490 #undef PC1
491 #define PC1_PIN PINC1
492 #define PC1_RPORT PINC
493 #define PC1_WPORT PORTC
494 #define PC1_DDR DDRC
495 #define PC1_PWM nullptr
496 #undef PC2
497 #define PC2_PIN PINC2
498 #define PC2_RPORT PINC
499 #define PC2_WPORT PORTC
500 #define PC2_DDR DDRC
501 #define PC2_PWM nullptr
502 #undef PC3
503 #define PC3_PIN PINC3
504 #define PC3_RPORT PINC
505 #define PC3_WPORT PORTC
506 #define PC3_DDR DDRC
507 #define PC3_PWM nullptr
508 #undef PC4
509 #define PC4_PIN PINC4
510 #define PC4_RPORT PINC
511 #define PC4_WPORT PORTC
512 #define PC4_DDR DDRC
513 #define PC4_PWM nullptr
514 #undef PC5
515 #define PC5_PIN PINC5
516 #define PC5_RPORT PINC
517 #define PC5_WPORT PORTC
518 #define PC5_DDR DDRC
519 #define PC5_PWM nullptr
520 #undef PC6
521 #define PC6_PIN PINC6
522 #define PC6_RPORT PINC
523 #define PC6_WPORT PORTC
524 #define PC6_DDR DDRC
525 #define PC6_PWM nullptr
526 #undef PC7
527 #define PC7_PIN PINC7
528 #define PC7_RPORT PINC
529 #define PC7_WPORT PORTC
530 #define PC7_DDR DDRC
531 #define PC7_PWM nullptr
532 
533 #undef PD0
534 #define PD0_PIN PIND0
535 #define PD0_RPORT PIND
536 #define PD0_WPORT PORTD
537 #define PD0_DDR DDRD
538 #define PD0_PWM nullptr
539 #undef PD1
540 #define PD1_PIN PIND1
541 #define PD1_RPORT PIND
542 #define PD1_WPORT PORTD
543 #define PD1_DDR DDRD
544 #define PD1_PWM nullptr
545 #undef PD2
546 #define PD2_PIN PIND2
547 #define PD2_RPORT PIND
548 #define PD2_WPORT PORTD
549 #define PD2_DDR DDRD
550 #define PD2_PWM nullptr
551 #undef PD3
552 #define PD3_PIN PIND3
553 #define PD3_RPORT PIND
554 #define PD3_WPORT PORTD
555 #define PD3_DDR DDRD
556 #define PD3_PWM nullptr
557 #undef PD4
558 #define PD4_PIN PIND4
559 #define PD4_RPORT PIND
560 #define PD4_WPORT PORTD
561 #define PD4_DDR DDRD
562 #define PD4_PWM nullptr
563 #undef PD5
564 #define PD5_PIN PIND5
565 #define PD5_RPORT PIND
566 #define PD5_WPORT PORTD
567 #define PD5_DDR DDRD
568 #define PD5_PWM nullptr
569 #undef PD6
570 #define PD6_PIN PIND6
571 #define PD6_RPORT PIND
572 #define PD6_WPORT PORTD
573 #define PD6_DDR DDRD
574 #define PD6_PWM nullptr
575 #undef PD7
576 #define PD7_PIN PIND7
577 #define PD7_RPORT PIND
578 #define PD7_WPORT PORTD
579 #define PD7_DDR DDRD
580 #define PD7_PWM nullptr
581 
582 #undef PE0
583 #define PE0_PIN PINE0
584 #define PE0_RPORT PINE
585 #define PE0_WPORT PORTE
586 #define PE0_DDR DDRE
587 #define PE0_PWM nullptr
588 #undef PE1
589 #define PE1_PIN PINE1
590 #define PE1_RPORT PINE
591 #define PE1_WPORT PORTE
592 #define PE1_DDR DDRE
593 #define PE1_PWM nullptr
594 #undef PE2
595 #define PE2_PIN PINE2
596 #define PE2_RPORT PINE
597 #define PE2_WPORT PORTE
598 #define PE2_DDR DDRE
599 #define PE2_PWM nullptr
600 #undef PE3
601 #define PE3_PIN PINE3
602 #define PE3_RPORT PINE
603 #define PE3_WPORT PORTE
604 #define PE3_DDR DDRE
605 #define PE3_PWM &OCR3AL
606 #undef PE4
607 #define PE4_PIN PINE4
608 #define PE4_RPORT PINE
609 #define PE4_WPORT PORTE
610 #define PE4_DDR DDRE
611 #define PE4_PWM &OCR3BL
612 #undef PE5
613 #define PE5_PIN PINE5
614 #define PE5_RPORT PINE
615 #define PE5_WPORT PORTE
616 #define PE5_DDR DDRE
617 #define PE5_PWM &OCR3CL
618 #undef PE6
619 #define PE6_PIN PINE6
620 #define PE6_RPORT PINE
621 #define PE6_WPORT PORTE
622 #define PE6_DDR DDRE
623 #define PE6_PWM nullptr
624 #undef PE7
625 #define PE7_PIN PINE7
626 #define PE7_RPORT PINE
627 #define PE7_WPORT PORTE
628 #define PE7_DDR DDRE
629 #define PE7_PWM nullptr
630 
631 #undef PF0
632 #define PF0_PIN PINF0
633 #define PF0_RPORT PINF
634 #define PF0_WPORT PORTF
635 #define PF0_DDR DDRF
636 #define PF0_PWM nullptr
637 #undef PF1
638 #define PF1_PIN PINF1
639 #define PF1_RPORT PINF
640 #define PF1_WPORT PORTF
641 #define PF1_DDR DDRF
642 #define PF1_PWM nullptr
643 #undef PF2
644 #define PF2_PIN PINF2
645 #define PF2_RPORT PINF
646 #define PF2_WPORT PORTF
647 #define PF2_DDR DDRF
648 #define PF2_PWM nullptr
649 #undef PF3
650 #define PF3_PIN PINF3
651 #define PF3_RPORT PINF
652 #define PF3_WPORT PORTF
653 #define PF3_DDR DDRF
654 #define PF3_PWM nullptr
655 #undef PF4
656 #define PF4_PIN PINF4
657 #define PF4_RPORT PINF
658 #define PF4_WPORT PORTF
659 #define PF4_DDR DDRF
660 #define PF4_PWM nullptr
661 #undef PF5
662 #define PF5_PIN PINF5
663 #define PF5_RPORT PINF
664 #define PF5_WPORT PORTF
665 #define PF5_DDR DDRF
666 #define PF5_PWM nullptr
667 #undef PF6
668 #define PF6_PIN PINF6
669 #define PF6_RPORT PINF
670 #define PF6_WPORT PORTF
671 #define PF6_DDR DDRF
672 #define PF6_PWM nullptr
673 #undef PF7
674 #define PF7_PIN PINF7
675 #define PF7_RPORT PINF
676 #define PF7_WPORT PORTF
677 #define PF7_DDR DDRF
678 #define PF7_PWM nullptr
679 
680 #undef PG0
681 #define PG0_PIN PING0
682 #define PG0_RPORT PING
683 #define PG0_WPORT PORTG
684 #define PG0_DDR DDRG
685 #define PG0_PWM nullptr
686 #undef PG1
687 #define PG1_PIN PING1
688 #define PG1_RPORT PING
689 #define PG1_WPORT PORTG
690 #define PG1_DDR DDRG
691 #define PG1_PWM nullptr
692 #undef PG2
693 #define PG2_PIN PING2
694 #define PG2_RPORT PING
695 #define PG2_WPORT PORTG
696 #define PG2_DDR DDRG
697 #define PG2_PWM nullptr
698 #undef PG3
699 #define PG3_PIN PING3
700 #define PG3_RPORT PING
701 #define PG3_WPORT PORTG
702 #define PG3_DDR DDRG
703 #define PG3_PWM nullptr
704 #undef PG4
705 #define PG4_PIN PING4
706 #define PG4_RPORT PING
707 #define PG4_WPORT PORTG
708 #define PG4_DDR DDRG
709 #define PG4_PWM nullptr
710 #undef PG5
711 #define PG5_PIN PING5
712 #define PG5_RPORT PING
713 #define PG5_WPORT PORTG
714 #define PG5_DDR DDRG
715 #define PG5_PWM &OCR0B