My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

fastio_1280.h 25KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115
  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 for the 1280 and 2560
  24. *
  25. * 1280 22 23 24 25 26 27 28 29 53 52 51 50 10 11 12 13 37 36 35 34 33 32 31 30 21 20 19 18 81 82 83 38 00 01 78 05 02 03 79 80 54 55 56 57 58 59 60 61 41 40 39 71 70 04 17 16 84 06 07 08 09 85 15 14 72 73 75 76 77 74 62 63 64 65 66 67 68 69 49 48 47 46 45 44 43 42
  26. * 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 H0 H1 H2 H3 H4 H5 H6 H7 J0 J1 J2 J3 J4 J5 J6 J7 K0 K1 K2 K3 K4 K5 K6 K7 L0 L1 L2 L3 L4 L5 L6 L7
  27. * Marlin 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
  28. */
  29. #ifndef _FASTIO_1280
  30. #define _FASTIO_1280
  31. #include "fastio.h"
  32. // change for your board
  33. #define DEBUG_LED DIO21
  34. // UART
  35. #define RXD DIO0
  36. #define TXD DIO1
  37. // SPI
  38. #define SCK DIO52
  39. #define MISO DIO50
  40. #define MOSI DIO51
  41. #define SS DIO53
  42. // TWI (I2C)
  43. #define SCL DIO21
  44. #define SDA DIO20
  45. // Timers and PWM
  46. #define OC0A DIO13
  47. #define OC0B DIO4
  48. #define OC1A DIO11
  49. #define OC1B DIO12
  50. #define OC2A DIO10
  51. #define OC2B DIO9
  52. #define OC3A DIO5
  53. #define OC3B DIO2
  54. #define OC3C DIO3
  55. #define OC4A DIO6
  56. #define OC4B DIO7
  57. #define OC4C DIO8
  58. #define OC5A DIO46
  59. #define OC5B DIO45
  60. #define OC5C DIO44
  61. // Digital I/O
  62. #define DIO0_PIN PINE0
  63. #define DIO0_RPORT PINE
  64. #define DIO0_WPORT PORTE
  65. #define DIO0_DDR DDRE
  66. #define DIO0_PWM NULL
  67. #define DIO1_PIN PINE1
  68. #define DIO1_RPORT PINE
  69. #define DIO1_WPORT PORTE
  70. #define DIO1_DDR DDRE
  71. #define DIO1_PWM NULL
  72. #define DIO2_PIN PINE4
  73. #define DIO2_RPORT PINE
  74. #define DIO2_WPORT PORTE
  75. #define DIO2_DDR DDRE
  76. #define DIO2_PWM &OCR3BL
  77. #define DIO3_PIN PINE5
  78. #define DIO3_RPORT PINE
  79. #define DIO3_WPORT PORTE
  80. #define DIO3_DDR DDRE
  81. #define DIO3_PWM &OCR3CL
  82. #define DIO4_PIN PING5
  83. #define DIO4_RPORT PING
  84. #define DIO4_WPORT PORTG
  85. #define DIO4_DDR DDRG
  86. #define DIO4_PWM &OCR0B
  87. #define DIO5_PIN PINE3
  88. #define DIO5_RPORT PINE
  89. #define DIO5_WPORT PORTE
  90. #define DIO5_DDR DDRE
  91. #define DIO5_PWM &OCR3AL
  92. #define DIO6_PIN PINH3
  93. #define DIO6_RPORT PINH
  94. #define DIO6_WPORT PORTH
  95. #define DIO6_DDR DDRH
  96. #define DIO6_PWM &OCR4AL
  97. #define DIO7_PIN PINH4
  98. #define DIO7_RPORT PINH
  99. #define DIO7_WPORT PORTH
  100. #define DIO7_DDR DDRH
  101. #define DIO7_PWM &OCR4BL
  102. #define DIO8_PIN PINH5
  103. #define DIO8_RPORT PINH
  104. #define DIO8_WPORT PORTH
  105. #define DIO8_DDR DDRH
  106. #define DIO8_PWM &OCR4CL
  107. #define DIO9_PIN PINH6
  108. #define DIO9_RPORT PINH
  109. #define DIO9_WPORT PORTH
  110. #define DIO9_DDR DDRH
  111. #define DIO9_PWM &OCR2B
  112. #define DIO10_PIN PINB4
  113. #define DIO10_RPORT PINB
  114. #define DIO10_WPORT PORTB
  115. #define DIO10_DDR DDRB
  116. #define DIO10_PWM &OCR2A
  117. #define DIO11_PIN PINB5
  118. #define DIO11_RPORT PINB
  119. #define DIO11_WPORT PORTB
  120. #define DIO11_DDR DDRB
  121. #define DIO11_PWM NULL
  122. #define DIO12_PIN PINB6
  123. #define DIO12_RPORT PINB
  124. #define DIO12_WPORT PORTB
  125. #define DIO12_DDR DDRB
  126. #define DIO12_PWM NULL
  127. #define DIO13_PIN PINB7
  128. #define DIO13_RPORT PINB
  129. #define DIO13_WPORT PORTB
  130. #define DIO13_DDR DDRB
  131. #define DIO13_PWM &OCR0A
  132. #define DIO14_PIN PINJ1
  133. #define DIO14_RPORT PINJ
  134. #define DIO14_WPORT PORTJ
  135. #define DIO14_DDR DDRJ
  136. #define DIO14_PWM NULL
  137. #define DIO15_PIN PINJ0
  138. #define DIO15_RPORT PINJ
  139. #define DIO15_WPORT PORTJ
  140. #define DIO15_DDR DDRJ
  141. #define DIO15_PWM NULL
  142. #define DIO16_PIN PINH1
  143. #define DIO16_RPORT PINH
  144. #define DIO16_WPORT PORTH
  145. #define DIO16_DDR DDRH
  146. #define DIO16_PWM NULL
  147. #define DIO17_PIN PINH0
  148. #define DIO17_RPORT PINH
  149. #define DIO17_WPORT PORTH
  150. #define DIO17_DDR DDRH
  151. #define DIO17_PWM NULL
  152. #define DIO18_PIN PIND3
  153. #define DIO18_RPORT PIND
  154. #define DIO18_WPORT PORTD
  155. #define DIO18_DDR DDRD
  156. #define DIO18_PWM NULL
  157. #define DIO19_PIN PIND2
  158. #define DIO19_RPORT PIND
  159. #define DIO19_WPORT PORTD
  160. #define DIO19_DDR DDRD
  161. #define DIO19_PWM NULL
  162. #define DIO20_PIN PIND1
  163. #define DIO20_RPORT PIND
  164. #define DIO20_WPORT PORTD
  165. #define DIO20_DDR DDRD
  166. #define DIO20_PWM NULL
  167. #define DIO21_PIN PIND0
  168. #define DIO21_RPORT PIND
  169. #define DIO21_WPORT PORTD
  170. #define DIO21_DDR DDRD
  171. #define DIO21_PWM NULL
  172. #define DIO22_PIN PINA0
  173. #define DIO22_RPORT PINA
  174. #define DIO22_WPORT PORTA
  175. #define DIO22_DDR DDRA
  176. #define DIO22_PWM NULL
  177. #define DIO23_PIN PINA1
  178. #define DIO23_RPORT PINA
  179. #define DIO23_WPORT PORTA
  180. #define DIO23_DDR DDRA
  181. #define DIO23_PWM NULL
  182. #define DIO24_PIN PINA2
  183. #define DIO24_RPORT PINA
  184. #define DIO24_WPORT PORTA
  185. #define DIO24_DDR DDRA
  186. #define DIO24_PWM NULL
  187. #define DIO25_PIN PINA3
  188. #define DIO25_RPORT PINA
  189. #define DIO25_WPORT PORTA
  190. #define DIO25_DDR DDRA
  191. #define DIO25_PWM NULL
  192. #define DIO26_PIN PINA4
  193. #define DIO26_RPORT PINA
  194. #define DIO26_WPORT PORTA
  195. #define DIO26_DDR DDRA
  196. #define DIO26_PWM NULL
  197. #define DIO27_PIN PINA5
  198. #define DIO27_RPORT PINA
  199. #define DIO27_WPORT PORTA
  200. #define DIO27_DDR DDRA
  201. #define DIO27_PWM NULL
  202. #define DIO28_PIN PINA6
  203. #define DIO28_RPORT PINA
  204. #define DIO28_WPORT PORTA
  205. #define DIO28_DDR DDRA
  206. #define DIO28_PWM NULL
  207. #define DIO29_PIN PINA7
  208. #define DIO29_RPORT PINA
  209. #define DIO29_WPORT PORTA
  210. #define DIO29_DDR DDRA
  211. #define DIO29_PWM NULL
  212. #define DIO30_PIN PINC7
  213. #define DIO30_RPORT PINC
  214. #define DIO30_WPORT PORTC
  215. #define DIO30_DDR DDRC
  216. #define DIO30_PWM NULL
  217. #define DIO31_PIN PINC6
  218. #define DIO31_RPORT PINC
  219. #define DIO31_WPORT PORTC
  220. #define DIO31_DDR DDRC
  221. #define DIO31_PWM NULL
  222. #define DIO32_PIN PINC5
  223. #define DIO32_RPORT PINC
  224. #define DIO32_WPORT PORTC
  225. #define DIO32_DDR DDRC
  226. #define DIO32_PWM NULL
  227. #define DIO33_PIN PINC4
  228. #define DIO33_RPORT PINC
  229. #define DIO33_WPORT PORTC
  230. #define DIO33_DDR DDRC
  231. #define DIO33_PWM NULL
  232. #define DIO34_PIN PINC3
  233. #define DIO34_RPORT PINC
  234. #define DIO34_WPORT PORTC
  235. #define DIO34_DDR DDRC
  236. #define DIO34_PWM NULL
  237. #define DIO35_PIN PINC2
  238. #define DIO35_RPORT PINC
  239. #define DIO35_WPORT PORTC
  240. #define DIO35_DDR DDRC
  241. #define DIO35_PWM NULL
  242. #define DIO36_PIN PINC1
  243. #define DIO36_RPORT PINC
  244. #define DIO36_WPORT PORTC
  245. #define DIO36_DDR DDRC
  246. #define DIO36_PWM NULL
  247. #define DIO37_PIN PINC0
  248. #define DIO37_RPORT PINC
  249. #define DIO37_WPORT PORTC
  250. #define DIO37_DDR DDRC
  251. #define DIO37_PWM NULL
  252. #define DIO38_PIN PIND7
  253. #define DIO38_RPORT PIND
  254. #define DIO38_WPORT PORTD
  255. #define DIO38_DDR DDRD
  256. #define DIO38_PWM NULL
  257. #define DIO39_PIN PING2
  258. #define DIO39_RPORT PING
  259. #define DIO39_WPORT PORTG
  260. #define DIO39_DDR DDRG
  261. #define DIO39_PWM NULL
  262. #define DIO40_PIN PING1
  263. #define DIO40_RPORT PING
  264. #define DIO40_WPORT PORTG
  265. #define DIO40_DDR DDRG
  266. #define DIO40_PWM NULL
  267. #define DIO41_PIN PING0
  268. #define DIO41_RPORT PING
  269. #define DIO41_WPORT PORTG
  270. #define DIO41_DDR DDRG
  271. #define DIO41_PWM NULL
  272. #define DIO42_PIN PINL7
  273. #define DIO42_RPORT PINL
  274. #define DIO42_WPORT PORTL
  275. #define DIO42_DDR DDRL
  276. #define DIO42_PWM NULL
  277. #define DIO43_PIN PINL6
  278. #define DIO43_RPORT PINL
  279. #define DIO43_WPORT PORTL
  280. #define DIO43_DDR DDRL
  281. #define DIO43_PWM NULL
  282. #define DIO44_PIN PINL5
  283. #define DIO44_RPORT PINL
  284. #define DIO44_WPORT PORTL
  285. #define DIO44_DDR DDRL
  286. #define DIO44_PWM &OCR5CL
  287. #define DIO45_PIN PINL4
  288. #define DIO45_RPORT PINL
  289. #define DIO45_WPORT PORTL
  290. #define DIO45_DDR DDRL
  291. #define DIO45_PWM &OCR5BL
  292. #define DIO46_PIN PINL3
  293. #define DIO46_RPORT PINL
  294. #define DIO46_WPORT PORTL
  295. #define DIO46_DDR DDRL
  296. #define DIO46_PWM &OCR5AL
  297. #define DIO47_PIN PINL2
  298. #define DIO47_RPORT PINL
  299. #define DIO47_WPORT PORTL
  300. #define DIO47_DDR DDRL
  301. #define DIO47_PWM NULL
  302. #define DIO48_PIN PINL1
  303. #define DIO48_RPORT PINL
  304. #define DIO48_WPORT PORTL
  305. #define DIO48_DDR DDRL
  306. #define DIO48_PWM NULL
  307. #define DIO49_PIN PINL0
  308. #define DIO49_RPORT PINL
  309. #define DIO49_WPORT PORTL
  310. #define DIO49_DDR DDRL
  311. #define DIO49_PWM NULL
  312. #define DIO50_PIN PINB3
  313. #define DIO50_RPORT PINB
  314. #define DIO50_WPORT PORTB
  315. #define DIO50_DDR DDRB
  316. #define DIO50_PWM NULL
  317. #define DIO51_PIN PINB2
  318. #define DIO51_RPORT PINB
  319. #define DIO51_WPORT PORTB
  320. #define DIO51_DDR DDRB
  321. #define DIO51_PWM NULL
  322. #define DIO52_PIN PINB1
  323. #define DIO52_RPORT PINB
  324. #define DIO52_WPORT PORTB
  325. #define DIO52_DDR DDRB
  326. #define DIO52_PWM NULL
  327. #define DIO53_PIN PINB0
  328. #define DIO53_RPORT PINB
  329. #define DIO53_WPORT PORTB
  330. #define DIO53_DDR DDRB
  331. #define DIO53_PWM NULL
  332. #define DIO54_PIN PINF0
  333. #define DIO54_RPORT PINF
  334. #define DIO54_WPORT PORTF
  335. #define DIO54_DDR DDRF
  336. #define DIO54_PWM NULL
  337. #define DIO55_PIN PINF1
  338. #define DIO55_RPORT PINF
  339. #define DIO55_WPORT PORTF
  340. #define DIO55_DDR DDRF
  341. #define DIO55_PWM NULL
  342. #define DIO56_PIN PINF2
  343. #define DIO56_RPORT PINF
  344. #define DIO56_WPORT PORTF
  345. #define DIO56_DDR DDRF
  346. #define DIO56_PWM NULL
  347. #define DIO57_PIN PINF3
  348. #define DIO57_RPORT PINF
  349. #define DIO57_WPORT PORTF
  350. #define DIO57_DDR DDRF
  351. #define DIO57_PWM NULL
  352. #define DIO58_PIN PINF4
  353. #define DIO58_RPORT PINF
  354. #define DIO58_WPORT PORTF
  355. #define DIO58_DDR DDRF
  356. #define DIO58_PWM NULL
  357. #define DIO59_PIN PINF5
  358. #define DIO59_RPORT PINF
  359. #define DIO59_WPORT PORTF
  360. #define DIO59_DDR DDRF
  361. #define DIO59_PWM NULL
  362. #define DIO60_PIN PINF6
  363. #define DIO60_RPORT PINF
  364. #define DIO60_WPORT PORTF
  365. #define DIO60_DDR DDRF
  366. #define DIO60_PWM NULL
  367. #define DIO61_PIN PINF7
  368. #define DIO61_RPORT PINF
  369. #define DIO61_WPORT PORTF
  370. #define DIO61_DDR DDRF
  371. #define DIO61_PWM NULL
  372. #define DIO62_PIN PINK0
  373. #define DIO62_RPORT PINK
  374. #define DIO62_WPORT PORTK
  375. #define DIO62_DDR DDRK
  376. #define DIO62_PWM NULL
  377. #define DIO63_PIN PINK1
  378. #define DIO63_RPORT PINK
  379. #define DIO63_WPORT PORTK
  380. #define DIO63_DDR DDRK
  381. #define DIO63_PWM NULL
  382. #define DIO64_PIN PINK2
  383. #define DIO64_RPORT PINK
  384. #define DIO64_WPORT PORTK
  385. #define DIO64_DDR DDRK
  386. #define DIO64_PWM NULL
  387. #define DIO65_PIN PINK3
  388. #define DIO65_RPORT PINK
  389. #define DIO65_WPORT PORTK
  390. #define DIO65_DDR DDRK
  391. #define DIO65_PWM NULL
  392. #define DIO66_PIN PINK4
  393. #define DIO66_RPORT PINK
  394. #define DIO66_WPORT PORTK
  395. #define DIO66_DDR DDRK
  396. #define DIO66_PWM NULL
  397. #define DIO67_PIN PINK5
  398. #define DIO67_RPORT PINK
  399. #define DIO67_WPORT PORTK
  400. #define DIO67_DDR DDRK
  401. #define DIO67_PWM NULL
  402. #define DIO68_PIN PINK6
  403. #define DIO68_RPORT PINK
  404. #define DIO68_WPORT PORTK
  405. #define DIO68_DDR DDRK
  406. #define DIO68_PWM NULL
  407. #define DIO69_PIN PINK7
  408. #define DIO69_RPORT PINK
  409. #define DIO69_WPORT PORTK
  410. #define DIO69_DDR DDRK
  411. #define DIO69_PWM NULL
  412. #define DIO70_PIN PING4
  413. #define DIO70_RPORT PING
  414. #define DIO70_WPORT PORTG
  415. #define DIO70_DDR DDRG
  416. #define DIO70_PWM NULL
  417. #define DIO71_PIN PING3
  418. #define DIO71_RPORT PING
  419. #define DIO71_WPORT PORTG
  420. #define DIO71_DDR DDRG
  421. #define DIO71_PWM NULL
  422. #define DIO72_PIN PINJ2
  423. #define DIO72_RPORT PINJ
  424. #define DIO72_WPORT PORTJ
  425. #define DIO72_DDR DDRJ
  426. #define DIO72_PWM NULL
  427. #define DIO73_PIN PINJ3
  428. #define DIO73_RPORT PINJ
  429. #define DIO73_WPORT PORTJ
  430. #define DIO73_DDR DDRJ
  431. #define DIO73_PWM NULL
  432. #define DIO74_PIN PINJ7
  433. #define DIO74_RPORT PINJ
  434. #define DIO74_WPORT PORTJ
  435. #define DIO74_DDR DDRJ
  436. #define DIO74_PWM NULL
  437. #define DIO75_PIN PINJ4
  438. #define DIO75_RPORT PINJ
  439. #define DIO75_WPORT PORTJ
  440. #define DIO75_DDR DDRJ
  441. #define DIO75_PWM NULL
  442. #define DIO76_PIN PINJ5
  443. #define DIO76_RPORT PINJ
  444. #define DIO76_WPORT PORTJ
  445. #define DIO76_DDR DDRJ
  446. #define DIO76_PWM NULL
  447. #define DIO77_PIN PINJ6
  448. #define DIO77_RPORT PINJ
  449. #define DIO77_WPORT PORTJ
  450. #define DIO77_DDR DDRJ
  451. #define DIO77_PWM NULL
  452. #define DIO78_PIN PINE2
  453. #define DIO78_RPORT PINE
  454. #define DIO78_WPORT PORTE
  455. #define DIO78_DDR DDRE
  456. #define DIO78_PWM NULL
  457. #define DIO79_PIN PINE6
  458. #define DIO79_RPORT PINE
  459. #define DIO79_WPORT PORTE
  460. #define DIO79_DDR DDRE
  461. #define DIO79_PWM NULL
  462. #define DIO80_PIN PINE7
  463. #define DIO80_RPORT PINE
  464. #define DIO80_WPORT PORTE
  465. #define DIO80_DDR DDRE
  466. #define DIO80_PWM NULL
  467. #define DIO81_PIN PIND4
  468. #define DIO81_RPORT PIND
  469. #define DIO81_WPORT PORTD
  470. #define DIO81_DDR DDRD
  471. #define DIO81_PWM NULL
  472. #define DIO82_PIN PIND5
  473. #define DIO82_RPORT PIND
  474. #define DIO82_WPORT PORTD
  475. #define DIO82_DDR DDRD
  476. #define DIO82_PWM NULL
  477. #define DIO83_PIN PIND6
  478. #define DIO83_RPORT PIND
  479. #define DIO83_WPORT PORTD
  480. #define DIO83_DDR DDRD
  481. #define DIO83_PWM NULL
  482. #define DIO84_PIN PINH2
  483. #define DIO84_RPORT PINH
  484. #define DIO84_WPORT PORTH
  485. #define DIO84_DDR DDRH
  486. #define DIO84_PWM NULL
  487. #define DIO85_PIN PINH7
  488. #define DIO85_RPORT PINH
  489. #define DIO85_WPORT PORTH
  490. #define DIO85_DDR DDRH
  491. #define DIO85_PWM NULL
  492. #undef PA0
  493. #define PA0_PIN PINA0
  494. #define PA0_RPORT PINA
  495. #define PA0_WPORT PORTA
  496. #define PA0_DDR DDRA
  497. #define PA0_PWM NULL
  498. #undef PA1
  499. #define PA1_PIN PINA1
  500. #define PA1_RPORT PINA
  501. #define PA1_WPORT PORTA
  502. #define PA1_DDR DDRA
  503. #define PA1_PWM NULL
  504. #undef PA2
  505. #define PA2_PIN PINA2
  506. #define PA2_RPORT PINA
  507. #define PA2_WPORT PORTA
  508. #define PA2_DDR DDRA
  509. #define PA2_PWM NULL
  510. #undef PA3
  511. #define PA3_PIN PINA3
  512. #define PA3_RPORT PINA
  513. #define PA3_WPORT PORTA
  514. #define PA3_DDR DDRA
  515. #define PA3_PWM NULL
  516. #undef PA4
  517. #define PA4_PIN PINA4
  518. #define PA4_RPORT PINA
  519. #define PA4_WPORT PORTA
  520. #define PA4_DDR DDRA
  521. #define PA4_PWM NULL
  522. #undef PA5
  523. #define PA5_PIN PINA5
  524. #define PA5_RPORT PINA
  525. #define PA5_WPORT PORTA
  526. #define PA5_DDR DDRA
  527. #define PA5_PWM NULL
  528. #undef PA6
  529. #define PA6_PIN PINA6
  530. #define PA6_RPORT PINA
  531. #define PA6_WPORT PORTA
  532. #define PA6_DDR DDRA
  533. #define PA6_PWM NULL
  534. #undef PA7
  535. #define PA7_PIN PINA7
  536. #define PA7_RPORT PINA
  537. #define PA7_WPORT PORTA
  538. #define PA7_DDR DDRA
  539. #define PA7_PWM NULL
  540. #undef PB0
  541. #define PB0_PIN PINB0
  542. #define PB0_RPORT PINB
  543. #define PB0_WPORT PORTB
  544. #define PB0_DDR DDRB
  545. #define PB0_PWM NULL
  546. #undef PB1
  547. #define PB1_PIN PINB1
  548. #define PB1_RPORT PINB
  549. #define PB1_WPORT PORTB
  550. #define PB1_DDR DDRB
  551. #define PB1_PWM NULL
  552. #undef PB2
  553. #define PB2_PIN PINB2
  554. #define PB2_RPORT PINB
  555. #define PB2_WPORT PORTB
  556. #define PB2_DDR DDRB
  557. #define PB2_PWM NULL
  558. #undef PB3
  559. #define PB3_PIN PINB3
  560. #define PB3_RPORT PINB
  561. #define PB3_WPORT PORTB
  562. #define PB3_DDR DDRB
  563. #define PB3_PWM NULL
  564. #undef PB4
  565. #define PB4_PIN PINB4
  566. #define PB4_RPORT PINB
  567. #define PB4_WPORT PORTB
  568. #define PB4_DDR DDRB
  569. #define PB4_PWM &OCR2A
  570. #undef PB5
  571. #define PB5_PIN PINB5
  572. #define PB5_RPORT PINB
  573. #define PB5_WPORT PORTB
  574. #define PB5_DDR DDRB
  575. #define PB5_PWM NULL
  576. #undef PB6
  577. #define PB6_PIN PINB6
  578. #define PB6_RPORT PINB
  579. #define PB6_WPORT PORTB
  580. #define PB6_DDR DDRB
  581. #define PB6_PWM NULL
  582. #undef PB7
  583. #define PB7_PIN PINB7
  584. #define PB7_RPORT PINB
  585. #define PB7_WPORT PORTB
  586. #define PB7_DDR DDRB
  587. #define PB7_PWM &OCR0A
  588. #undef PC0
  589. #define PC0_PIN PINC0
  590. #define PC0_RPORT PINC
  591. #define PC0_WPORT PORTC
  592. #define PC0_DDR DDRC
  593. #define PC0_PWM NULL
  594. #undef PC1
  595. #define PC1_PIN PINC1
  596. #define PC1_RPORT PINC
  597. #define PC1_WPORT PORTC
  598. #define PC1_DDR DDRC
  599. #define PC1_PWM NULL
  600. #undef PC2
  601. #define PC2_PIN PINC2
  602. #define PC2_RPORT PINC
  603. #define PC2_WPORT PORTC
  604. #define PC2_DDR DDRC
  605. #define PC2_PWM NULL
  606. #undef PC3
  607. #define PC3_PIN PINC3
  608. #define PC3_RPORT PINC
  609. #define PC3_WPORT PORTC
  610. #define PC3_DDR DDRC
  611. #define PC3_PWM NULL
  612. #undef PC4
  613. #define PC4_PIN PINC4
  614. #define PC4_RPORT PINC
  615. #define PC4_WPORT PORTC
  616. #define PC4_DDR DDRC
  617. #define PC4_PWM NULL
  618. #undef PC5
  619. #define PC5_PIN PINC5
  620. #define PC5_RPORT PINC
  621. #define PC5_WPORT PORTC
  622. #define PC5_DDR DDRC
  623. #define PC5_PWM NULL
  624. #undef PC6
  625. #define PC6_PIN PINC6
  626. #define PC6_RPORT PINC
  627. #define PC6_WPORT PORTC
  628. #define PC6_DDR DDRC
  629. #define PC6_PWM NULL
  630. #undef PC7
  631. #define PC7_PIN PINC7
  632. #define PC7_RPORT PINC
  633. #define PC7_WPORT PORTC
  634. #define PC7_DDR DDRC
  635. #define PC7_PWM NULL
  636. #undef PD0
  637. #define PD0_PIN PIND0
  638. #define PD0_RPORT PIND
  639. #define PD0_WPORT PORTD
  640. #define PD0_DDR DDRD
  641. #define PD0_PWM NULL
  642. #undef PD1
  643. #define PD1_PIN PIND1
  644. #define PD1_RPORT PIND
  645. #define PD1_WPORT PORTD
  646. #define PD1_DDR DDRD
  647. #define PD1_PWM NULL
  648. #undef PD2
  649. #define PD2_PIN PIND2
  650. #define PD2_RPORT PIND
  651. #define PD2_WPORT PORTD
  652. #define PD2_DDR DDRD
  653. #define PD2_PWM NULL
  654. #undef PD3
  655. #define PD3_PIN PIND3
  656. #define PD3_RPORT PIND
  657. #define PD3_WPORT PORTD
  658. #define PD3_DDR DDRD
  659. #define PD3_PWM NULL
  660. #undef PD4
  661. #define PD4_PIN PIND4
  662. #define PD4_RPORT PIND
  663. #define PD4_WPORT PORTD
  664. #define PD4_DDR DDRD
  665. #define PD4_PWM NULL
  666. #undef PD5
  667. #define PD5_PIN PIND5
  668. #define PD5_RPORT PIND
  669. #define PD5_WPORT PORTD
  670. #define PD5_DDR DDRD
  671. #define PD5_PWM NULL
  672. #undef PD6
  673. #define PD6_PIN PIND6
  674. #define PD6_RPORT PIND
  675. #define PD6_WPORT PORTD
  676. #define PD6_DDR DDRD
  677. #define PD6_PWM NULL
  678. #undef PD7
  679. #define PD7_PIN PIND7
  680. #define PD7_RPORT PIND
  681. #define PD7_WPORT PORTD
  682. #define PD7_DDR DDRD
  683. #define PD7_PWM NULL
  684. #undef PE0
  685. #define PE0_PIN PINE0
  686. #define PE0_RPORT PINE
  687. #define PE0_WPORT PORTE
  688. #define PE0_DDR DDRE
  689. #define PE0_PWM NULL
  690. #undef PE1
  691. #define PE1_PIN PINE1
  692. #define PE1_RPORT PINE
  693. #define PE1_WPORT PORTE
  694. #define PE1_DDR DDRE
  695. #define PE1_PWM NULL
  696. #undef PE2
  697. #define PE2_PIN PINE2
  698. #define PE2_RPORT PINE
  699. #define PE2_WPORT PORTE
  700. #define PE2_DDR DDRE
  701. #define PE2_PWM NULL
  702. #undef PE3
  703. #define PE3_PIN PINE3
  704. #define PE3_RPORT PINE
  705. #define PE3_WPORT PORTE
  706. #define PE3_DDR DDRE
  707. #define PE3_PWM &OCR3AL
  708. #undef PE4
  709. #define PE4_PIN PINE4
  710. #define PE4_RPORT PINE
  711. #define PE4_WPORT PORTE
  712. #define PE4_DDR DDRE
  713. #define PE4_PWM &OCR3BL
  714. #undef PE5
  715. #define PE5_PIN PINE5
  716. #define PE5_RPORT PINE
  717. #define PE5_WPORT PORTE
  718. #define PE5_DDR DDRE
  719. #define PE5_PWM &OCR3CL
  720. #undef PE6
  721. #define PE6_PIN PINE6
  722. #define PE6_RPORT PINE
  723. #define PE6_WPORT PORTE
  724. #define PE6_DDR DDRE
  725. #define PE6_PWM NULL
  726. #undef PE7
  727. #define PE7_PIN PINE7
  728. #define PE7_RPORT PINE
  729. #define PE7_WPORT PORTE
  730. #define PE7_DDR DDRE
  731. #define PE7_PWM NULL
  732. #undef PF0
  733. #define PF0_PIN PINF0
  734. #define PF0_RPORT PINF
  735. #define PF0_WPORT PORTF
  736. #define PF0_DDR DDRF
  737. #define PF0_PWM NULL
  738. #undef PF1
  739. #define PF1_PIN PINF1
  740. #define PF1_RPORT PINF
  741. #define PF1_WPORT PORTF
  742. #define PF1_DDR DDRF
  743. #define PF1_PWM NULL
  744. #undef PF2
  745. #define PF2_PIN PINF2
  746. #define PF2_RPORT PINF
  747. #define PF2_WPORT PORTF
  748. #define PF2_DDR DDRF
  749. #define PF2_PWM NULL
  750. #undef PF3
  751. #define PF3_PIN PINF3
  752. #define PF3_RPORT PINF
  753. #define PF3_WPORT PORTF
  754. #define PF3_DDR DDRF
  755. #define PF3_PWM NULL
  756. #undef PF4
  757. #define PF4_PIN PINF4
  758. #define PF4_RPORT PINF
  759. #define PF4_WPORT PORTF
  760. #define PF4_DDR DDRF
  761. #define PF4_PWM NULL
  762. #undef PF5
  763. #define PF5_PIN PINF5
  764. #define PF5_RPORT PINF
  765. #define PF5_WPORT PORTF
  766. #define PF5_DDR DDRF
  767. #define PF5_PWM NULL
  768. #undef PF6
  769. #define PF6_PIN PINF6
  770. #define PF6_RPORT PINF
  771. #define PF6_WPORT PORTF
  772. #define PF6_DDR DDRF
  773. #define PF6_PWM NULL
  774. #undef PF7
  775. #define PF7_PIN PINF7
  776. #define PF7_RPORT PINF
  777. #define PF7_WPORT PORTF
  778. #define PF7_DDR DDRF
  779. #define PF7_PWM NULL
  780. #undef PG0
  781. #define PG0_PIN PING0
  782. #define PG0_RPORT PING
  783. #define PG0_WPORT PORTG
  784. #define PG0_DDR DDRG
  785. #define PG0_PWM NULL
  786. #undef PG1
  787. #define PG1_PIN PING1
  788. #define PG1_RPORT PING
  789. #define PG1_WPORT PORTG
  790. #define PG1_DDR DDRG
  791. #define PG1_PWM NULL
  792. #undef PG2
  793. #define PG2_PIN PING2
  794. #define PG2_RPORT PING
  795. #define PG2_WPORT PORTG
  796. #define PG2_DDR DDRG
  797. #define PG2_PWM NULL
  798. #undef PG3
  799. #define PG3_PIN PING3
  800. #define PG3_RPORT PING
  801. #define PG3_WPORT PORTG
  802. #define PG3_DDR DDRG
  803. #define PG3_PWM NULL
  804. #undef PG4
  805. #define PG4_PIN PING4
  806. #define PG4_RPORT PING
  807. #define PG4_WPORT PORTG
  808. #define PG4_DDR DDRG
  809. #define PG4_PWM NULL
  810. #undef PG5
  811. #define PG5_PIN PING5
  812. #define PG5_RPORT PING
  813. #define PG5_WPORT PORTG
  814. #define PG5_DDR DDRG
  815. #define PG5_PWM &OCR0B
  816. #undef PH0
  817. #define PH0_PIN PINH0
  818. #define PH0_RPORT PINH
  819. #define PH0_WPORT PORTH
  820. #define PH0_DDR DDRH
  821. #define PH0_PWM NULL
  822. #undef PH1
  823. #define PH1_PIN PINH1
  824. #define PH1_RPORT PINH
  825. #define PH1_WPORT PORTH
  826. #define PH1_DDR DDRH
  827. #define PH1_PWM NULL
  828. #undef PH2
  829. #define PH2_PIN PINH2
  830. #define PH2_RPORT PINH
  831. #define PH2_WPORT PORTH
  832. #define PH2_DDR DDRH
  833. #define PH2_PWM NULL
  834. #undef PH3
  835. #define PH3_PIN PINH3
  836. #define PH3_RPORT PINH
  837. #define PH3_WPORT PORTH
  838. #define PH3_DDR DDRH
  839. #define PH3_PWM &OCR4AL
  840. #undef PH4
  841. #define PH4_PIN PINH4
  842. #define PH4_RPORT PINH
  843. #define PH4_WPORT PORTH
  844. #define PH4_DDR DDRH
  845. #define PH4_PWM &OCR4BL
  846. #undef PH5
  847. #define PH5_PIN PINH5
  848. #define PH5_RPORT PINH
  849. #define PH5_WPORT PORTH
  850. #define PH5_DDR DDRH
  851. #define PH5_PWM &OCR4CL
  852. #undef PH6
  853. #define PH6_PIN PINH6
  854. #define PH6_RPORT PINH
  855. #define PH6_WPORT PORTH
  856. #define PH6_DDR DDRH
  857. #define PH6_PWM &OCR2B
  858. #undef PH7
  859. #define PH7_PIN PINH7
  860. #define PH7_RPORT PINH
  861. #define PH7_WPORT PORTH
  862. #define PH7_DDR DDRH
  863. #define PH7_PWM NULL
  864. #undef PJ0
  865. #define PJ0_PIN PINJ0
  866. #define PJ0_RPORT PINJ
  867. #define PJ0_WPORT PORTJ
  868. #define PJ0_DDR DDRJ
  869. #define PJ0_PWM NULL
  870. #undef PJ1
  871. #define PJ1_PIN PINJ1
  872. #define PJ1_RPORT PINJ
  873. #define PJ1_WPORT PORTJ
  874. #define PJ1_DDR DDRJ
  875. #define PJ1_PWM NULL
  876. #undef PJ2
  877. #define PJ2_PIN PINJ2
  878. #define PJ2_RPORT PINJ
  879. #define PJ2_WPORT PORTJ
  880. #define PJ2_DDR DDRJ
  881. #define PJ2_PWM NULL
  882. #undef PJ3
  883. #define PJ3_PIN PINJ3
  884. #define PJ3_RPORT PINJ
  885. #define PJ3_WPORT PORTJ
  886. #define PJ3_DDR DDRJ
  887. #define PJ3_PWM NULL
  888. #undef PJ4
  889. #define PJ4_PIN PINJ4
  890. #define PJ4_RPORT PINJ
  891. #define PJ4_WPORT PORTJ
  892. #define PJ4_DDR DDRJ
  893. #define PJ4_PWM NULL
  894. #undef PJ5
  895. #define PJ5_PIN PINJ5
  896. #define PJ5_RPORT PINJ
  897. #define PJ5_WPORT PORTJ
  898. #define PJ5_DDR DDRJ
  899. #define PJ5_PWM NULL
  900. #undef PJ6
  901. #define PJ6_PIN PINJ6
  902. #define PJ6_RPORT PINJ
  903. #define PJ6_WPORT PORTJ
  904. #define PJ6_DDR DDRJ
  905. #define PJ6_PWM NULL
  906. #undef PJ7
  907. #define PJ7_PIN PINJ7
  908. #define PJ7_RPORT PINJ
  909. #define PJ7_WPORT PORTJ
  910. #define PJ7_DDR DDRJ
  911. #define PJ7_PWM NULL
  912. #undef PK0
  913. #define PK0_PIN PINK0
  914. #define PK0_RPORT PINK
  915. #define PK0_WPORT PORTK
  916. #define PK0_DDR DDRK
  917. #define PK0_PWM NULL
  918. #undef PK1
  919. #define PK1_PIN PINK1
  920. #define PK1_RPORT PINK
  921. #define PK1_WPORT PORTK
  922. #define PK1_DDR DDRK
  923. #define PK1_PWM NULL
  924. #undef PK2
  925. #define PK2_PIN PINK2
  926. #define PK2_RPORT PINK
  927. #define PK2_WPORT PORTK
  928. #define PK2_DDR DDRK
  929. #define PK2_PWM NULL
  930. #undef PK3
  931. #define PK3_PIN PINK3
  932. #define PK3_RPORT PINK
  933. #define PK3_WPORT PORTK
  934. #define PK3_DDR DDRK
  935. #define PK3_PWM NULL
  936. #undef PK4
  937. #define PK4_PIN PINK4
  938. #define PK4_RPORT PINK
  939. #define PK4_WPORT PORTK
  940. #define PK4_DDR DDRK
  941. #define PK4_PWM NULL
  942. #undef PK5
  943. #define PK5_PIN PINK5
  944. #define PK5_RPORT PINK
  945. #define PK5_WPORT PORTK
  946. #define PK5_DDR DDRK
  947. #define PK5_PWM NULL
  948. #undef PK6
  949. #define PK6_PIN PINK6
  950. #define PK6_RPORT PINK
  951. #define PK6_WPORT PORTK
  952. #define PK6_DDR DDRK
  953. #define PK6_PWM NULL
  954. #undef PK7
  955. #define PK7_PIN PINK7
  956. #define PK7_RPORT PINK
  957. #define PK7_WPORT PORTK
  958. #define PK7_DDR DDRK
  959. #define PK7_PWM NULL
  960. #undef PL0
  961. #define PL0_PIN PINL0
  962. #define PL0_RPORT PINL
  963. #define PL0_WPORT PORTL
  964. #define PL0_DDR DDRL
  965. #define PL0_PWM NULL
  966. #undef PL1
  967. #define PL1_PIN PINL1
  968. #define PL1_RPORT PINL
  969. #define PL1_WPORT PORTL
  970. #define PL1_DDR DDRL
  971. #define PL1_PWM NULL
  972. #undef PL2
  973. #define PL2_PIN PINL2
  974. #define PL2_RPORT PINL
  975. #define PL2_WPORT PORTL
  976. #define PL2_DDR DDRL
  977. #define PL2_PWM NULL
  978. #undef PL3
  979. #define PL3_PIN PINL3
  980. #define PL3_RPORT PINL
  981. #define PL3_WPORT PORTL
  982. #define PL3_DDR DDRL
  983. #define PL3_PWM &OCR5AL
  984. #undef PL4
  985. #define PL4_PIN PINL4
  986. #define PL4_RPORT PINL
  987. #define PL4_WPORT PORTL
  988. #define PL4_DDR DDRL
  989. #define PL4_PWM &OCR5BL
  990. #undef PL5
  991. #define PL5_PIN PINL5
  992. #define PL5_RPORT PINL
  993. #define PL5_WPORT PORTL
  994. #define PL5_DDR DDRL
  995. #define PL5_PWM &OCR5CL
  996. #undef PL6
  997. #define PL6_PIN PINL6
  998. #define PL6_RPORT PINL
  999. #define PL6_WPORT PORTL
  1000. #define PL6_DDR DDRL
  1001. #define PL6_PWM NULL
  1002. #undef PL7
  1003. #define PL7_PIN PINL7
  1004. #define PL7_RPORT PINL
  1005. #define PL7_WPORT PORTL
  1006. #define PL7_DDR DDRL
  1007. #define PL7_PWM NULL
  1008. #endif // _FASTIO_1280