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.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2019 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. #pragma once
  23. /**
  24. * Include pins definitions
  25. *
  26. * Pins numbering schemes:
  27. *
  28. * - Digital I/O pin number if used by READ/WRITE macros. (e.g., X_STEP_DIR)
  29. * The FastIO headers map digital pins to their ports and functions.
  30. *
  31. * - Analog Input number if used by analogRead or DAC. (e.g., TEMP_n_PIN)
  32. * These numbers are the same in any pin mapping.
  33. */
  34. #define MAX_EXTRUDERS 6
  35. #if MB(RAMPS_13_EFB) || MB(RAMPS_14_EFB) || MB(RAMPS_PLUS_EFB) || MB(RAMPS_14_RE_ARM_EFB) || MB(RAMPS_SMART_EFB) || MB(RAMPS_DUO_EFB) || MB(RAMPS4DUE_EFB)
  36. #define IS_RAMPS_EFB
  37. #elif MB(RAMPS_13_EEB) || MB(RAMPS_14_EEB) || MB(RAMPS_PLUS_EEB) || MB(RAMPS_14_RE_ARM_EEB) || MB(RAMPS_SMART_EEB) || MB(RAMPS_DUO_EEB) || MB(RAMPS4DUE_EEB)
  38. #define IS_RAMPS_EEB
  39. #elif MB(RAMPS_13_EFF) || MB(RAMPS_14_EFF) || MB(RAMPS_PLUS_EFF) || MB(RAMPS_14_RE_ARM_EFF) || MB(RAMPS_SMART_EFF) || MB(RAMPS_DUO_EFF) || MB(RAMPS4DUE_EFF)
  40. #define IS_RAMPS_EFF
  41. #elif MB(RAMPS_13_EEF) || MB(RAMPS_14_EEF) || MB(RAMPS_PLUS_EEF) || MB(RAMPS_14_RE_ARM_EEF) || MB(RAMPS_SMART_EEF) || MB(RAMPS_DUO_EEF) || MB(RAMPS4DUE_EEF)
  42. #define IS_RAMPS_EEF
  43. #elif MB(RAMPS_13_SF) || MB(RAMPS_14_SF) || MB(RAMPS_PLUS_SF) || MB(RAMPS_14_RE_ARM_SF) || MB(RAMPS_SMART_SF) || MB(RAMPS_DUO_SF) || MB(RAMPS4DUE_SF)
  44. #define IS_RAMPS_SF
  45. #endif
  46. #define HAS_FREE_AUX2_PINS !(BOTH(ULTRA_LCD, NEWPANEL) && ANY(PANEL_ONE, VIKI2, miniVIKI, MINIPANEL, REPRAPWORLD_KEYPAD))
  47. //
  48. // RAMPS 1.3 / 1.4 - ATmega1280, ATmega2560
  49. //
  50. #if MB(RAMPS_OLD)
  51. #include "ramps/pins_RAMPS_OLD.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  52. #elif MB(RAMPS_13_EFB)
  53. #include "ramps/pins_RAMPS_13.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  54. #elif MB(RAMPS_13_EEB)
  55. #include "ramps/pins_RAMPS_13.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  56. #elif MB(RAMPS_13_EFF)
  57. #include "ramps/pins_RAMPS_13.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  58. #elif MB(RAMPS_13_EEF)
  59. #include "ramps/pins_RAMPS_13.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  60. #elif MB(RAMPS_13_SF)
  61. #include "ramps/pins_RAMPS_13.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  62. #elif MB(RAMPS_14_EFB)
  63. #include "ramps/pins_RAMPS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  64. #elif MB(RAMPS_14_EEB)
  65. #include "ramps/pins_RAMPS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  66. #elif MB(RAMPS_14_EFF)
  67. #include "ramps/pins_RAMPS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  68. #elif MB(RAMPS_14_EEF)
  69. #include "ramps/pins_RAMPS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  70. #elif MB(RAMPS_14_SF)
  71. #include "ramps/pins_RAMPS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  72. #elif MB(RAMPS_PLUS_EFB)
  73. #include "ramps/pins_RAMPS_PLUS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  74. #elif MB(RAMPS_PLUS_EEB)
  75. #include "ramps/pins_RAMPS_PLUS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  76. #elif MB(RAMPS_PLUS_EFF)
  77. #include "ramps/pins_RAMPS_PLUS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  78. #elif MB(RAMPS_PLUS_EEF)
  79. #include "ramps/pins_RAMPS_PLUS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  80. #elif MB(RAMPS_PLUS_SF)
  81. #include "ramps/pins_RAMPS_PLUS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  82. //
  83. // RAMPS Derivatives - ATmega1280, ATmega2560
  84. //
  85. #elif MB(3DRAG)
  86. #include "ramps/pins_3DRAG.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  87. #elif MB(K8200)
  88. #include "ramps/pins_K8200.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560 (3DRAG)
  89. #elif MB(K8400)
  90. #include "ramps/pins_K8400.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560 (3DRAG)
  91. #elif MB(K8800)
  92. #include "ramps/pins_K8800.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560 (3DRAG)
  93. #elif MB(BAM_DICE)
  94. #include "ramps/pins_RAMPS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  95. #elif MB(BAM_DICE_DUE)
  96. #include "ramps/pins_BAM_DICE_DUE.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  97. #elif MB(MKS_BASE)
  98. #include "ramps/pins_MKS_BASE.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  99. #elif MB(MKS_BASE_14)
  100. #include "ramps/pins_MKS_BASE_14.h" // ATmega2560 env:megaatmega2560
  101. #elif MB(MKS_BASE_15)
  102. #include "ramps/pins_MKS_BASE_15.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  103. #elif MB(MKS_BASE_HEROIC)
  104. #include "ramps/pins_MKS_BASE_HEROIC.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  105. #elif MB(MKS_GEN_13)
  106. #include "ramps/pins_MKS_GEN_13.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  107. #elif MB(MKS_GEN_L)
  108. #include "ramps/pins_MKS_GEN_L.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  109. #elif MB(KFB_2)
  110. #include "ramps/pins_BIQU_KFB_2.h" // ATmega2560 env:megaatmega2560
  111. #elif MB(ZRIB_V20)
  112. #include "ramps/pins_ZRIB_V20.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560 (MKS_GEN_13)
  113. #elif MB(FELIX2)
  114. #include "ramps/pins_FELIX2.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  115. #elif MB(RIGIDBOARD)
  116. #include "ramps/pins_RIGIDBOARD.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  117. #elif MB(RIGIDBOARD_V2)
  118. #include "ramps/pins_RIGIDBOARD_V2.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  119. #elif MB(SAINSMART_2IN1)
  120. #include "ramps/pins_SAINSMART_2IN1.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  121. #elif MB(ULTIMAKER)
  122. #include "ramps/pins_ULTIMAKER.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  123. #elif MB(ULTIMAKER_OLD)
  124. #include "ramps/pins_ULTIMAKER_OLD.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  125. #elif MB(AZTEEG_X3)
  126. #include "ramps/pins_AZTEEG_X3.h" // ATmega2560 env:megaatmega2560
  127. #elif MB(AZTEEG_X3_PRO)
  128. #include "ramps/pins_AZTEEG_X3_PRO.h" // ATmega2560 env:megaatmega2560
  129. #elif MB(ULTIMAIN_2)
  130. #include "ramps/pins_ULTIMAIN_2.h" // ATmega2560 env:megaatmega2560
  131. #elif MB(FORMBOT_RAPTOR)
  132. #include "ramps/pins_FORMBOT_RAPTOR.h" // ATmega2560 env:megaatmega2560
  133. #elif MB(FORMBOT_RAPTOR2)
  134. #include "ramps/pins_FORMBOT_RAPTOR2.h" // ATmega2560 env:megaatmega2560
  135. #elif MB(FORMBOT_TREX2PLUS)
  136. #include "ramps/pins_FORMBOT_TREX2PLUS.h" // ATmega2560 env:megaatmega2560
  137. #elif MB(FORMBOT_TREX3)
  138. #include "ramps/pins_FORMBOT_TREX3.h" // ATmega2560 env:megaatmega2560
  139. #elif MB(RUMBA)
  140. #include "ramps/pins_RUMBA.h" // ATmega2560 env:megaatmega2560
  141. #elif MB(RUMBA_RAISE3D)
  142. #include "ramps/pins_RUMBA_RAISE3D.h" // ATmega2560 env:megaatmega2560
  143. #elif MB(RL200)
  144. #include "ramps/pins_RL200.h" // ATmega2560 env:megaatmega2560
  145. #elif MB(BQ_ZUM_MEGA_3D)
  146. #include "ramps/pins_BQ_ZUM_MEGA_3D.h" // ATmega2560 env:megaatmega2560
  147. #elif MB(MAKEBOARD_MINI)
  148. #include "ramps/pins_MAKEBOARD_MINI.h" // ATmega2560 env:megaatmega2560
  149. #elif MB(TRIGORILLA_13)
  150. #include "ramps/pins_TRIGORILLA_13.h" // ATmega2560 env:megaatmega2560
  151. #elif MB(TRIGORILLA_14)
  152. #include "ramps/pins_TRIGORILLA_14.h" // ATmega2560 env:megaatmega2560
  153. #elif MB(TRIGORILLA_14_11)
  154. #include "ramps/pins_TRIGORILLA_14.h" // ATmega2560 env:megaatmega2560
  155. #elif MB(RAMPS_ENDER_4)
  156. #include "ramps/pins_RAMPS_ENDER_4.h" // ATmega2560 env:megaatmega2560
  157. #elif MB(RAMPS_CREALITY)
  158. #include "ramps/pins_RAMPS_CREALITY.h" // ATmega2560 env:megaatmega2560
  159. #elif MB(RAMPS_DAGOMA)
  160. #include "ramps/pins_RAMPS_DAGOMA.h" // ATmega2560 env:megaatmega2560
  161. #elif MB(FYSETC_F6_13)
  162. #include "ramps/pins_FYSETC_F6_13.h" // ATmega2560 env:fysetc_f6_13
  163. #elif MB(DUPLICATOR_I3_PLUS)
  164. #include "ramps/pins_DUPLICATOR_I3_PLUS.h" // ATmega2560 env:megaatmega2560
  165. #elif MB(VORON)
  166. #include "ramps/pins_VORON.h" // ATmega2560 env:megaatmega2560
  167. #elif MB(TRONXY_V3_1_0)
  168. #include "ramps/pins_TRONXY_V3_1_0.h" // ATmega2560 env:megaatmega2560
  169. #elif MB(Z_BOLT_X_SERIES)
  170. #include "ramps/pins_Z_BOLT_X_SERIES.h" // ATmega2560 env:megaatmega2560
  171. #elif MB(TT_OSCAR)
  172. #include "ramps/pins_TT_OSCAR.h" // ATmega2560 env:megaatmega2560
  173. //
  174. // RAMBo and derivatives
  175. //
  176. #elif MB(RAMBO)
  177. #include "rambo/pins_RAMBO.h" // ATmega2560 env:rambo
  178. #elif MB(MINIRAMBO) || MB(MINIRAMBO_10A)
  179. #include "rambo/pins_MINIRAMBO.h" // ATmega2560 env:rambo
  180. #elif MB(EINSY_RAMBO)
  181. #include "rambo/pins_EINSY_RAMBO.h" // ATmega2560 env:rambo
  182. #elif MB(EINSY_RETRO)
  183. #include "rambo/pins_EINSY_RETRO.h" // ATmega2560 env:rambo
  184. #elif MB(SCOOVO_X9H)
  185. #include "rambo/pins_SCOOVO_X9H.h" // ATmega2560 env:rambo
  186. //
  187. // Other ATmega1280, ATmega2560
  188. //
  189. #elif MB(CNCONTROLS_11)
  190. #include "mega/pins_CNCONTROLS_11.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  191. #elif MB(CNCONTROLS_12)
  192. #include "mega/pins_CNCONTROLS_12.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  193. #elif MB(MIGHTYBOARD_REVE)
  194. #include "mega/pins_MIGHTYBOARD_REVE.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  195. #elif MB(CHEAPTRONIC)
  196. #include "mega/pins_CHEAPTRONIC.h" // ATmega2560 env:megaatmega2560
  197. #elif MB(CHEAPTRONIC_V2)
  198. #include "mega/pins_CHEAPTRONICv2.h" // ATmega2560 env:megaatmega2560
  199. #elif MB(MEGATRONICS)
  200. #include "mega/pins_MEGATRONICS.h" // ATmega2560 env:megaatmega2560
  201. #elif MB(MEGATRONICS_2)
  202. #include "mega/pins_MEGATRONICS_2.h" // ATmega2560 env:megaatmega2560
  203. #elif MB(MEGATRONICS_3) || MB(MEGATRONICS_31) || MB(MEGATRONICS_32)
  204. #include "mega/pins_MEGATRONICS_3.h" // ATmega2560 env:megaatmega2560
  205. #elif MB(ELEFU_3)
  206. #include "mega/pins_ELEFU_3.h" // ATmega2560 env:megaatmega2560
  207. #elif MB(LEAPFROG)
  208. #include "mega/pins_LEAPFROG.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  209. #elif MB(MEGACONTROLLER)
  210. #include "mega/pins_MEGACONTROLLER.h" // ATmega2560 env:megaatmega2560
  211. #elif MB(GT2560_REV_A)
  212. #include "mega/pins_GT2560_REV_A.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  213. #elif MB(GT2560_REV_A_PLUS)
  214. #include "mega/pins_GT2560_REV_A_PLUS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  215. #elif MB(GT2560_V3)
  216. #include "mega/pins_GT2560_V3.h" // ATmega2560 env:megaatmega2560
  217. #elif MB(GT2560_V3_MC2)
  218. #include "mega/pins_GT2560_V3_MC2.h" // ATmega2560 env:megaatmega2560
  219. #elif MB(GT2560_V3_A20)
  220. #include "mega/pins_GT2560_V3_A20.h" // ATmega2560 env:megaatmega2560
  221. #elif MB(EINSTART_S)
  222. #include "mega/pins_EINSTART-S.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  223. #elif MB(WANHAO_ONEPLUS)
  224. #include "mega/pins_WANHAO_ONEPLUS.h" // ATmega2560 env:megaatmega2560
  225. //
  226. // ATmega1281, ATmega2561
  227. //
  228. #elif MB(MINITRONICS)
  229. #include "mega/pins_MINITRONICS.h" // ATmega1281 env:megaatmega1280
  230. #elif MB(SILVER_GATE)
  231. #include "mega/pins_SILVER_GATE.h" // ATmega2561 env:megaatmega2560
  232. //
  233. // Sanguinololu and Derivatives - ATmega644P, ATmega1284P
  234. //
  235. #elif MB(SANGUINOLOLU_11)
  236. #include "sanguino/pins_SANGUINOLOLU_11.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  237. #elif MB(SANGUINOLOLU_12)
  238. #include "sanguino/pins_SANGUINOLOLU_12.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  239. #elif MB(MELZI)
  240. #include "sanguino/pins_MELZI.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  241. #elif MB(MELZI_MAKR3D)
  242. #include "sanguino/pins_MELZI_MAKR3D.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  243. #elif MB(MELZI_CREALITY)
  244. #include "sanguino/pins_MELZI_CREALITY.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  245. #elif MB(MELZI_MALYAN)
  246. #include "sanguino/pins_MELZI_MALYAN.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  247. #elif MB(MELZI_TRONXY)
  248. #include "sanguino/pins_MELZI_TRONXY.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  249. #elif MB(STB_11)
  250. #include "sanguino/pins_STB_11.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  251. #elif MB(AZTEEG_X1)
  252. #include "sanguino/pins_AZTEEG_X1.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  253. //
  254. // Other ATmega644P, ATmega644, ATmega1284P
  255. //
  256. #elif MB(GEN3_MONOLITHIC)
  257. #include "sanguino/pins_GEN3_MONOLITHIC.h" // ATmega644P env:sanguino_atmega644p
  258. #elif MB(GEN3_PLUS)
  259. #include "sanguino/pins_GEN3_PLUS.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  260. #elif MB(GEN6)
  261. #include "sanguino/pins_GEN6.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  262. #elif MB(GEN6_DELUXE)
  263. #include "sanguino/pins_GEN6_DELUXE.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  264. #elif MB(GEN7_CUSTOM)
  265. #include "sanguino/pins_GEN7_CUSTOM.h" // ATmega644P, ATmega644, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  266. #elif MB(GEN7_12)
  267. #include "sanguino/pins_GEN7_12.h" // ATmega644P, ATmega644, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  268. #elif MB(GEN7_13)
  269. #include "sanguino/pins_GEN7_13.h" // ATmega644P, ATmega644, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  270. #elif MB(GEN7_14)
  271. #include "sanguino/pins_GEN7_14.h" // ATmega644P, ATmega644, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  272. #elif MB(OMCA_A)
  273. #include "sanguino/pins_OMCA_A.h" // ATmega644 env:sanguino_atmega644p
  274. #elif MB(OMCA)
  275. #include "sanguino/pins_OMCA.h" // ATmega644P, ATmega644 env:sanguino_atmega644p
  276. #elif MB(ANET_10)
  277. #include "sanguino/pins_ANET_10.h" // ATmega1284P env:sanguino_atmega1284p
  278. #elif MB(SETHI)
  279. #include "sanguino/pins_SETHI.h" // ATmega644P, ATmega644, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  280. //
  281. // Teensyduino - AT90USB1286, AT90USB1286P
  282. //
  283. #elif MB(TEENSYLU)
  284. #include "teensy2/pins_TEENSYLU.h" // AT90USB1286, AT90USB1286P env:at90usb1286_cdc
  285. #elif MB(PRINTRBOARD)
  286. #include "teensy2/pins_PRINTRBOARD.h" // AT90USB1286 env:at90usb1286_dfu
  287. #elif MB(PRINTRBOARD_REVF)
  288. #include "teensy2/pins_PRINTRBOARD_REVF.h" // AT90USB1286 env:at90usb1286_dfu
  289. #elif MB(BRAINWAVE)
  290. #include "teensy2/pins_BRAINWAVE.h" // AT90USB646 env:at90usb1286_cdc
  291. #elif MB(BRAINWAVE_PRO)
  292. #include "teensy2/pins_BRAINWAVE_PRO.h" // AT90USB1286 env:at90usb1286_cdc
  293. #elif MB(SAV_MKI)
  294. #include "teensy2/pins_SAV_MKI.h" // AT90USB1286 env:at90usb1286_cdc
  295. #elif MB(TEENSY2)
  296. #include "teensy2/pins_TEENSY2.h" // AT90USB1286 env:teensy20
  297. #elif MB(5DPRINT)
  298. #include "teensy2/pins_5DPRINT.h" // AT90USB1286 env:at90usb1286_dfu
  299. //
  300. // LPC1768 ARM Cortex M3
  301. //
  302. #elif MB(RAMPS_14_RE_ARM_EFB)
  303. #include "lpc1768/pins_RAMPS_RE_ARM.h" // LPC1768 env:LPC1768
  304. #elif MB(RAMPS_14_RE_ARM_EEB)
  305. #include "lpc1768/pins_RAMPS_RE_ARM.h" // LPC1768 env:LPC1768
  306. #elif MB(RAMPS_14_RE_ARM_EFF)
  307. #include "lpc1768/pins_RAMPS_RE_ARM.h" // LPC1768 env:LPC1768
  308. #elif MB(RAMPS_14_RE_ARM_EEF)
  309. #include "lpc1768/pins_RAMPS_RE_ARM.h" // LPC1768 env:LPC1768
  310. #elif MB(RAMPS_14_RE_ARM_SF)
  311. #include "lpc1768/pins_RAMPS_RE_ARM.h" // LPC1768 env:LPC1768
  312. #elif MB(MKS_SBASE)
  313. #include "lpc1768/pins_MKS_SBASE.h" // LPC1768 env:LPC1768
  314. #elif MB(MKS_SGEN_L)
  315. #include "lpc1768/pins_MKS_SGEN_L.h" // LPC1768 env:LPC1768
  316. #elif MB(AZSMZ_MINI)
  317. #include "lpc1768/pins_AZSMZ_MINI.h" // LPC1768 env:LPC1768
  318. #elif MB(BIQU_BQ111_A4)
  319. #include "lpc1768/pins_BIQU_BQ111_A4.h" // LPC1768 env:LPC1768
  320. #elif MB(SELENA_COMPACT)
  321. #include "lpc1768/pins_SELENA_COMPACT.h" // LPC1768 env:LPC1768
  322. #elif MB(BIGTREE_SKR_V1_1)
  323. #include "lpc1768/pins_BIGTREE_SKR_V1.1.h" // LPC1768 env:LPC1768
  324. #elif MB(BIQU_B300_V1_0)
  325. #include "lpc1768/pins_BIQU_B300_V1.0.h" // LPC1768 env:LPC1768
  326. #elif MB(BIGTREE_SKR_V1_3)
  327. #include "lpc1768/pins_BIGTREE_SKR_V1.3.h" // LPC1768 env:LPC1768
  328. #elif MB(TH3D_EZBOARD)
  329. #include "lpc1768/pins_TH3D_EZBOARD.h" // LPC1768 env:LPC1768
  330. #elif MB(GMARSH_X6_REV1)
  331. #include "lpc1768/pins_GMARSH_X6_REV1.h" // LPC1768 env:LPC1768
  332. //
  333. // LPC1769 ARM Cortex M3
  334. //
  335. #elif MB(MKS_SGEN)
  336. #include "lpc1769/pins_MKS_SGEN.h" // LPC1769 env:LPC1769
  337. #elif MB(AZTEEG_X5_GT)
  338. #include "lpc1769/pins_AZTEEG_X5_GT.h" // LPC1769 env:LPC1769
  339. #elif MB(AZTEEG_X5_MINI)
  340. #include "lpc1769/pins_AZTEEG_X5_MINI.h" // LPC1769 env:LPC1769
  341. #elif MB(AZTEEG_X5_MINI_WIFI)
  342. #include "lpc1769/pins_AZTEEG_X5_MINI_WIFI.h" // LPC1769 env:LPC1769
  343. #elif MB(COHESION3D_REMIX)
  344. #include "lpc1769/pins_COHESION3D_REMIX.h" // LPC1769 env:LPC1769
  345. #elif MB(COHESION3D_MINI)
  346. #include "lpc1769/pins_COHESION3D_MINI.h" // LPC1769 env:LPC1769
  347. #elif MB(SMOOTHIEBOARD)
  348. #include "lpc1769/pins_SMOOTHIEBOARD.h" // LPC1769 env:LPC1769
  349. //
  350. // Due (ATSAM) boards
  351. //
  352. #elif MB(DUE3DOM)
  353. #include "sam/pins_DUE3DOM.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  354. #elif MB(DUE3DOM_MINI)
  355. #include "sam/pins_DUE3DOM_MINI.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  356. #elif MB(RADDS)
  357. #include "sam/pins_RADDS.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  358. #elif MB(RURAMPS4D_11)
  359. #include "sam/pins_RURAMPS4D_11.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  360. #elif MB(RURAMPS4D_13)
  361. #include "sam/pins_RURAMPS4D_13.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  362. #elif MB(RAMPS_FD_V1)
  363. #include "sam/pins_RAMPS_FD_V1.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  364. #elif MB(RAMPS_FD_V2)
  365. #include "sam/pins_RAMPS_FD_V2.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  366. #elif MB(RAMPS_SMART_EFB)
  367. #include "sam/pins_RAMPS_SMART.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  368. #elif MB(RAMPS_SMART_EEB)
  369. #include "sam/pins_RAMPS_SMART.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  370. #elif MB(RAMPS_SMART_EFF)
  371. #include "sam/pins_RAMPS_SMART.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  372. #elif MB(RAMPS_SMART_EEF)
  373. #include "sam/pins_RAMPS_SMART.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  374. #elif MB(RAMPS_SMART_SF)
  375. #include "sam/pins_RAMPS_SMART.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  376. #elif MB(RAMPS_DUO_EFB)
  377. #include "sam/pins_RAMPS_DUO.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  378. #elif MB(RAMPS_DUO_EEB)
  379. #include "sam/pins_RAMPS_DUO.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  380. #elif MB(RAMPS_DUO_EFF)
  381. #include "sam/pins_RAMPS_DUO.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  382. #elif MB(RAMPS_DUO_EEF)
  383. #include "sam/pins_RAMPS_DUO.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  384. #elif MB(RAMPS_DUO_SF)
  385. #include "sam/pins_RAMPS_DUO.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  386. #elif MB(RAMPS4DUE_EFB)
  387. #include "sam/pins_RAMPS4DUE.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  388. #elif MB(RAMPS4DUE_EEB)
  389. #include "sam/pins_RAMPS4DUE.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  390. #elif MB(RAMPS4DUE_EFF)
  391. #include "sam/pins_RAMPS4DUE.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  392. #elif MB(RAMPS4DUE_EEF)
  393. #include "sam/pins_RAMPS4DUE.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  394. #elif MB(RAMPS4DUE_SF)
  395. #include "sam/pins_RAMPS4DUE.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  396. #elif MB(ULTRATRONICS_PRO)
  397. #include "sam/pins_ULTRATRONICS_PRO.h" // SAM3X8E env:DUE env:DUE_debug
  398. #elif MB(ARCHIM1)
  399. #include "sam/pins_ARCHIM1.h" // SAM3X8E env:DUE env:DUE_debug
  400. #elif MB(ARCHIM2)
  401. #include "sam/pins_ARCHIM2.h" // SAM3X8E env:DUE env:DUE_debug
  402. #elif MB(ALLIGATOR)
  403. #include "sam/pins_ALLIGATOR_R2.h" // SAM3X8E env:DUE env:DUE_debug
  404. #elif MB(ADSK)
  405. #include "sam/pins_ADSK.h" // SAM3X8E env:DUE env:DUE_debug
  406. #elif MB(PRINTRBOARD_G2)
  407. #include "sam/pins_PRINTRBOARD_G2.h" // SAM3X8C env:DUE_USB
  408. //
  409. // STM32 ARM Cortex-M3
  410. //
  411. #elif MB(STM32F1R)
  412. #include "stm32/pins_STM32F1R.h" // STM32F1 env:STM32F1
  413. #elif MB(MALYAN_M200)
  414. #include "stm32/pins_MALYAN_M200.h" // STM32F1 env:malyanm200
  415. #elif MB(STM3R_MINI)
  416. #include "stm32/pins_STM3R_MINI.h" // STM32F1 env:STM32F1
  417. #elif MB(GTM32_PRO_VB)
  418. #include "stm32/pins_GTM32_PRO_VB.h" // STM32F1 env:STM32F1
  419. #elif MB(MORPHEUS)
  420. #include "stm32/pins_MORPHEUS.h" // STM32F1 env:STM32F1
  421. #elif MB(CHITU3D)
  422. #include "stm32/pins_CHITU3D.h" // STM32F1 env:STM32F1
  423. #elif MB(MKS_ROBIN)
  424. #include "stm32/pins_MKS_ROBIN.h" // STM32F1 env:mks_robin
  425. #elif MB(MKS_ROBIN_MINI)
  426. #include "stm32/pins_MKS_ROBIN_MINI.h" // STM32F1 env:mks_robin_mini
  427. #elif MB(MKS_ROBIN_NANO)
  428. #include "stm32/pins_MKS_ROBIN_NANO.h" // STM32F1 env:mks_robin_nano
  429. #elif MB(BIGTREE_SKR_MINI_V1_1)
  430. #include "stm32/pins_BIGTREE_SKR_MINI_V1_1.h" // STM32F1 env:BIGTREE_SKR_MINI
  431. #elif MB(BIGTREE_SKR_MINI_E3)
  432. #include "stm32/pins_BIGTREE_SKR_MINI_E3.h" // STM32F1 env:BIGTREE_SKR_MINI
  433. #elif MB(BIGTREE_SKR_E3_DIP)
  434. #include "stm32/pins_BIGTREE_SKR_E3_DIP.h" // STM32F1 env:BIGTREE_SKR_MINI
  435. #elif MB(JGAURORA_A5S_A1)
  436. #include "stm32/pins_JGAURORA_A5S_A1.h" // STM32F1 env:JGAURORA_A5S_A1
  437. #elif MB(FYSETC_AIO_II)
  438. #include "stm32/pins_FYSETC_AIO_II.h" // STM32F1 env:fysetc_STM32F1
  439. #elif MB(FYSETC_CHEETAH)
  440. #include "stm32/pins_FYSETC_CHEETAH.h" // STM32F1 env:fysetc_STM32F1
  441. #elif MB(FYSETC_CHEETAH_V12)
  442. #include "stm32/pins_FYSETC_CHEETAH_V12.h" // STM32F1 env:fysetc_STM32F1
  443. #elif MB(LONGER3D_LK)
  444. #include "stm32/pins_LONGER3D_LK.h" // STM32F1 env:alfawise_U20
  445. //
  446. // ARM Cortex-M4F
  447. //
  448. #elif MB(TEENSY31_32)
  449. #include "teensy3/pins_TEENSY31_32.h" // TEENSY31_32 env:teensy31
  450. #elif MB(TEENSY35_36)
  451. #include "teensy3/pins_TEENSY35_36.h" // TEENSY35_36 env:teensy35
  452. //
  453. // STM32 ARM Cortex-M4F
  454. //
  455. #elif MB(BEAST)
  456. #include "stm32/pins_BEAST.h" // STM32F4 env:STM32F4
  457. #elif MB(STM32F4)
  458. #include "stm32/pins_STM32F4.h" // STM32F4 env:STM32F4
  459. #elif MB(ARMED)
  460. #include "stm32/pins_ARMED.h" // STM32F4 env:ARMED
  461. #elif MB(RUMBA32)
  462. #include "stm32/pins_RUMBA32.h" // STM32F4 env:RUMBA32
  463. #elif MB(BLACK_STM32F407VE)
  464. #include "stm32/pins_BLACK_STM32F407VE.h" // STM32F4 env:black_stm32f407ve
  465. #elif MB(STEVAL)
  466. #include "stm32/pins_STEVAL.h" // STM32F4 env:STM32F4
  467. #elif MB(BIGTREE_SKR_PRO_V1_1)
  468. #include "stm32/pins_BIGTREE_SKR_PRO_V1.1.h" // STM32F4 env:BIGTREE_SKR_PRO
  469. //
  470. // ARM Cortex M7
  471. //
  472. #elif MB(THE_BORG)
  473. #include "stm32/pins_THE_BORG.h" // STM32F7 env:STM32F7
  474. #elif MB(REMRAM_V1)
  475. #include "stm32/pins_REMRAM_V1.h" // STM32F7 env:STM32F7xx
  476. //
  477. // Espressif ESP32
  478. //
  479. #elif MB(ESP32)
  480. #include "esp32/pins_ESP32.h" // ESP32 env:esp32
  481. //
  482. // Adafruit Grand Central M4 (SAMD51 ARM Cortex-M4)
  483. //
  484. #elif MB(AGCM4_RURAMPS4D_13)
  485. #include "samd/pins_AGCM4_RURAMPS4D_13.h" // SAMD51 env:adafruit_grandcentral_m4
  486. //
  487. // Linux Native Debug board
  488. //
  489. #elif MB(LINUX_RAMPS)
  490. #include "linux/pins_RAMPS_LINUX.h" // Linux env:linux_native
  491. #else
  492. #error "Unknown MOTHERBOARD value set in Configuration.h"
  493. #endif
  494. // Define certain undefined pins
  495. #ifndef X_MS1_PIN
  496. #define X_MS1_PIN -1
  497. #endif
  498. #ifndef X_MS2_PIN
  499. #define X_MS2_PIN -1
  500. #endif
  501. #ifndef X_MS3_PIN
  502. #define X_MS3_PIN -1
  503. #endif
  504. #ifndef Y_MS1_PIN
  505. #define Y_MS1_PIN -1
  506. #endif
  507. #ifndef Y_MS2_PIN
  508. #define Y_MS2_PIN -1
  509. #endif
  510. #ifndef Y_MS3_PIN
  511. #define Y_MS3_PIN -1
  512. #endif
  513. #ifndef Z_MS1_PIN
  514. #define Z_MS1_PIN -1
  515. #endif
  516. #ifndef Z_MS2_PIN
  517. #define Z_MS2_PIN -1
  518. #endif
  519. #ifndef Z_MS3_PIN
  520. #define Z_MS3_PIN -1
  521. #endif
  522. #ifndef E0_MS1_PIN
  523. #define E0_MS1_PIN -1
  524. #endif
  525. #ifndef E0_MS2_PIN
  526. #define E0_MS2_PIN -1
  527. #endif
  528. #ifndef E0_MS3_PIN
  529. #define E0_MS3_PIN -1
  530. #endif
  531. #ifndef E1_MS1_PIN
  532. #define E1_MS1_PIN -1
  533. #endif
  534. #ifndef E1_MS2_PIN
  535. #define E1_MS2_PIN -1
  536. #endif
  537. #ifndef E1_MS3_PIN
  538. #define E1_MS3_PIN -1
  539. #endif
  540. #ifndef E2_MS1_PIN
  541. #define E2_MS1_PIN -1
  542. #endif
  543. #ifndef E2_MS2_PIN
  544. #define E2_MS2_PIN -1
  545. #endif
  546. #ifndef E2_MS3_PIN
  547. #define E2_MS3_PIN -1
  548. #endif
  549. #ifndef E3_MS1_PIN
  550. #define E3_MS1_PIN -1
  551. #endif
  552. #ifndef E3_MS2_PIN
  553. #define E3_MS2_PIN -1
  554. #endif
  555. #ifndef E3_MS3_PIN
  556. #define E3_MS3_PIN -1
  557. #endif
  558. #ifndef E4_MS1_PIN
  559. #define E4_MS1_PIN -1
  560. #endif
  561. #ifndef E4_MS2_PIN
  562. #define E4_MS2_PIN -1
  563. #endif
  564. #ifndef E4_MS3_PIN
  565. #define E4_MS3_PIN -1
  566. #endif
  567. #ifndef E5_MS1_PIN
  568. #define E5_MS1_PIN -1
  569. #endif
  570. #ifndef E5_MS2_PIN
  571. #define E5_MS2_PIN -1
  572. #endif
  573. #ifndef E5_MS3_PIN
  574. #define E5_MS3_PIN -1
  575. #endif
  576. #ifndef E0_STEP_PIN
  577. #define E0_STEP_PIN -1
  578. #endif
  579. #ifndef E0_DIR_PIN
  580. #define E0_DIR_PIN -1
  581. #endif
  582. #ifndef E0_ENABLE_PIN
  583. #define E0_ENABLE_PIN -1
  584. #endif
  585. #ifndef E1_STEP_PIN
  586. #define E1_STEP_PIN -1
  587. #endif
  588. #ifndef E1_DIR_PIN
  589. #define E1_DIR_PIN -1
  590. #endif
  591. #ifndef E1_ENABLE_PIN
  592. #define E1_ENABLE_PIN -1
  593. #endif
  594. #ifndef E2_STEP_PIN
  595. #define E2_STEP_PIN -1
  596. #endif
  597. #ifndef E2_DIR_PIN
  598. #define E2_DIR_PIN -1
  599. #endif
  600. #ifndef E2_ENABLE_PIN
  601. #define E2_ENABLE_PIN -1
  602. #endif
  603. #ifndef E3_STEP_PIN
  604. #define E3_STEP_PIN -1
  605. #endif
  606. #ifndef E3_DIR_PIN
  607. #define E3_DIR_PIN -1
  608. #endif
  609. #ifndef E3_ENABLE_PIN
  610. #define E3_ENABLE_PIN -1
  611. #endif
  612. #ifndef E4_STEP_PIN
  613. #define E4_STEP_PIN -1
  614. #endif
  615. #ifndef E4_DIR_PIN
  616. #define E4_DIR_PIN -1
  617. #endif
  618. #ifndef E4_ENABLE_PIN
  619. #define E4_ENABLE_PIN -1
  620. #endif
  621. #ifndef E5_STEP_PIN
  622. #define E5_STEP_PIN -1
  623. #endif
  624. #ifndef E5_DIR_PIN
  625. #define E5_DIR_PIN -1
  626. #endif
  627. #ifndef E5_ENABLE_PIN
  628. #define E5_ENABLE_PIN -1
  629. #endif
  630. #ifndef X_CS_PIN
  631. #define X_CS_PIN -1
  632. #endif
  633. #ifndef Y_CS_PIN
  634. #define Y_CS_PIN -1
  635. #endif
  636. #ifndef Z_CS_PIN
  637. #define Z_CS_PIN -1
  638. #endif
  639. #ifndef E0_CS_PIN
  640. #define E0_CS_PIN -1
  641. #endif
  642. #ifndef E1_CS_PIN
  643. #define E1_CS_PIN -1
  644. #endif
  645. #ifndef E2_CS_PIN
  646. #define E2_CS_PIN -1
  647. #endif
  648. #ifndef E3_CS_PIN
  649. #define E3_CS_PIN -1
  650. #endif
  651. #ifndef E4_CS_PIN
  652. #define E4_CS_PIN -1
  653. #endif
  654. #ifndef E5_CS_PIN
  655. #define E5_CS_PIN -1
  656. #endif
  657. #ifndef FAN_PIN
  658. #define FAN_PIN -1
  659. #endif
  660. #define FAN0_PIN FAN_PIN
  661. #ifndef FAN1_PIN
  662. #define FAN1_PIN -1
  663. #endif
  664. #ifndef FAN2_PIN
  665. #define FAN2_PIN -1
  666. #endif
  667. #ifndef CONTROLLER_FAN_PIN
  668. #define CONTROLLER_FAN_PIN -1
  669. #endif
  670. #ifndef FANMUX0_PIN
  671. #define FANMUX0_PIN -1
  672. #endif
  673. #ifndef FANMUX1_PIN
  674. #define FANMUX1_PIN -1
  675. #endif
  676. #ifndef FANMUX2_PIN
  677. #define FANMUX2_PIN -1
  678. #endif
  679. #ifndef HEATER_0_PIN
  680. #define HEATER_0_PIN -1
  681. #endif
  682. #ifndef HEATER_1_PIN
  683. #define HEATER_1_PIN -1
  684. #endif
  685. #ifndef HEATER_2_PIN
  686. #define HEATER_2_PIN -1
  687. #endif
  688. #ifndef HEATER_3_PIN
  689. #define HEATER_3_PIN -1
  690. #endif
  691. #ifndef HEATER_4_PIN
  692. #define HEATER_4_PIN -1
  693. #endif
  694. #ifndef HEATER_5_PIN
  695. #define HEATER_5_PIN -1
  696. #endif
  697. #ifndef HEATER_BED_PIN
  698. #define HEATER_BED_PIN -1
  699. #endif
  700. #ifndef TEMP_0_PIN
  701. #define TEMP_0_PIN -1
  702. #endif
  703. #ifndef TEMP_1_PIN
  704. #define TEMP_1_PIN -1
  705. #endif
  706. #ifndef TEMP_2_PIN
  707. #define TEMP_2_PIN -1
  708. #endif
  709. #ifndef TEMP_3_PIN
  710. #define TEMP_3_PIN -1
  711. #endif
  712. #ifndef TEMP_4_PIN
  713. #define TEMP_4_PIN -1
  714. #endif
  715. #ifndef TEMP_5_PIN
  716. #define TEMP_5_PIN -1
  717. #endif
  718. #ifndef TEMP_BED_PIN
  719. #define TEMP_BED_PIN -1
  720. #endif
  721. #ifndef SD_DETECT_PIN
  722. #define SD_DETECT_PIN -1
  723. #endif
  724. #ifndef SDPOWER
  725. #define SDPOWER -1
  726. #endif
  727. #ifndef SDSS
  728. #define SDSS -1
  729. #endif
  730. #ifndef LED_PIN
  731. #define LED_PIN -1
  732. #endif
  733. #if DISABLED(PSU_CONTROL) || !defined(PS_ON_PIN)
  734. #undef PS_ON_PIN
  735. #define PS_ON_PIN -1
  736. #endif
  737. #ifndef KILL_PIN
  738. #define KILL_PIN -1
  739. #endif
  740. #ifndef SUICIDE_PIN
  741. #define SUICIDE_PIN -1
  742. #endif
  743. #ifndef NUM_SERVO_PLUGS
  744. #define NUM_SERVO_PLUGS 4
  745. #endif
  746. //
  747. // Assign auto fan pins if needed
  748. //
  749. #ifndef E0_AUTO_FAN_PIN
  750. #ifdef ORIG_E0_AUTO_FAN_PIN
  751. #define E0_AUTO_FAN_PIN ORIG_E0_AUTO_FAN_PIN
  752. #else
  753. #define E0_AUTO_FAN_PIN -1
  754. #endif
  755. #endif
  756. #ifndef E1_AUTO_FAN_PIN
  757. #ifdef ORIG_E1_AUTO_FAN_PIN
  758. #define E1_AUTO_FAN_PIN ORIG_E1_AUTO_FAN_PIN
  759. #else
  760. #define E1_AUTO_FAN_PIN -1
  761. #endif
  762. #endif
  763. #ifndef E2_AUTO_FAN_PIN
  764. #ifdef ORIG_E2_AUTO_FAN_PIN
  765. #define E2_AUTO_FAN_PIN ORIG_E2_AUTO_FAN_PIN
  766. #else
  767. #define E2_AUTO_FAN_PIN -1
  768. #endif
  769. #endif
  770. #ifndef E3_AUTO_FAN_PIN
  771. #ifdef ORIG_E3_AUTO_FAN_PIN
  772. #define E3_AUTO_FAN_PIN ORIG_E3_AUTO_FAN_PIN
  773. #else
  774. #define E3_AUTO_FAN_PIN -1
  775. #endif
  776. #endif
  777. #ifndef E4_AUTO_FAN_PIN
  778. #ifdef ORIG_E4_AUTO_FAN_PIN
  779. #define E4_AUTO_FAN_PIN ORIG_E4_AUTO_FAN_PIN
  780. #else
  781. #define E4_AUTO_FAN_PIN -1
  782. #endif
  783. #endif
  784. #ifndef E5_AUTO_FAN_PIN
  785. #ifdef ORIG_E5_AUTO_FAN_PIN
  786. #define E5_AUTO_FAN_PIN ORIG_E5_AUTO_FAN_PIN
  787. #else
  788. #define E5_AUTO_FAN_PIN -1
  789. #endif
  790. #endif
  791. #ifndef CHAMBER_AUTO_FAN_PIN
  792. #ifdef ORIG_CHAMBER_AUTO_FAN_PIN
  793. #define CHAMBER_AUTO_FAN_PIN ORIG_CHAMBER_AUTO_FAN_PIN
  794. #else
  795. #define CHAMBER_AUTO_FAN_PIN -1
  796. #endif
  797. #endif
  798. //
  799. // Assign endstop pins for boards with only 3 connectors
  800. //
  801. #ifdef X_STOP_PIN
  802. #if X_HOME_DIR < 0
  803. #define X_MIN_PIN X_STOP_PIN
  804. #define X_MAX_PIN -1
  805. #else
  806. #define X_MIN_PIN -1
  807. #define X_MAX_PIN X_STOP_PIN
  808. #endif
  809. #elif X_HOME_DIR < 0
  810. #define X_STOP_PIN X_MIN_PIN
  811. #else
  812. #define X_STOP_PIN X_MAX_PIN
  813. #endif
  814. #ifdef Y_STOP_PIN
  815. #if Y_HOME_DIR < 0
  816. #define Y_MIN_PIN Y_STOP_PIN
  817. #define Y_MAX_PIN -1
  818. #else
  819. #define Y_MIN_PIN -1
  820. #define Y_MAX_PIN Y_STOP_PIN
  821. #endif
  822. #elif Y_HOME_DIR < 0
  823. #define Y_STOP_PIN Y_MIN_PIN
  824. #else
  825. #define Y_STOP_PIN Y_MAX_PIN
  826. #endif
  827. #ifdef Z_STOP_PIN
  828. #if Z_HOME_DIR < 0
  829. #define Z_MIN_PIN Z_STOP_PIN
  830. #define Z_MAX_PIN -1
  831. #else
  832. #define Z_MIN_PIN -1
  833. #define Z_MAX_PIN Z_STOP_PIN
  834. #endif
  835. #elif Z_HOME_DIR < 0
  836. #define Z_STOP_PIN Z_MIN_PIN
  837. #else
  838. #define Z_STOP_PIN Z_MAX_PIN
  839. #endif
  840. //
  841. // Disable unused endstop / probe pins
  842. //
  843. #if !USES_Z_MIN_PROBE_ENDSTOP
  844. #undef Z_MIN_PROBE_PIN
  845. #define Z_MIN_PROBE_PIN -1
  846. #endif
  847. #if DISABLED(USE_XMAX_PLUG)
  848. #undef X_MAX_PIN
  849. #define X_MAX_PIN -1
  850. #endif
  851. #if DISABLED(USE_YMAX_PLUG)
  852. #undef Y_MAX_PIN
  853. #define Y_MAX_PIN -1
  854. #endif
  855. #if DISABLED(USE_ZMAX_PLUG)
  856. #undef Z_MAX_PIN
  857. #define Z_MAX_PIN -1
  858. #endif
  859. #if DISABLED(USE_XMIN_PLUG)
  860. #undef X_MIN_PIN
  861. #define X_MIN_PIN -1
  862. #endif
  863. #if DISABLED(USE_YMIN_PLUG)
  864. #undef Y_MIN_PIN
  865. #define Y_MIN_PIN -1
  866. #endif
  867. #if DISABLED(USE_ZMIN_PLUG)
  868. #undef Z_MIN_PIN
  869. #define Z_MIN_PIN -1
  870. #endif
  871. #ifndef LCD_PINS_D4
  872. #define LCD_PINS_D4 -1
  873. #endif
  874. #if HAS_CHARACTER_LCD
  875. #ifndef LCD_PINS_D5
  876. #define LCD_PINS_D5 -1
  877. #endif
  878. #ifndef LCD_PINS_D6
  879. #define LCD_PINS_D6 -1
  880. #endif
  881. #ifndef LCD_PINS_D7
  882. #define LCD_PINS_D7 -1
  883. #endif
  884. #else
  885. #undef LCD_PINS_D5
  886. #undef LCD_PINS_D6
  887. #undef LCD_PINS_D7
  888. #endif
  889. /**
  890. * Auto-Assignment for Dual X, Dual Y, Multi-Z Steppers
  891. *
  892. * By default X2 is assigned to the next open E plug
  893. * on the board, then in order, Y2, Z2, Z3. These can be
  894. * overridden in Configuration.h or Configuration_adv.h.
  895. */
  896. #define __EPIN(p,q) E##p##_##q##_PIN
  897. #define _EPIN(p,q) __EPIN(p,q)
  898. // The X2 axis, if any, should be the next open extruder port
  899. #if EITHER(DUAL_X_CARRIAGE, X_DUAL_STEPPER_DRIVERS)
  900. #ifndef X2_STEP_PIN
  901. #define X2_STEP_PIN _EPIN(E_STEPPERS, STEP)
  902. #define X2_DIR_PIN _EPIN(E_STEPPERS, DIR)
  903. #define X2_ENABLE_PIN _EPIN(E_STEPPERS, ENABLE)
  904. #if E_STEPPERS >= MAX_EXTRUDERS || !PIN_EXISTS(X2_STEP)
  905. #error "No E stepper plug left for X2!"
  906. #endif
  907. #endif
  908. #ifndef X2_CS_PIN
  909. #define X2_CS_PIN _EPIN(E_STEPPERS, CS)
  910. #endif
  911. #ifndef X2_MS1_PIN
  912. #define X2_MS1_PIN _EPIN(E_STEPPERS, MS1)
  913. #endif
  914. #ifndef X2_MS2_PIN
  915. #define X2_MS2_PIN _EPIN(E_STEPPERS, MS2)
  916. #endif
  917. #ifndef X2_MS3_PIN
  918. #define X2_MS3_PIN _EPIN(E_STEPPERS, MS3)
  919. #endif
  920. #if AXIS_DRIVER_TYPE_X2(TMC2208) || AXIS_DRIVER_TYPE_X2(TMC2209)
  921. #ifndef X2_SERIAL_TX_PIN
  922. #define X2_SERIAL_TX_PIN _EPIN(E_STEPPERS, SERIAL_TX)
  923. #endif
  924. #ifndef X2_SERIAL_RX_PIN
  925. #define X2_SERIAL_RX_PIN _EPIN(E_STEPPERS, SERIAL_RX)
  926. #endif
  927. #endif
  928. #define Y2_E_INDEX INCREMENT(E_STEPPERS)
  929. #else
  930. #define Y2_E_INDEX E_STEPPERS
  931. #endif
  932. // The Y2 axis, if any, should be the next open extruder port
  933. #if ENABLED(Y_DUAL_STEPPER_DRIVERS)
  934. #ifndef Y2_STEP_PIN
  935. #define Y2_STEP_PIN _EPIN(Y2_E_INDEX, STEP)
  936. #define Y2_DIR_PIN _EPIN(Y2_E_INDEX, DIR)
  937. #define Y2_ENABLE_PIN _EPIN(Y2_E_INDEX, ENABLE)
  938. #if Y2_E_INDEX >= MAX_EXTRUDERS || !PIN_EXISTS(Y2_STEP)
  939. #error "No E stepper plug left for Y2!"
  940. #endif
  941. #endif
  942. #ifndef Y2_CS_PIN
  943. #define Y2_CS_PIN _EPIN(Y2_E_INDEX, CS)
  944. #endif
  945. #ifndef Y2_MS1_PIN
  946. #define Y2_MS1_PIN _EPIN(Y2_E_INDEX, MS1)
  947. #endif
  948. #ifndef Y2_MS2_PIN
  949. #define Y2_MS2_PIN _EPIN(Y2_E_INDEX, MS2)
  950. #endif
  951. #ifndef Y2_MS3_PIN
  952. #define Y2_MS3_PIN _EPIN(Y2_E_INDEX, MS3)
  953. #endif
  954. #if AXIS_DRIVER_TYPE_Y2(TMC2208) || AXIS_DRIVER_TYPE_Y2(TMC2209)
  955. #ifndef Y2_SERIAL_TX_PIN
  956. #define Y2_SERIAL_TX_PIN _EPIN(Y2_E_INDEX, SERIAL_TX)
  957. #endif
  958. #ifndef Y2_SERIAL_RX_PIN
  959. #define Y2_SERIAL_RX_PIN _EPIN(Y2_E_INDEX, SERIAL_RX)
  960. #endif
  961. #endif
  962. #define Z2_E_INDEX INCREMENT(Y2_E_INDEX)
  963. #else
  964. #define Z2_E_INDEX Y2_E_INDEX
  965. #endif
  966. // The Z2 axis, if any, should be the next open extruder port
  967. #if Z_MULTI_STEPPER_DRIVERS
  968. #ifndef Z2_STEP_PIN
  969. #define Z2_STEP_PIN _EPIN(Z2_E_INDEX, STEP)
  970. #define Z2_DIR_PIN _EPIN(Z2_E_INDEX, DIR)
  971. #define Z2_ENABLE_PIN _EPIN(Z2_E_INDEX, ENABLE)
  972. #if Z2_E_INDEX >= MAX_EXTRUDERS || !PIN_EXISTS(Z2_STEP)
  973. #error "No E stepper plug left for Z2!"
  974. #endif
  975. #endif
  976. #ifndef Z2_CS_PIN
  977. #define Z2_CS_PIN _EPIN(Z2_E_INDEX, CS)
  978. #endif
  979. #ifndef Z2_MS1_PIN
  980. #define Z2_MS1_PIN _EPIN(Z2_E_INDEX, MS1)
  981. #endif
  982. #ifndef Z2_MS2_PIN
  983. #define Z2_MS2_PIN _EPIN(Z2_E_INDEX, MS2)
  984. #endif
  985. #ifndef Z2_MS3_PIN
  986. #define Z2_MS3_PIN _EPIN(Z2_E_INDEX, MS3)
  987. #endif
  988. #if AXIS_DRIVER_TYPE_Z2(TMC2208) || AXIS_DRIVER_TYPE_Z2(TMC2209)
  989. #ifndef Z2_SERIAL_TX_PIN
  990. #define Z2_SERIAL_TX_PIN _EPIN(Z2_E_INDEX, SERIAL_TX)
  991. #endif
  992. #ifndef Z2_SERIAL_RX_PIN
  993. #define Z2_SERIAL_RX_PIN _EPIN(Z2_E_INDEX, SERIAL_RX)
  994. #endif
  995. #endif
  996. #define Z3_E_INDEX INCREMENT(Z2_E_INDEX)
  997. #else
  998. #define Z3_E_INDEX Z2_E_INDEX
  999. #endif
  1000. #if ENABLED(Z_TRIPLE_STEPPER_DRIVERS)
  1001. #ifndef Z3_STEP_PIN
  1002. #define Z3_STEP_PIN _EPIN(Z3_E_INDEX, STEP)
  1003. #define Z3_DIR_PIN _EPIN(Z3_E_INDEX, DIR)
  1004. #define Z3_ENABLE_PIN _EPIN(Z3_E_INDEX, ENABLE)
  1005. #if Z3_E_INDEX >= MAX_EXTRUDERS || !PIN_EXISTS(Z3_STEP)
  1006. #error "No E stepper plug left for Z3!"
  1007. #endif
  1008. #endif
  1009. #ifndef Z3_CS_PIN
  1010. #define Z3_CS_PIN _EPIN(Z3_E_INDEX, CS)
  1011. #endif
  1012. #ifndef Z3_MS1_PIN
  1013. #define Z3_MS1_PIN _EPIN(Z3_E_INDEX, MS1)
  1014. #endif
  1015. #ifndef Z3_MS2_PIN
  1016. #define Z3_MS2_PIN _EPIN(Z3_E_INDEX, MS2)
  1017. #endif
  1018. #ifndef Z3_MS3_PIN
  1019. #define Z3_MS3_PIN _EPIN(Z3_E_INDEX, MS3)
  1020. #endif
  1021. #if AXIS_DRIVER_TYPE_Z3(TMC2208) || AXIS_DRIVER_TYPE_Z3(TMC2209)
  1022. #ifndef Z3_SERIAL_TX_PIN
  1023. #define Z3_SERIAL_TX_PIN _EPIN(Z3_E_INDEX, SERIAL_TX)
  1024. #endif
  1025. #ifndef Z3_SERIAL_RX_PIN
  1026. #define Z3_SERIAL_RX_PIN _EPIN(Z3_E_INDEX, SERIAL_RX)
  1027. #endif
  1028. #endif
  1029. #endif
  1030. #undef HAS_FREE_AUX2_PINS