My Marlin configs for Fabrikator Mini and CTC i3 Pro B
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

sensitive_pins.h 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558
  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. // Prepare a list of protected pins for M42/M43
  25. //
  26. #if PIN_EXISTS(X_MIN)
  27. #define _X_MIN X_MIN_PIN,
  28. #else
  29. #define _X_MIN
  30. #endif
  31. #if PIN_EXISTS(X_MAX)
  32. #define _X_MAX X_MAX_PIN,
  33. #else
  34. #define _X_MAX
  35. #endif
  36. #if PIN_EXISTS(X_CS) && AXIS_HAS_SPI(X)
  37. #define _X_CS X_CS_PIN,
  38. #else
  39. #define _X_CS
  40. #endif
  41. #if PIN_EXISTS(X_MS1)
  42. #define _X_MS1 X_MS1_PIN,
  43. #else
  44. #define _X_MS1
  45. #endif
  46. #if PIN_EXISTS(X_MS2)
  47. #define _X_MS2 X_MS2_PIN,
  48. #else
  49. #define _X_MS2
  50. #endif
  51. #if PIN_EXISTS(X_MS3)
  52. #define _X_MS3 X_MS3_PIN,
  53. #else
  54. #define _X_MS3
  55. #endif
  56. #define _X_PINS X_STEP_PIN, X_DIR_PIN, X_ENABLE_PIN, _X_MIN _X_MAX _X_MS1 _X_MS2 _X_MS3 _X_CS
  57. #if PIN_EXISTS(Y_MIN)
  58. #define _Y_MIN Y_MIN_PIN,
  59. #else
  60. #define _Y_MIN
  61. #endif
  62. #if PIN_EXISTS(Y_MAX)
  63. #define _Y_MAX Y_MAX_PIN,
  64. #else
  65. #define _Y_MAX
  66. #endif
  67. #if PIN_EXISTS(Y_CS) && AXIS_HAS_SPI(Y)
  68. #define _Y_CS Y_CS_PIN,
  69. #else
  70. #define _Y_CS
  71. #endif
  72. #if PIN_EXISTS(Y_MS1)
  73. #define _Y_MS1 Y_MS1_PIN,
  74. #else
  75. #define _Y_MS1
  76. #endif
  77. #if PIN_EXISTS(Y_MS2)
  78. #define _Y_MS2 Y_MS2_PIN,
  79. #else
  80. #define _Y_MS2
  81. #endif
  82. #if PIN_EXISTS(Y_MS3)
  83. #define _Y_MS3 Y_MS3_PIN,
  84. #else
  85. #define _Y_MS3
  86. #endif
  87. #define _Y_PINS Y_STEP_PIN, Y_DIR_PIN, Y_ENABLE_PIN, _Y_MIN _Y_MAX _Y_MS1 _Y_MS2 _Y_MS3 _Y_CS
  88. #if PIN_EXISTS(Z_MIN)
  89. #define _Z_MIN Z_MIN_PIN,
  90. #else
  91. #define _Z_MIN
  92. #endif
  93. #if PIN_EXISTS(Z_MAX)
  94. #define _Z_MAX Z_MAX_PIN,
  95. #else
  96. #define _Z_MAX
  97. #endif
  98. #if PIN_EXISTS(Z_CS) && AXIS_HAS_SPI(Z)
  99. #define _Z_CS Z_CS_PIN,
  100. #else
  101. #define _Z_CS
  102. #endif
  103. #if PIN_EXISTS(Z_MS1)
  104. #define _Z_MS1 Z_MS1_PIN,
  105. #else
  106. #define _Z_MS1
  107. #endif
  108. #if PIN_EXISTS(Z_MS2)
  109. #define _Z_MS2 Z_MS2_PIN,
  110. #else
  111. #define _Z_MS2
  112. #endif
  113. #if PIN_EXISTS(Z_MS3)
  114. #define _Z_MS3 Z_MS3_PIN,
  115. #else
  116. #define _Z_MS3
  117. #endif
  118. #define _Z_PINS Z_STEP_PIN, Z_DIR_PIN, Z_ENABLE_PIN, _Z_MIN _Z_MAX _Z_MS1 _Z_MS2 _Z_MS3 _Z_CS
  119. //
  120. // Extruder Chip Select, Digital Micro-steps
  121. //
  122. // Mixing stepper, Switching stepper, or regular stepper
  123. #define E_NEEDED(N) (ENABLED(MIXING_EXTRUDER) && MIXING_STEPPERS > N) \
  124. || (ENABLED(SWITCHING_EXTRUDER) && E_STEPPERS > N) \
  125. || (NONE(SWITCHING_EXTRUDER, MIXING_EXTRUDER) && EXTRUDERS > N)
  126. #define _E0_CS
  127. #define _E0_MS1
  128. #define _E0_MS2
  129. #define _E0_MS3
  130. #if E_NEEDED(0)
  131. #if PIN_EXISTS(E0_CS) && AXIS_HAS_SPI(E0)
  132. #undef _E0_CS
  133. #define _E0_CS E0_CS_PIN,
  134. #endif
  135. #if PIN_EXISTS(E0_MS1)
  136. #undef _E0_MS1
  137. #define _E0_MS1 E0_MS1_PIN,
  138. #endif
  139. #if PIN_EXISTS(E0_MS2)
  140. #undef _E0_MS2
  141. #define _E0_MS2 E0_MS2_PIN,
  142. #endif
  143. #if PIN_EXISTS(E0_MS3)
  144. #undef _E0_MS3
  145. #define _E0_MS3 E0_MS3_PIN,
  146. #endif
  147. #endif
  148. #define _E1_CS
  149. #define _E1_MS1
  150. #define _E1_MS2
  151. #define _E1_MS3
  152. #if E_NEEDED(1)
  153. #if PIN_EXISTS(E1_CS) && AXIS_HAS_SPI(E1)
  154. #undef _E1_CS
  155. #define _E1_CS E1_CS_PIN,
  156. #endif
  157. #if PIN_EXISTS(E1_MS1)
  158. #undef _E1_MS1
  159. #define _E1_MS1 E1_MS1_PIN,
  160. #endif
  161. #if PIN_EXISTS(E1_MS2)
  162. #undef _E1_MS2
  163. #define _E1_MS2 E1_MS2_PIN,
  164. #endif
  165. #if PIN_EXISTS(E1_MS3)
  166. #undef _E1_MS3
  167. #define _E1_MS3 E1_MS3_PIN,
  168. #endif
  169. #endif
  170. #define _E2_CS
  171. #define _E2_MS1
  172. #define _E2_MS2
  173. #define _E2_MS3
  174. #if E_NEEDED(2)
  175. #if PIN_EXISTS(E2_CS) && AXIS_HAS_SPI(E2)
  176. #undef _E2_CS
  177. #define _E2_CS E2_CS_PIN,
  178. #endif
  179. #if PIN_EXISTS(E2_MS1)
  180. #undef _E2_MS1
  181. #define _E2_MS1 E2_MS1_PIN,
  182. #endif
  183. #if PIN_EXISTS(E2_MS2)
  184. #undef _E2_MS2
  185. #define _E2_MS2 E2_MS2_PIN,
  186. #endif
  187. #if PIN_EXISTS(E2_MS3)
  188. #undef _E2_MS3
  189. #define _E2_MS3 E2_MS3_PIN,
  190. #endif
  191. #endif
  192. #define _E3_CS
  193. #define _E3_MS1
  194. #define _E3_MS2
  195. #define _E3_MS3
  196. #if E_NEEDED(3)
  197. #if PIN_EXISTS(E3_CS) && AXIS_HAS_SPI(E3)
  198. #undef _E3_CS
  199. #define _E3_CS E3_CS_PIN,
  200. #endif
  201. #if PIN_EXISTS(E3_MS1)
  202. #undef _E3_MS1
  203. #define _E3_MS1 E3_MS1_PIN,
  204. #endif
  205. #if PIN_EXISTS(E3_MS2)
  206. #undef _E3_MS2
  207. #define _E3_MS2 E3_MS2_PIN,
  208. #endif
  209. #if PIN_EXISTS(E3_MS3)
  210. #undef _E3_MS3
  211. #define _E3_MS3 E3_MS3_PIN,
  212. #endif
  213. #endif
  214. #define _E4_CS
  215. #define _E4_MS1
  216. #define _E4_MS2
  217. #define _E4_MS3
  218. #if E_NEEDED(4)
  219. #if PIN_EXISTS(E4_CS) && AXIS_HAS_SPI(E4)
  220. #undef _E4_CS
  221. #define _E4_CS E4_CS_PIN,
  222. #endif
  223. #if PIN_EXISTS(E4_MS1)
  224. #undef _E4_MS1
  225. #define _E4_MS1 E4_MS1_PIN,
  226. #endif
  227. #if PIN_EXISTS(E4_MS2)
  228. #undef _E4_MS2
  229. #define _E4_MS2 E4_MS2_PIN,
  230. #endif
  231. #if PIN_EXISTS(E4_MS3)
  232. #undef _E4_MS3
  233. #define _E4_MS3 E4_MS3_PIN,
  234. #endif
  235. #endif
  236. #define _E5_CS
  237. #define _E5_MS1
  238. #define _E5_MS2
  239. #define _E5_MS3
  240. #if E_NEEDED(5)
  241. #if PIN_EXISTS(E5_CS) && AXIS_HAS_SPI(E5)
  242. #undef _E5_CS
  243. #define _E5_CS E5_CS_PIN,
  244. #endif
  245. #if PIN_EXISTS(E5_MS1)
  246. #undef _E5_MS1
  247. #define _E5_MS1 E5_MS1_PIN,
  248. #endif
  249. #if PIN_EXISTS(E5_MS2)
  250. #undef _E5_MS2
  251. #define _E5_MS2 E5_MS2_PIN,
  252. #endif
  253. #if PIN_EXISTS(E5_MS3)
  254. #undef _E5_MS3
  255. #define _E5_MS3 E5_MS3_PIN,
  256. #endif
  257. #endif
  258. //
  259. // E Steppers
  260. //
  261. #define _E0_PINS
  262. #define _E1_PINS
  263. #define _E2_PINS
  264. #define _E3_PINS
  265. #define _E4_PINS
  266. #define _E5_PINS
  267. #if EXTRUDERS
  268. #undef _E0_PINS
  269. #define _E0_PINS E0_STEP_PIN, E0_DIR_PIN, E0_ENABLE_PIN, _E0_CS _E0_MS1 _E0_MS2 _E0_MS3
  270. #endif
  271. #if ENABLED(SWITCHING_EXTRUDER)
  272. // Tools 0 and 1 use E0
  273. #if EXTRUDERS > 2 // Tools 2 and 3 use E1
  274. #undef _E1_PINS
  275. #define _E1_PINS E1_STEP_PIN, E1_DIR_PIN, E1_ENABLE_PIN, _E1_CS _E1_MS1 _E1_MS2 _E1_MS3
  276. #if EXTRUDERS > 4 // Tools 4 and 5 use E2
  277. #undef _E2_PINS
  278. #define _E2_PINS E2_STEP_PIN, E2_DIR_PIN, E2_ENABLE_PIN, _E2_CS _E2_MS1 _E2_MS2 _E2_MS3
  279. #endif
  280. #endif
  281. #elif EXTRUDERS > 1 || ENABLED(MIXING_EXTRUDER)
  282. #undef _E1_PINS
  283. #define _E1_PINS E1_STEP_PIN, E1_DIR_PIN, E1_ENABLE_PIN, _E1_CS _E1_MS1 _E1_MS2 _E1_MS3
  284. #if EXTRUDERS > 2 || (ENABLED(MIXING_EXTRUDER) && MIXING_STEPPERS > 2)
  285. #undef _E2_PINS
  286. #define _E2_PINS E2_STEP_PIN, E2_DIR_PIN, E2_ENABLE_PIN, _E2_CS _E2_MS1 _E2_MS2 _E2_MS3
  287. #if EXTRUDERS > 3 || (ENABLED(MIXING_EXTRUDER) && MIXING_STEPPERS > 3)
  288. #undef _E3_PINS
  289. #define _E3_PINS E3_STEP_PIN, E3_DIR_PIN, E3_ENABLE_PIN, _E3_CS _E3_MS1 _E3_MS2 _E3_MS3
  290. #if EXTRUDERS > 4 || (ENABLED(MIXING_EXTRUDER) && MIXING_STEPPERS > 4)
  291. #undef _E4_PINS
  292. #define _E4_PINS E4_STEP_PIN, E4_DIR_PIN, E4_ENABLE_PIN, _E4_CS _E4_MS1 _E4_MS2 _E4_MS3
  293. #if EXTRUDERS > 5 || (ENABLED(MIXING_EXTRUDER) && MIXING_STEPPERS > 5)
  294. #undef _E5_PINS
  295. #define _E5_PINS E5_STEP_PIN, E5_DIR_PIN, E5_ENABLE_PIN, _E5_CS _E5_MS1 _E5_MS2 _E5_MS3
  296. #endif // EXTRUDERS > 5 || MIXING_EXTRUDER > 5
  297. #endif // EXTRUDERS > 4 || MIXING_EXTRUDER > 4
  298. #endif // EXTRUDERS > 3 || MIXING_EXTRUDER > 3
  299. #endif // EXTRUDERS > 2 || MIXING_EXTRUDER > 2
  300. #endif // EXTRUDERS > 1 || MIXING_EXTRUDER
  301. //
  302. // Heaters, Fans, Temp Sensors
  303. //
  304. #define _H0_PINS
  305. #define _H1_PINS
  306. #define _H2_PINS
  307. #define _H3_PINS
  308. #define _H4_PINS
  309. #define _H5_PINS
  310. #if HOTENDS
  311. #undef _H0_PINS
  312. #define _H0_PINS HEATER_0_PIN, E0_AUTO_FAN_PIN, analogInputToDigitalPin(TEMP_0_PIN),
  313. #if HOTENDS > 1
  314. #undef _H1_PINS
  315. #define _H1_PINS HEATER_1_PIN, E1_AUTO_FAN_PIN, analogInputToDigitalPin(TEMP_1_PIN),
  316. #if HOTENDS > 2
  317. #undef _H2_PINS
  318. #define _H2_PINS HEATER_2_PIN, E2_AUTO_FAN_PIN, analogInputToDigitalPin(TEMP_2_PIN),
  319. #if HOTENDS > 3
  320. #undef _H3_PINS
  321. #define _H3_PINS HEATER_3_PIN, E3_AUTO_FAN_PIN, analogInputToDigitalPin(TEMP_3_PIN),
  322. #if HOTENDS > 4
  323. #undef _H4_PINS
  324. #define _H4_PINS HEATER_4_PIN, E4_AUTO_FAN_PIN, analogInputToDigitalPin(TEMP_4_PIN),
  325. #if HOTENDS > 5
  326. #undef _H5_PINS
  327. #define _H5_PINS HEATER_5_PIN, E5_AUTO_FAN_PIN, analogInputToDigitalPin(TEMP_5_PIN),
  328. #endif // HOTENDS > 5
  329. #endif // HOTENDS > 4
  330. #endif // HOTENDS > 3
  331. #endif // HOTENDS > 2
  332. #endif // HOTENDS > 1
  333. #endif // HOTENDS
  334. #define _BED_PINS
  335. #if PIN_EXISTS(HEATER_BED) && PIN_EXISTS(TEMP_BED)
  336. #undef _BED_PINS
  337. #define _BED_PINS HEATER_BED_PIN, analogInputToDigitalPin(TEMP_BED_PIN),
  338. #endif
  339. //
  340. // Dual X, Dual Y, Multi-Z
  341. // Chip Select and Digital Micro-stepping
  342. //
  343. #if EITHER(DUAL_X_CARRIAGE, X_DUAL_STEPPER_DRIVERS)
  344. #if PIN_EXISTS(X2_CS) && AXIS_HAS_SPI(X2)
  345. #define _X2_CS X2_CS_PIN,
  346. #else
  347. #define _X2_CS
  348. #endif
  349. #if PIN_EXISTS(X2_MS1)
  350. #define _X2_MS1 X2_MS1_PIN,
  351. #else
  352. #define _X2_MS1
  353. #endif
  354. #if PIN_EXISTS(X2_MS2)
  355. #define _X2_MS2 X2_MS2_PIN,
  356. #else
  357. #define _X2_MS2
  358. #endif
  359. #if PIN_EXISTS(X2_MS3)
  360. #define _X2_MS3 X2_MS3_PIN,
  361. #else
  362. #define _X2_MS3
  363. #endif
  364. #define _X2_PINS X2_STEP_PIN, X2_DIR_PIN, X2_ENABLE_PIN, _X2_CS _X2_MS1 _X2_MS2 _X2_MS3
  365. #else
  366. #define _X2_PINS
  367. #endif
  368. #if ENABLED(Y_DUAL_STEPPER_DRIVERS)
  369. #if PIN_EXISTS(Y2_CS) && AXIS_HAS_SPI(Y2)
  370. #define _Y2_CS Y2_CS_PIN,
  371. #else
  372. #define _Y2_CS
  373. #endif
  374. #if PIN_EXISTS(Y2_MS1)
  375. #define _Y2_MS1 Y2_MS1_PIN,
  376. #else
  377. #define _Y2_MS1
  378. #endif
  379. #if PIN_EXISTS(Y2_MS2)
  380. #define _Y2_MS2 Y2_MS2_PIN,
  381. #else
  382. #define _Y2_MS2
  383. #endif
  384. #if PIN_EXISTS(Y2_MS3)
  385. #define _Y2_MS3 Y2_MS3_PIN,
  386. #else
  387. #define _Y2_MS3
  388. #endif
  389. #define _Y2_PINS Y2_STEP_PIN, Y2_DIR_PIN, Y2_ENABLE_PIN, _Y2_CS _Y2_MS1 _Y2_MS2 _Y2_MS3
  390. #else
  391. #define _Y2_PINS
  392. #endif
  393. #if NUM_Z_STEPPER_DRIVERS >= 2
  394. #if PIN_EXISTS(Z2_CS) && AXIS_HAS_SPI(Z2)
  395. #define _Z2_CS Z2_CS_PIN,
  396. #else
  397. #define _Z2_CS
  398. #endif
  399. #if PIN_EXISTS(Z2_MS1)
  400. #define _Z2_MS1 Z2_MS1_PIN,
  401. #else
  402. #define _Z2_MS1
  403. #endif
  404. #if PIN_EXISTS(Z2_MS2)
  405. #define _Z2_MS2 Z2_MS2_PIN,
  406. #else
  407. #define _Z2_MS2
  408. #endif
  409. #if PIN_EXISTS(Z2_MS3)
  410. #define _Z2_MS3 Z2_MS3_PIN,
  411. #else
  412. #define _Z2_MS3
  413. #endif
  414. #define _Z2_PINS Z2_STEP_PIN, Z2_DIR_PIN, Z2_ENABLE_PIN, _Z2_CS _Z2_MS1 _Z2_MS2 _Z2_MS3
  415. #else
  416. #define _Z2_PINS
  417. #endif
  418. #if NUM_Z_STEPPER_DRIVERS >= 3
  419. #if PIN_EXISTS(Z3_CS) && AXIS_HAS_SPI(Z3)
  420. #define _Z3_CS Z3_CS_PIN,
  421. #else
  422. #define _Z3_CS
  423. #endif
  424. #if PIN_EXISTS(Z3_MS1)
  425. #define _Z3_MS1 Z3_MS1_PIN,
  426. #else
  427. #define _Z3_MS1
  428. #endif
  429. #if PIN_EXISTS(Z3_MS2)
  430. #define _Z3_MS2 Z3_MS2_PIN,
  431. #else
  432. #define _Z3_MS2
  433. #endif
  434. #if PIN_EXISTS(Z3_MS3)
  435. #define _Z3_MS3 Z3_MS3_PIN,
  436. #else
  437. #define _Z3_MS3
  438. #endif
  439. #define _Z3_PINS Z3_STEP_PIN, Z3_DIR_PIN, Z3_ENABLE_PIN, _Z3_CS _Z3_MS1 _Z3_MS2 _Z3_MS3
  440. #else
  441. #define _Z3_PINS
  442. #endif
  443. #if NUM_Z_STEPPER_DRIVERS >= 4
  444. #if PIN_EXISTS(Z4_CS) && AXIS_HAS_SPI(Z4)
  445. #define _Z4_CS Z4_CS_PIN,
  446. #else
  447. #define _Z4_CS
  448. #endif
  449. #if PIN_EXISTS(Z4_MS1)
  450. #define _Z4_MS1 Z4_MS1_PIN,
  451. #else
  452. #define _Z4_MS1
  453. #endif
  454. #if PIN_EXISTS(Z4_MS2)
  455. #define _Z4_MS2 Z4_MS2_PIN,
  456. #else
  457. #define _Z4_MS2
  458. #endif
  459. #if PIN_EXISTS(Z4_MS3)
  460. #define _Z4_MS3 Z4_MS3_PIN,
  461. #else
  462. #define _Z4_MS3
  463. #endif
  464. #define _Z4_PINS Z4_STEP_PIN, Z4_DIR_PIN, Z4_ENABLE_PIN, _Z4_CS _Z4_MS1 _Z4_MS2 _Z4_MS3
  465. #else
  466. #define _Z4_PINS
  467. #endif
  468. //
  469. // Generate the final Sensitive Pins array,
  470. // keeping the array as small as possible.
  471. //
  472. #if PIN_EXISTS(PS_ON)
  473. #define _PS_ON PS_ON_PIN,
  474. #else
  475. #define _PS_ON
  476. #endif
  477. #if HAS_BED_PROBE && PIN_EXISTS(Z_MIN_PROBE)
  478. #define _Z_PROBE Z_MIN_PROBE_PIN,
  479. #else
  480. #define _Z_PROBE
  481. #endif
  482. #if TEMP_SENSOR_BED && PIN_EXISTS(HEATER_BED)
  483. #define _HEATER_BED HEATER_BED_PIN,
  484. #else
  485. #define _HEATER_BED
  486. #endif
  487. #if PIN_EXISTS(FAN)
  488. #define _FAN0 FAN_PIN,
  489. #else
  490. #define _FAN0
  491. #endif
  492. #if PIN_EXISTS(FAN1)
  493. #define _FAN1 FAN1_PIN,
  494. #else
  495. #define _FAN1
  496. #endif
  497. #if PIN_EXISTS(FAN2)
  498. #define _FAN2 FAN2_PIN,
  499. #else
  500. #define _FAN2
  501. #endif
  502. #if PIN_EXISTS(CONTROLLER_FAN)
  503. #define _FANC CONTROLLER_FAN_PIN,
  504. #else
  505. #define _FANC
  506. #endif
  507. #ifndef HAL_SENSITIVE_PINS
  508. #define HAL_SENSITIVE_PINS
  509. #endif
  510. #define SENSITIVE_PINS { \
  511. _X_PINS _Y_PINS _Z_PINS _X2_PINS _Y2_PINS _Z2_PINS _Z3_PINS _Z4_PINS \
  512. _Z_PROBE _E0_PINS _E1_PINS _E2_PINS _E3_PINS _E4_PINS _E5_PINS \
  513. _BED_PINS _H0_PINS _H1_PINS _H2_PINS _H3_PINS _H4_PINS _H5_PINS \
  514. _PS_ON _HEATER_BED _FAN0 _FAN1 _FAN2 _FANC \
  515. HAL_SENSITIVE_PINS \
  516. }