My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

fastio_1280.h 25KB

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