Subversion Repositories Tronxy-X3A-Marlin

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 ron 1
/**
2
 * Marlin 3D Printer Firmware
3
 * Copyright (C) 2016 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
 
23
/**
24
 * Pin mapping (Teensy) for AT90USB646, 647, 1286, and 1287
25
 *
26
 *   Logical Pin: 28 29 30 31 32 33 34 35 20 21 22 23 24 25 26 27 10 11 12 13 14 15 16 17 00 01 02 03 04 05 06 07 08 09(46*47)36 37 18 19 38 39 40 41 42 43 44 45
27
 *   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
28
 *            The logical pins 46 and 47 are not supported by Teensyduino, but are supported below as E2 and E3
29
 */
30
 
31
#ifndef _FASTIO_AT90USB
32
#define _FASTIO_AT90USB
33
 
34
#include "fastio.h"
35
 
36
// change for your board
37
#define DEBUG_LED   DIO31 /* led D5 red */
38
 
39
// SPI
40
#define SCK         DIO21  //  9
41
#define MISO        DIO23  // 11
42
#define MOSI        DIO22  // 10
43
#define SS          DIO20  //  8
44
 
45
// Digital I/O
46
 
47
#define DIO0_PIN    PIND0
48
#define DIO0_RPORT  PIND
49
#define DIO0_WPORT  PORTD
50
#define DIO0_PWM    NULL
51
#define DIO0_DDR    DDRD
52
 
53
#define DIO1_PIN    PIND1
54
#define DIO1_RPORT  PIND
55
#define DIO1_WPORT  PORTD
56
#define DIO1_PWM    NULL
57
#define DIO1_DDR    DDRD
58
 
59
#define DIO2_PIN    PIND2
60
#define DIO2_RPORT  PIND
61
#define DIO2_WPORT  PORTD
62
#define DIO2_PWM    NULL
63
#define DIO2_DDR    DDRD
64
 
65
#define DIO3_PIN    PIND3
66
#define DIO3_RPORT  PIND
67
#define DIO3_WPORT  PORTD
68
#define DIO3_PWM    NULL
69
#define DIO3_DDR    DDRD
70
 
71
#define DIO4_PIN    PIND4
72
#define DIO4_RPORT  PIND
73
#define DIO4_WPORT  PORTD
74
#define DIO4_PWM    NULL
75
#define DIO4_DDR    DDRD
76
 
77
#define DIO5_PIN    PIND5
78
#define DIO5_RPORT  PIND
79
#define DIO5_WPORT  PORTD
80
#define DIO5_PWM    NULL
81
#define DIO5_DDR    DDRD
82
 
83
#define DIO6_PIN    PIND6
84
#define DIO6_RPORT  PIND
85
#define DIO6_WPORT  PORTD
86
#define DIO6_PWM    NULL
87
#define DIO6_DDR    DDRD
88
 
89
#define DIO7_PIN    PIND7
90
#define DIO7_RPORT  PIND
91
#define DIO7_WPORT  PORTD
92
#define DIO7_PWM    NULL
93
#define DIO7_DDR    DDRD
94
 
95
#define DIO8_PIN    PINE0
96
#define DIO8_RPORT  PINE
97
#define DIO8_WPORT  PORTE
98
#define DIO8_PWM    NULL
99
#define DIO8_DDR    DDRE
100
 
101
#define DIO9_PIN    PINE1
102
#define DIO9_RPORT  PINE
103
#define DIO9_WPORT  PORTE
104
#define DIO9_PWM    NULL
105
#define DIO9_DDR    DDRE
106
 
107
#define DIO10_PIN   PINC0
108
#define DIO10_RPORT PINC
109
#define DIO10_WPORT PORTC
110
#define DIO10_PWM   NULL
111
#define DIO10_DDR   DDRC
112
 
113
#define DIO11_PIN   PINC1
114
#define DIO11_RPORT PINC
115
#define DIO11_WPORT PORTC
116
#define DIO11_PWM   NULL
117
#define DIO11_DDR   DDRC
118
 
119
#define DIO12_PIN   PINC2
120
#define DIO12_RPORT PINC
121
#define DIO12_WPORT PORTC
122
#define DIO12_PWM   NULL
123
#define DIO12_DDR   DDRC
124
 
125
#define DIO13_PIN   PINC3
126
#define DIO13_RPORT PINC
127
#define DIO13_WPORT PORTC
128
#define DIO13_PWM   NULL
129
#define DIO13_DDR   DDRC
130
 
131
#define DIO14_PIN   PINC4
132
#define DIO14_RPORT PINC
133
#define DIO14_WPORT PORTC
134
#define DIO14_PWM   NULL
135
#define DIO14_DDR   DDRC
136
 
137
#define DIO15_PIN   PINC5
138
#define DIO15_RPORT PINC
139
#define DIO15_WPORT PORTC
140
#define DIO15_PWM   NULL
141
#define DIO15_DDR   DDRC
142
 
143
#define DIO16_PIN   PINC6
144
#define DIO16_RPORT PINC
145
#define DIO16_WPORT PORTC
146
#define DIO16_PWM   NULL
147
#define DIO16_DDR   DDRC
148
 
149
#define DIO17_PIN   PINC7
150
#define DIO17_RPORT PINC
151
#define DIO17_WPORT PORTC
152
#define DIO17_PWM   NULL
153
#define DIO17_DDR   DDRC
154
 
155
#define DIO18_PIN   PINE6
156
#define DIO18_RPORT PINE
157
#define DIO18_WPORT PORTE
158
#define DIO18_PWM   NULL
159
#define DIO18_DDR   DDRE
160
 
161
#define DIO19_PIN   PINE7
162
#define DIO19_RPORT PINE
163
#define DIO19_WPORT PORTE
164
#define DIO19_PWM   NULL
165
#define DIO19_DDR   DDRE
166
 
167
#define DIO20_PIN   PINB0
168
#define DIO20_RPORT PINB
169
#define DIO20_WPORT PORTB
170
#define DIO20_PWM   NULL
171
#define DIO20_DDR   DDRB
172
 
173
#define DIO21_PIN   PINB1
174
#define DIO21_RPORT PINB
175
#define DIO21_WPORT PORTB
176
#define DIO21_PWM   NULL
177
#define DIO21_DDR   DDRB
178
 
179
#define DIO22_PIN   PINB2
180
#define DIO22_RPORT PINB
181
#define DIO22_WPORT PORTB
182
#define DIO22_PWM   NULL
183
#define DIO22_DDR   DDRB
184
 
185
#define DIO23_PIN   PINB3
186
#define DIO23_RPORT PINB
187
#define DIO23_WPORT PORTB
188
#define DIO23_PWM   NULL
189
#define DIO23_DDR   DDRB
190
 
191
#define DIO24_PIN   PINB4
192
#define DIO24_RPORT PINB
193
#define DIO24_WPORT PORTB
194
#define DIO24_PWM   NULL
195
#define DIO24_DDR   DDRB
196
 
197
#define DIO25_PIN   PINB5
198
#define DIO25_RPORT PINB
199
#define DIO25_WPORT PORTB
200
#define DIO25_PWM   NULL
201
#define DIO25_DDR   DDRB
202
 
203
#define DIO26_PIN   PINB6
204
#define DIO26_RPORT PINB
205
#define DIO26_WPORT PORTB
206
#define DIO26_PWM   NULL
207
#define DIO26_DDR   DDRB
208
 
209
#define DIO27_PIN   PINB7
210
#define DIO27_RPORT PINB
211
#define DIO27_WPORT PORTB
212
#define DIO27_PWM   NULL
213
#define DIO27_DDR   DDRB
214
 
215
#define DIO28_PIN   PINA0
216
#define DIO28_RPORT PINA
217
#define DIO28_WPORT PORTA
218
#define DIO28_PWM   NULL
219
#define DIO28_DDR   DDRA
220
 
221
#define DIO29_PIN   PINA1
222
#define DIO29_RPORT PINA
223
#define DIO29_WPORT PORTA
224
#define DIO29_PWM   NULL
225
#define DIO29_DDR   DDRA
226
 
227
#define DIO30_PIN   PINA2
228
#define DIO30_RPORT PINA
229
#define DIO30_WPORT PORTA
230
#define DIO30_PWM   NULL
231
#define DIO30_DDR   DDRA
232
 
233
#define DIO31_PIN   PINA3
234
#define DIO31_RPORT PINA
235
#define DIO31_WPORT PORTA
236
#define DIO31_PWM   NULL
237
#define DIO31_DDR   DDRA
238
 
239
#define DIO32_PIN   PINA4
240
#define DIO32_RPORT PINA
241
#define DIO32_WPORT PORTA
242
#define DIO32_PWM   NULL
243
#define DIO32_DDR   DDRA
244
 
245
#define DIO33_PIN   PINA5
246
#define DIO33_RPORT PINA
247
#define DIO33_WPORT PORTA
248
#define DIO33_PWM   NULL
249
#define DIO33_DDR   DDRA
250
 
251
#define DIO34_PIN   PINA6
252
#define DIO34_RPORT PINA
253
#define DIO34_WPORT PORTA
254
#define DIO34_PWM   NULL
255
#define DIO34_DDR   DDRA
256
 
257
#define DIO35_PIN   PINA7
258
#define DIO35_RPORT PINA
259
#define DIO35_WPORT PORTA
260
#define DIO35_PWM   NULL
261
#define DIO35_DDR   DDRA
262
 
263
#define DIO36_PIN   PINE4
264
#define DIO36_RPORT PINE
265
#define DIO36_WPORT PORTE
266
#define DIO36_PWM   NULL
267
#define DIO36_DDR   DDRE
268
 
269
#define DIO37_PIN   PINE5
270
#define DIO37_RPORT PINE
271
#define DIO37_WPORT PORTE
272
#define DIO37_PWM   NULL
273
#define DIO37_DDR   DDRE
274
 
275
#define DIO38_PIN   PINF0
276
#define DIO38_RPORT PINF
277
#define DIO38_WPORT PORTF
278
#define DIO38_PWM   NULL
279
#define DIO38_DDR   DDRF
280
 
281
#define DIO39_PIN   PINF1
282
#define DIO39_RPORT PINF
283
#define DIO39_WPORT PORTF
284
#define DIO39_PWM   NULL
285
#define DIO39_DDR   DDRF
286
 
287
#define DIO40_PIN   PINF2
288
#define DIO40_RPORT PINF
289
#define DIO40_WPORT PORTF
290
#define DIO40_PWM   NULL
291
#define DIO40_DDR   DDRF
292
 
293
#define DIO41_PIN   PINF3
294
#define DIO41_RPORT PINF
295
#define DIO41_WPORT PORTF
296
#define DIO41_PWM   NULL
297
#define DIO41_DDR   DDRF
298
 
299
#define DIO42_PIN   PINF4
300
#define DIO42_RPORT PINF
301
#define DIO42_WPORT PORTF
302
#define DIO42_PWM   NULL
303
#define DIO42_DDR   DDRF
304
 
305
#define DIO43_PIN   PINF5
306
#define DIO43_RPORT PINF
307
#define DIO43_WPORT PORTF
308
#define DIO43_PWM   NULL
309
#define DIO43_DDR   DDRF
310
 
311
#define DIO44_PIN   PINF6
312
#define DIO44_RPORT PINF
313
#define DIO44_WPORT PORTF
314
#define DIO44_PWM   NULL
315
#define DIO44_DDR   DDRF
316
 
317
#define DIO45_PIN   PINF7
318
#define DIO45_RPORT PINF
319
#define DIO45_WPORT PORTF
320
#define DIO45_PWM   NULL
321
#define DIO45_DDR   DDRF
322
 
323
#define AIO0_PIN    PINF0
324
#define AIO0_RPORT  PINF
325
#define AIO0_WPORT  PORTF
326
#define AIO0_PWM    NULL
327
#define AIO0_DDR    DDRF
328
 
329
#define AIO1_PIN    PINF1
330
#define AIO1_RPORT  PINF
331
#define AIO1_WPORT  PORTF
332
#define AIO1_PWM    NULL
333
#define AIO1_DDR    DDRF
334
 
335
#define AIO2_PIN    PINF2
336
#define AIO2_RPORT  PINF
337
#define AIO2_WPORT  PORTF
338
#define AIO2_PWM    NULL
339
#define AIO2_DDR    DDRF
340
 
341
#define AIO3_PIN    PINF3
342
#define AIO3_RPORT  PINF
343
#define AIO3_WPORT  PORTF
344
#define AIO3_PWM    NULL
345
#define AIO3_DDR    DDRF
346
 
347
#define AIO4_PIN    PINF4
348
#define AIO4_RPORT  PINF
349
#define AIO4_WPORT  PORTF
350
#define AIO4_PWM    NULL
351
#define AIO4_DDR    DDRF
352
 
353
#define AIO5_PIN    PINF5
354
#define AIO5_RPORT  PINF
355
#define AIO5_WPORT  PORTF
356
#define AIO5_PWM    NULL
357
#define AIO5_DDR    DDRF
358
 
359
#define AIO6_PIN    PINF6
360
#define AIO6_RPORT  PINF
361
#define AIO6_WPORT  PORTF
362
#define AIO6_PWM    NULL
363
#define AIO6_DDR    DDRF
364
 
365
#define AIO7_PIN    PINF7
366
#define AIO7_RPORT  PINF
367
#define AIO7_WPORT  PORTF
368
#define AIO7_PWM    NULL
369
#define AIO7_DDR    DDRF
370
 
371
//-- Begin not supported by Teensyduino
372
//-- don't use Arduino functions on these pins pinMode/digitalWrite/etc
373
#define DIO46_PIN   PINE2
374
#define DIO46_RPORT PINE
375
#define DIO46_WPORT PORTE
376
#define DIO46_PWM   NULL
377
#define DIO46_DDR   DDRE
378
 
379
#define DIO47_PIN   PINE3
380
#define DIO47_RPORT PINE
381
#define DIO47_WPORT PORTE
382
#define DIO47_PWM   NULL
383
#define DIO47_DDR   DDRE
384
 
385
#define TEENSY_E2   46
386
#define TEENSY_E3   47
387
 
388
//-- end not supported by Teensyduino
389
 
390
#undef PA0
391
#define PA0_PIN     PINA0
392
#define PA0_RPORT   PINA
393
#define PA0_WPORT   PORTA
394
#define PA0_PWM     NULL
395
#define PA0_DDR     DDRA
396
#undef PA1
397
#define PA1_PIN     PINA1
398
#define PA1_RPORT   PINA
399
#define PA1_WPORT   PORTA
400
#define PA1_PWM     NULL
401
#define PA1_DDR     DDRA
402
#undef PA2
403
#define PA2_PIN     PINA2
404
#define PA2_RPORT   PINA
405
#define PA2_WPORT   PORTA
406
#define PA2_PWM     NULL
407
#define PA2_DDR     DDRA
408
#undef PA3
409
#define PA3_PIN     PINA3
410
#define PA3_RPORT   PINA
411
#define PA3_WPORT   PORTA
412
#define PA3_PWM     NULL
413
#define PA3_DDR     DDRA
414
#undef PA4
415
#define PA4_PIN     PINA4
416
#define PA4_RPORT   PINA
417
#define PA4_WPORT   PORTA
418
#define PA4_PWM     NULL
419
#define PA4_DDR     DDRA
420
#undef PA5
421
#define PA5_PIN     PINA5
422
#define PA5_RPORT   PINA
423
#define PA5_WPORT   PORTA
424
#define PA5_PWM     NULL
425
#define PA5_DDR     DDRA
426
#undef PA6
427
#define PA6_PIN     PINA6
428
#define PA6_RPORT   PINA
429
#define PA6_WPORT   PORTA
430
#define PA6_PWM     NULL
431
#define PA6_DDR     DDRA
432
#undef PA7
433
#define PA7_PIN     PINA7
434
#define PA7_RPORT   PINA
435
#define PA7_WPORT   PORTA
436
#define PA7_PWM     NULL
437
#define PA7_DDR     DDRA
438
 
439
#undef PB0
440
#define PB0_PIN     PINB0
441
#define PB0_RPORT   PINB
442
#define PB0_WPORT   PORTB
443
#define PB0_PWM     NULL
444
#define PB0_DDR     DDRB
445
#undef PB1
446
#define PB1_PIN     PINB1
447
#define PB1_RPORT   PINB
448
#define PB1_WPORT   PORTB
449
#define PB1_PWM     NULL
450
#define PB1_DDR     DDRB
451
#undef PB2
452
#define PB2_PIN     PINB2
453
#define PB2_RPORT   PINB
454
#define PB2_WPORT   PORTB
455
#define PB2_PWM     NULL
456
#define PB2_DDR     DDRB
457
#undef PB3
458
#define PB3_PIN     PINB3
459
#define PB3_RPORT   PINB
460
#define PB3_WPORT   PORTB
461
#define PB3_PWM     NULL
462
#define PB3_DDR     DDRB
463
#undef PB4
464
#define PB4_PIN     PINB4
465
#define PB4_RPORT   PINB
466
#define PB4_WPORT   PORTB
467
#define PB4_PWM     NULL
468
#define PB4_DDR     DDRB
469
#undef PB5
470
#define PB5_PIN     PINB5
471
#define PB5_RPORT   PINB
472
#define PB5_WPORT   PORTB
473
#define PB5_PWM     NULL
474
#define PB5_DDR     DDRB
475
#undef PB6
476
#define PB6_PIN     PINB6
477
#define PB6_RPORT   PINB
478
#define PB6_WPORT   PORTB
479
#define PB6_PWM     NULL
480
#define PB6_DDR     DDRB
481
#undef PB7
482
#define PB7_PIN     PINB7
483
#define PB7_RPORT   PINB
484
#define PB7_WPORT   PORTB
485
#define PB7_PWM     NULL
486
#define PB7_DDR     DDRB
487
 
488
#undef PC0
489
#define PC0_PIN     PINC0
490
#define PC0_RPORT   PINC
491
#define PC0_WPORT   PORTC
492
#define PC0_PWM     NULL
493
#define PC0_DDR     DDRC
494
#undef PC1
495
#define PC1_PIN     PINC1
496
#define PC1_RPORT   PINC
497
#define PC1_WPORT   PORTC
498
#define PC1_PWM     NULL
499
#define PC1_DDR     DDRC
500
#undef PC2
501
#define PC2_PIN     PINC2
502
#define PC2_RPORT   PINC
503
#define PC2_WPORT   PORTC
504
#define PC2_PWM     NULL
505
#define PC2_DDR     DDRC
506
#undef PC3
507
#define PC3_PIN     PINC3
508
#define PC3_RPORT   PINC
509
#define PC3_WPORT   PORTC
510
#define PC3_PWM     NULL
511
#define PC3_DDR     DDRC
512
#undef PC4
513
#define PC4_PIN     PINC4
514
#define PC4_RPORT   PINC
515
#define PC4_WPORT   PORTC
516
#define PC4_PWM     NULL
517
#define PC4_DDR     DDRC
518
#undef PC5
519
#define PC5_PIN     PINC5
520
#define PC5_RPORT   PINC
521
#define PC5_WPORT   PORTC
522
#define PC5_PWM     NULL
523
#define PC5_DDR     DDRC
524
#undef PC6
525
#define PC6_PIN     PINC6
526
#define PC6_RPORT   PINC
527
#define PC6_WPORT   PORTC
528
#define PC6_PWM     NULL
529
#define PC6_DDR     DDRC
530
#undef PC7
531
#define PC7_PIN     PINC7
532
#define PC7_RPORT   PINC
533
#define PC7_WPORT   PORTC
534
#define PC7_PWM     NULL
535
#define PC7_DDR     DDRC
536
 
537
#undef PD0
538
#define PD0_PIN     PIND0
539
#define PD0_RPORT   PIND
540
#define PD0_WPORT   PORTD
541
#define PD0_PWM     NULL
542
#define PD0_DDR     DDRD
543
#undef PD1
544
#define PD1_PIN     PIND1
545
#define PD1_RPORT   PIND
546
#define PD1_WPORT   PORTD
547
#define PD1_PWM     NULL
548
#define PD1_DDR     DDRD
549
#undef PD2
550
#define PD2_PIN     PIND2
551
#define PD2_RPORT   PIND
552
#define PD2_WPORT   PORTD
553
#define PD2_PWM     NULL
554
#define PD2_DDR     DDRD
555
#undef PD3
556
#define PD3_PIN     PIND3
557
#define PD3_RPORT   PIND
558
#define PD3_WPORT   PORTD
559
#define PD3_PWM     NULL
560
#define PD3_DDR     DDRD
561
#undef PD4
562
#define PD4_PIN     PIND4
563
#define PD4_RPORT   PIND
564
#define PD4_WPORT   PORTD
565
#define PD4_PWM     NULL
566
#define PD4_DDR     DDRD
567
#undef PD5
568
#define PD5_PIN     PIND5
569
#define PD5_RPORT   PIND
570
#define PD5_WPORT   PORTD
571
#define PD5_PWM     NULL
572
#define PD5_DDR     DDRD
573
#undef PD6
574
#define PD6_PIN     PIND6
575
#define PD6_RPORT   PIND
576
#define PD6_WPORT   PORTD
577
#define PD6_PWM     NULL
578
#define PD6_DDR     DDRD
579
#undef PD7
580
#define PD7_PIN     PIND7
581
#define PD7_RPORT   PIND
582
#define PD7_WPORT   PORTD
583
#define PD7_PWM     NULL
584
#define PD7_DDR     DDRD
585
 
586
#undef PE0
587
#define PE0_PIN     PINE0
588
#define PE0_RPORT   PINE
589
#define PE0_WPORT   PORTE
590
#define PE0_PWM     NULL
591
#define PE0_DDR     DDRE
592
#undef PE1
593
#define PE1_PIN     PINE1
594
#define PE1_RPORT   PINE
595
#define PE1_WPORT   PORTE
596
#define PE1_PWM     NULL
597
#define PE1_DDR     DDRE
598
#undef PE2
599
#define PE2_PIN     PINE2
600
#define PE2_RPORT   PINE
601
#define PE2_WPORT   PORTE
602
#define PE2_PWM     NULL
603
#define PE2_DDR     DDRE
604
#undef PE3
605
#define PE3_PIN     PINE3
606
#define PE3_RPORT   PINE
607
#define PE3_WPORT   PORTE
608
#define PE3_PWM     NULL
609
#define PE3_DDR     DDRE
610
#undef PE4
611
#define PE4_PIN     PINE4
612
#define PE4_RPORT   PINE
613
#define PE4_WPORT   PORTE
614
#define PE4_PWM     NULL
615
#define PE4_DDR     DDRE
616
#undef PE5
617
#define PE5_PIN     PINE5
618
#define PE5_RPORT   PINE
619
#define PE5_WPORT   PORTE
620
#define PE5_PWM     NULL
621
#define PE5_DDR     DDRE
622
#undef PE6
623
#define PE6_PIN     PINE6
624
#define PE6_RPORT   PINE
625
#define PE6_WPORT   PORTE
626
#define PE6_PWM     NULL
627
#define PE6_DDR     DDRE
628
#undef PE7
629
#define PE7_PIN     PINE7
630
#define PE7_RPORT   PINE
631
#define PE7_WPORT   PORTE
632
#define PE7_PWM     NULL
633
#define PE7_DDR     DDRE
634
 
635
#undef PF0
636
#define PF0_PIN     PINF0
637
#define PF0_RPORT   PINF
638
#define PF0_WPORT   PORTF
639
#define PF0_PWM     NULL
640
#define PF0_DDR     DDRF
641
#undef PF1
642
#define PF1_PIN     PINF1
643
#define PF1_RPORT   PINF
644
#define PF1_WPORT   PORTF
645
#define PF1_PWM     NULL
646
#define PF1_DDR     DDRF
647
#undef PF2
648
#define PF2_PIN     PINF2
649
#define PF2_RPORT   PINF
650
#define PF2_WPORT   PORTF
651
#define PF2_PWM     NULL
652
#define PF2_DDR     DDRF
653
#undef PF3
654
#define PF3_PIN     PINF3
655
#define PF3_RPORT   PINF
656
#define PF3_WPORT   PORTF
657
#define PF3_PWM     NULL
658
#define PF3_DDR     DDRF
659
#undef PF4
660
#define PF4_PIN     PINF4
661
#define PF4_RPORT   PINF
662
#define PF4_WPORT   PORTF
663
#define PF4_PWM     NULL
664
#define PF4_DDR     DDRF
665
#undef PF5
666
#define PF5_PIN     PINF5
667
#define PF5_RPORT   PINF
668
#define PF5_WPORT   PORTF
669
#define PF5_PWM     NULL
670
#define PF5_DDR     DDRF
671
#undef PF6
672
#define PF6_PIN     PINF6
673
#define PF6_RPORT   PINF
674
#define PF6_WPORT   PORTF
675
#define PF6_PWM     NULL
676
#define PF6_DDR     DDRF
677
#undef PF7
678
#define PF7_PIN     PINF7
679
#define PF7_RPORT   PINF
680
#define PF7_WPORT   PORTF
681
#define PF7_PWM     NULL
682
#define PF7_DDR     DDRF
683
 
684
 
685
/**
686
 *  some of the pin mapping functions of the Teensduino extension to the Arduino IDE
687
 *  do not function the same as the other Arduino extensions
688
 */
689
 
690
//digitalPinToTimer(pin) function works like Arduino but Timers are not defined
691
#define TIMER0B 1
692
#define TIMER1A 7
693
#define TIMER1B 8
694
#define TIMER1C 9
695
#define TIMER2A 6
696
#define TIMER2B 2
697
#define TIMER3A 5
698
#define TIMER3B 4
699
#define TIMER3C 3
700
 
701
#endif // _FASTIO_AT90USB