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_1281.h 16KB

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