My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

fastio_AT90USB.h 16KB

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