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.

Warnings.cpp 35KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2021 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. /**
  23. * Warnings.cpp
  24. * Test configuration values and give warnings at compile-time.
  25. */
  26. #include "MarlinConfig.h"
  27. //
  28. // Warnings! Located here so they will appear just once in the build output.
  29. //
  30. #if ENABLED(MARLIN_DEV_MODE)
  31. #warning "WARNING! Disable MARLIN_DEV_MODE for the final build!"
  32. #endif
  33. // Safety Features
  34. #if DISABLED(USE_WATCHDOG)
  35. #warning "Safety Alert! Enable USE_WATCHDOG for the final build!"
  36. #endif
  37. #if HAS_HOTEND && DISABLED(THERMAL_PROTECTION_HOTENDS)
  38. #warning "Safety Alert! Enable THERMAL_PROTECTION_HOTENDS for the final build!"
  39. #endif
  40. #if HAS_HEATED_BED && DISABLED(THERMAL_PROTECTION_BED)
  41. #warning "Safety Alert! Enable THERMAL_PROTECTION_BED for the final build!"
  42. #endif
  43. #if HAS_HEATED_CHAMBER && DISABLED(THERMAL_PROTECTION_CHAMBER)
  44. #warning "Safety Alert! Enable THERMAL_PROTECTION_CHAMBER for the final build!"
  45. #endif
  46. #if HAS_COOLER && DISABLED(THERMAL_PROTECTION_COOLER)
  47. #warning "Safety Alert! Enable THERMAL_PROTECTION_COOLER for the final build!"
  48. #endif
  49. #if ANY_THERMISTOR_IS(998) || ANY_THERMISTOR_IS(999)
  50. #warning "Warning! Don't use dummy thermistors (998/999) for final build!"
  51. #endif
  52. #if NONE(HAS_RESUME_CONTINUE, HOST_PROMPT_SUPPORT)
  53. #warning "Your Configuration provides no method to acquire user feedback!"
  54. #endif
  55. #ifndef NO_AUTO_ASSIGN_WARNING
  56. #if AUTO_ASSIGNED_X2_STEPPER
  57. #warning "Note: Auto-assigned X2 STEP/DIR/ENABLE_PINs to unused En_STEP/DIR/ENABLE_PINs. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  58. #endif
  59. #if AUTO_ASSIGNED_X2_MS1
  60. #warning "Note: Auto-assigned X2_MS1_PIN to an unused En_MS1_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  61. #endif
  62. #if AUTO_ASSIGNED_X2_MS2
  63. #warning "Note: Auto-assigned X2_MS2_PIN to an unused En_MS2_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  64. #endif
  65. #if AUTO_ASSIGNED_X2_MS3
  66. #warning "Note: Auto-assigned X2_MS3_PIN to an unused En_MS3_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  67. #endif
  68. #if AUTO_ASSIGNED_X2_CS
  69. #warning "Note: Auto-assigned X2_CS_PIN to an unused En_CS_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  70. #endif
  71. #if AUTO_ASSIGNED_X2_DIAG
  72. #if X2_USE_ENDSTOP == _XMIN_
  73. #warning "Note: Auto-assigned X2_DIAG_PIN to X_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  74. #elif X2_USE_ENDSTOP == _XMAX_
  75. #warning "Note: Auto-assigned X2_DIAG_PIN to X_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  76. #elif X2_USE_ENDSTOP == _XSTOP_
  77. #warning "Note: Auto-assigned X2_DIAG_PIN to X_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  78. #elif X2_USE_ENDSTOP == _YMIN_
  79. #warning "Note: Auto-assigned X2_DIAG_PIN to Y_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  80. #elif X2_USE_ENDSTOP == _YMAX_
  81. #warning "Note: Auto-assigned X2_DIAG_PIN to Y_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  82. #elif X2_USE_ENDSTOP == _YSTOP_
  83. #warning "Note: Auto-assigned X2_DIAG_PIN to Y_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  84. #elif X2_USE_ENDSTOP == _ZMIN_
  85. #warning "Note: Auto-assigned X2_DIAG_PIN to Z_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  86. #elif X2_USE_ENDSTOP == _ZMAX_
  87. #warning "Note: Auto-assigned X2_DIAG_PIN to Z_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  88. #elif X2_USE_ENDSTOP == _ZSTOP_
  89. #warning "Note: Auto-assigned X2_DIAG_PIN to Z_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  90. #elif X2_USE_ENDSTOP == _XDIAG_
  91. #warning "Note: Auto-assigned X2_DIAG_PIN to X_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  92. #elif X2_USE_ENDSTOP == _YDIAG_
  93. #warning "Note: Auto-assigned X2_DIAG_PIN to Y_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  94. #elif X2_USE_ENDSTOP == _ZDIAG_
  95. #warning "Note: Auto-assigned X2_DIAG_PIN to Z_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  96. #elif X2_USE_ENDSTOP == _E0DIAG_
  97. #warning "Note: Auto-assigned X2_DIAG_PIN to E0_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  98. #elif X2_USE_ENDSTOP == _E1DIAG_
  99. #warning "Note: Auto-assigned X2_DIAG_PIN to E1_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  100. #elif X2_USE_ENDSTOP == _E2DIAG_
  101. #warning "Note: Auto-assigned X2_DIAG_PIN to E2_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  102. #elif X2_USE_ENDSTOP == _E3DIAG_
  103. #warning "Note: Auto-assigned X2_DIAG_PIN to E3_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  104. #elif X2_USE_ENDSTOP == _E4DIAG_
  105. #warning "Note: Auto-assigned X2_DIAG_PIN to E4_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  106. #elif X2_USE_ENDSTOP == _E5DIAG_
  107. #warning "Note: Auto-assigned X2_DIAG_PIN to E5_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  108. #elif X2_USE_ENDSTOP == _E6DIAG_
  109. #warning "Note: Auto-assigned X2_DIAG_PIN to E6_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  110. #elif X2_USE_ENDSTOP == _E7DIAG_
  111. #warning "Note: Auto-assigned X2_DIAG_PIN to E7_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  112. #endif
  113. #endif
  114. #if AUTO_ASSIGNED_Y2_STEPPER
  115. #warning "Note: Auto-assigned Y2 STEP/DIR/ENABLE_PINs to unused En_STEP/DIR/ENABLE_PINs. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  116. #endif
  117. #if AUTO_ASSIGNED_Y2_MS1
  118. #warning "Note: Auto-assigned Y2_MS1_PIN to an unused En_MS1_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  119. #endif
  120. #if AUTO_ASSIGNED_Y2_MS2
  121. #warning "Note: Auto-assigned Y2_MS2_PIN to an unused En_MS2_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  122. #endif
  123. #if AUTO_ASSIGNED_Y2_MS3
  124. #warning "Note: Auto-assigned Y2_MS3_PIN to an unused En_MS3_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  125. #endif
  126. #if AUTO_ASSIGNED_Y2_CS
  127. #warning "Note: Auto-assigned Y2_CS_PIN to an unused En_CS_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  128. #endif
  129. #if AUTO_ASSIGNED_Y2_DIAG
  130. #if Y2_USE_ENDSTOP == _XMIN_
  131. #warning "Note: Auto-assigned Y2_DIAG_PIN to X_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  132. #elif Y2_USE_ENDSTOP == _XMAX_
  133. #warning "Note: Auto-assigned Y2_DIAG_PIN to X_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  134. #elif Y2_USE_ENDSTOP == _XSTOP_
  135. #warning "Note: Auto-assigned Y2_DIAG_PIN to X_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  136. #elif Y2_USE_ENDSTOP == _YMIN_
  137. #warning "Note: Auto-assigned Y2_DIAG_PIN to Y_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  138. #elif Y2_USE_ENDSTOP == _YMAX_
  139. #warning "Note: Auto-assigned Y2_DIAG_PIN to Y_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  140. #elif Y2_USE_ENDSTOP == _YSTOP_
  141. #warning "Note: Auto-assigned Y2_DIAG_PIN to Y_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  142. #elif Y2_USE_ENDSTOP == _ZMIN_
  143. #warning "Note: Auto-assigned Y2_DIAG_PIN to Z_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  144. #elif Y2_USE_ENDSTOP == _ZMAX_
  145. #warning "Note: Auto-assigned Y2_DIAG_PIN to Z_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  146. #elif Y2_USE_ENDSTOP == _ZSTOP_
  147. #warning "Note: Auto-assigned Y2_DIAG_PIN to Z_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  148. #elif Y2_USE_ENDSTOP == _XDIAG_
  149. #warning "Note: Auto-assigned Y2_DIAG_PIN to X_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  150. #elif Y2_USE_ENDSTOP == _YDIAG_
  151. #warning "Note: Auto-assigned Y2_DIAG_PIN to Y_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  152. #elif Y2_USE_ENDSTOP == _ZDIAG_
  153. #warning "Note: Auto-assigned Y2_DIAG_PIN to Z_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  154. #elif Y2_USE_ENDSTOP == _E0DIAG_
  155. #warning "Note: Auto-assigned Y2_DIAG_PIN to E0_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  156. #elif Y2_USE_ENDSTOP == _E1DIAG_
  157. #warning "Note: Auto-assigned Y2_DIAG_PIN to E1_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  158. #elif Y2_USE_ENDSTOP == _E2DIAG_
  159. #warning "Note: Auto-assigned Y2_DIAG_PIN to E2_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  160. #elif Y2_USE_ENDSTOP == _E3DIAG_
  161. #warning "Note: Auto-assigned Y2_DIAG_PIN to E3_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  162. #elif Y2_USE_ENDSTOP == _E4DIAG_
  163. #warning "Note: Auto-assigned Y2_DIAG_PIN to E4_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  164. #elif Y2_USE_ENDSTOP == _E5DIAG_
  165. #warning "Note: Auto-assigned Y2_DIAG_PIN to E5_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  166. #elif Y2_USE_ENDSTOP == _E6DIAG_
  167. #warning "Note: Auto-assigned Y2_DIAG_PIN to E6_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  168. #elif Y2_USE_ENDSTOP == _E7DIAG_
  169. #warning "Note: Auto-assigned Y2_DIAG_PIN to E7_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  170. #endif
  171. #endif
  172. #if AUTO_ASSIGNED_Z2_STEPPER
  173. #warning "Note: Auto-assigned Z2 STEP/DIR/ENABLE_PINs to unused En_STEP/DIR/ENABLE_PINs. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  174. #endif
  175. #if AUTO_ASSIGNED_Z2_MS1
  176. #warning "Note: Auto-assigned Z2_MS1_PIN to an unused En_MS1_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  177. #endif
  178. #if AUTO_ASSIGNED_Z2_MS2
  179. #warning "Note: Auto-assigned Z2_MS2_PIN to an unused En_MS2_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  180. #endif
  181. #if AUTO_ASSIGNED_Z2_MS3
  182. #warning "Note: Auto-assigned Z2_MS3_PIN to an unused En_MS3_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  183. #endif
  184. #if AUTO_ASSIGNED_Z2_CS
  185. #warning "Note: Auto-assigned Z2_CS_PIN to an unused En_CS_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  186. #endif
  187. #if AUTO_ASSIGNED_Z2_DIAG
  188. #if Z2_USE_ENDSTOP == _XMIN_
  189. #warning "Note: Auto-assigned Z2_DIAG_PIN to X_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  190. #elif Z2_USE_ENDSTOP == _XMAX_
  191. #warning "Note: Auto-assigned Z2_DIAG_PIN to X_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  192. #elif Z2_USE_ENDSTOP == _XSTOP_
  193. #warning "Note: Auto-assigned Z2_DIAG_PIN to X_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  194. #elif Z2_USE_ENDSTOP == _YMIN_
  195. #warning "Note: Auto-assigned Z2_DIAG_PIN to Y_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  196. #elif Z2_USE_ENDSTOP == _YMAX_
  197. #warning "Note: Auto-assigned Z2_DIAG_PIN to Y_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  198. #elif Z2_USE_ENDSTOP == _YSTOP_
  199. #warning "Note: Auto-assigned Z2_DIAG_PIN to Y_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  200. #elif Z2_USE_ENDSTOP == _ZMIN_
  201. #warning "Note: Auto-assigned Z2_DIAG_PIN to Z_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  202. #elif Z2_USE_ENDSTOP == _ZMAX_
  203. #warning "Note: Auto-assigned Z2_DIAG_PIN to Z_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  204. #elif Z2_USE_ENDSTOP == _ZSTOP_
  205. #warning "Note: Auto-assigned Z2_DIAG_PIN to Z_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  206. #elif Z2_USE_ENDSTOP == _XDIAG_
  207. #warning "Note: Auto-assigned Z2_DIAG_PIN to X_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  208. #elif Z2_USE_ENDSTOP == _YDIAG_
  209. #warning "Note: Auto-assigned Z2_DIAG_PIN to Y_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  210. #elif Z2_USE_ENDSTOP == _ZDIAG_
  211. #warning "Note: Auto-assigned Z2_DIAG_PIN to Z_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  212. #elif Z2_USE_ENDSTOP == _E0DIAG_
  213. #warning "Note: Auto-assigned Z2_DIAG_PIN to E0_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  214. #elif Z2_USE_ENDSTOP == _E1DIAG_
  215. #warning "Note: Auto-assigned Z2_DIAG_PIN to E1_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  216. #elif Z2_USE_ENDSTOP == _E2DIAG_
  217. #warning "Note: Auto-assigned Z2_DIAG_PIN to E2_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  218. #elif Z2_USE_ENDSTOP == _E3DIAG_
  219. #warning "Note: Auto-assigned Z2_DIAG_PIN to E3_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  220. #elif Z2_USE_ENDSTOP == _E4DIAG_
  221. #warning "Note: Auto-assigned Z2_DIAG_PIN to E4_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  222. #elif Z2_USE_ENDSTOP == _E5DIAG_
  223. #warning "Note: Auto-assigned Z2_DIAG_PIN to E5_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  224. #elif Z2_USE_ENDSTOP == _E6DIAG_
  225. #warning "Note: Auto-assigned Z2_DIAG_PIN to E6_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  226. #elif Z2_USE_ENDSTOP == _E7DIAG_
  227. #warning "Note: Auto-assigned Z2_DIAG_PIN to E7_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  228. #endif
  229. #endif
  230. #if AUTO_ASSIGNED_Z3_STEPPER
  231. #warning "Note: Auto-assigned Z3 STEP/DIR/ENABLE_PINs to unused En_STEP/DIR/ENABLE_PINs. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  232. #endif
  233. #if AUTO_ASSIGNED_Z3_CS
  234. #warning "Note: Auto-assigned Z3_CS_PIN to an unused En_CS_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  235. #endif
  236. #if AUTO_ASSIGNED_Z3_MS1
  237. #warning "Note: Auto-assigned Z3_MS1_PIN to an unused En_MS1_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  238. #endif
  239. #if AUTO_ASSIGNED_Z3_MS2
  240. #warning "Note: Auto-assigned Z3_MS2_PIN to an unused En_MS2_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  241. #endif
  242. #if AUTO_ASSIGNED_Z3_MS3
  243. #warning "Note: Auto-assigned Z3_MS3_PIN to an unused En_MS3_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  244. #endif
  245. #if AUTO_ASSIGNED_Z3_DIAG
  246. #if Z3_USE_ENDSTOP == _XMIN_
  247. #warning "Note: Auto-assigned Z3_DIAG_PIN to X_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  248. #elif Z3_USE_ENDSTOP == _XMAX_
  249. #warning "Note: Auto-assigned Z3_DIAG_PIN to X_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  250. #elif Z3_USE_ENDSTOP == _XSTOP_
  251. #warning "Note: Auto-assigned Z3_DIAG_PIN to X_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  252. #elif Z3_USE_ENDSTOP == _YMIN_
  253. #warning "Note: Auto-assigned Z3_DIAG_PIN to Y_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  254. #elif Z3_USE_ENDSTOP == _YMAX_
  255. #warning "Note: Auto-assigned Z3_DIAG_PIN to Y_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  256. #elif Z3_USE_ENDSTOP == _YSTOP_
  257. #warning "Note: Auto-assigned Z3_DIAG_PIN to Y_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  258. #elif Z3_USE_ENDSTOP == _ZMIN_
  259. #warning "Note: Auto-assigned Z3_DIAG_PIN to Z_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  260. #elif Z3_USE_ENDSTOP == _ZMAX_
  261. #warning "Note: Auto-assigned Z3_DIAG_PIN to Z_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  262. #elif Z3_USE_ENDSTOP == _ZSTOP_
  263. #warning "Note: Auto-assigned Z3_DIAG_PIN to Z_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  264. #elif Z3_USE_ENDSTOP == _XDIAG_
  265. #warning "Note: Auto-assigned Z3_DIAG_PIN to X_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  266. #elif Z3_USE_ENDSTOP == _YDIAG_
  267. #warning "Note: Auto-assigned Z3_DIAG_PIN to Y_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  268. #elif Z3_USE_ENDSTOP == _ZDIAG_
  269. #warning "Note: Auto-assigned Z3_DIAG_PIN to Z_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  270. #elif Z3_USE_ENDSTOP == _E0DIAG_
  271. #warning "Note: Auto-assigned Z3_DIAG_PIN to E0_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  272. #elif Z3_USE_ENDSTOP == _E1DIAG_
  273. #warning "Note: Auto-assigned Z3_DIAG_PIN to E1_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  274. #elif Z3_USE_ENDSTOP == _E2DIAG_
  275. #warning "Note: Auto-assigned Z3_DIAG_PIN to E2_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  276. #elif Z3_USE_ENDSTOP == _E3DIAG_
  277. #warning "Note: Auto-assigned Z3_DIAG_PIN to E3_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  278. #elif Z3_USE_ENDSTOP == _E4DIAG_
  279. #warning "Note: Auto-assigned Z3_DIAG_PIN to E4_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  280. #elif Z3_USE_ENDSTOP == _E5DIAG_
  281. #warning "Note: Auto-assigned Z3_DIAG_PIN to E5_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  282. #elif Z3_USE_ENDSTOP == _E6DIAG_
  283. #warning "Note: Auto-assigned Z3_DIAG_PIN to E6_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  284. #elif Z3_USE_ENDSTOP == _E7DIAG_
  285. #warning "Note: Auto-assigned Z3_DIAG_PIN to E7_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  286. #endif
  287. #endif
  288. #if AUTO_ASSIGNED_Z4_STEPPER
  289. #warning "Note: Auto-assigned Z4 STEP/DIR/ENABLE_PINs to unused En_STEP/DIR/ENABLE_PINs. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  290. #endif
  291. #if AUTO_ASSIGNED_Z4_CS
  292. #warning "Note: Auto-assigned Z4_CS_PIN to an unused En_CS_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  293. #endif
  294. #if AUTO_ASSIGNED_Z4_MS1
  295. #warning "Note: Auto-assigned Z4_MS1_PIN to an unused En_MS1_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  296. #endif
  297. #if AUTO_ASSIGNED_Z4_MS2
  298. #warning "Note: Auto-assigned Z4_MS2_PIN to an unused En_MS2_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  299. #endif
  300. #if AUTO_ASSIGNED_Z4_MS3
  301. #warning "Note: Auto-assigned Z4_MS3_PIN to an unused En_MS3_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  302. #endif
  303. #if AUTO_ASSIGNED_Z4_DIAG
  304. #if Z4_USE_ENDSTOP == _XMIN_
  305. #warning "Note: Auto-assigned Z4_DIAG_PIN to X_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  306. #elif Z4_USE_ENDSTOP == _XMAX_
  307. #warning "Note: Auto-assigned Z4_DIAG_PIN to X_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  308. #elif Z4_USE_ENDSTOP == _XSTOP_
  309. #warning "Note: Auto-assigned Z4_DIAG_PIN to X_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  310. #elif Z4_USE_ENDSTOP == _YMIN_
  311. #warning "Note: Auto-assigned Z4_DIAG_PIN to Y_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  312. #elif Z4_USE_ENDSTOP == _YMAX_
  313. #warning "Note: Auto-assigned Z4_DIAG_PIN to Y_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  314. #elif Z4_USE_ENDSTOP == _YSTOP_
  315. #warning "Note: Auto-assigned Z4_DIAG_PIN to Y_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  316. #elif Z4_USE_ENDSTOP == _ZMIN_
  317. #warning "Note: Auto-assigned Z4_DIAG_PIN to Z_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  318. #elif Z4_USE_ENDSTOP == _ZMAX_
  319. #warning "Note: Auto-assigned Z4_DIAG_PIN to Z_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  320. #elif Z4_USE_ENDSTOP == _ZSTOP_
  321. #warning "Note: Auto-assigned Z4_DIAG_PIN to Z_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  322. #elif Z4_USE_ENDSTOP == _XDIAG_
  323. #warning "Note: Auto-assigned Z4_DIAG_PIN to X_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  324. #elif Z4_USE_ENDSTOP == _YDIAG_
  325. #warning "Note: Auto-assigned Z4_DIAG_PIN to Y_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  326. #elif Z4_USE_ENDSTOP == _ZDIAG_
  327. #warning "Note: Auto-assigned Z4_DIAG_PIN to Z_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  328. #elif Z4_USE_ENDSTOP == _E0DIAG_
  329. #warning "Note: Auto-assigned Z4_DIAG_PIN to E0_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  330. #elif Z4_USE_ENDSTOP == _E1DIAG_
  331. #warning "Note: Auto-assigned Z4_DIAG_PIN to E1_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  332. #elif Z4_USE_ENDSTOP == _E2DIAG_
  333. #warning "Note: Auto-assigned Z4_DIAG_PIN to E2_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  334. #elif Z4_USE_ENDSTOP == _E3DIAG_
  335. #warning "Note: Auto-assigned Z4_DIAG_PIN to E3_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  336. #elif Z4_USE_ENDSTOP == _E4DIAG_
  337. #warning "Note: Auto-assigned Z4_DIAG_PIN to E4_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  338. #elif Z4_USE_ENDSTOP == _E5DIAG_
  339. #warning "Note: Auto-assigned Z4_DIAG_PIN to E5_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  340. #elif Z4_USE_ENDSTOP == _E6DIAG_
  341. #warning "Note: Auto-assigned Z4_DIAG_PIN to E6_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  342. #elif Z4_USE_ENDSTOP == _E7DIAG_
  343. #warning "Note: Auto-assigned Z4_DIAG_PIN to E7_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  344. #endif
  345. #endif
  346. #if AUTO_ASSIGNED_I_STEPPER
  347. #warning "Note: Auto-assigned I STEP/DIR/ENABLE_PINs to unused En_STEP/DIR/ENABLE_PINs. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  348. #endif
  349. #if AUTO_ASSIGNED_I_CS
  350. #warning "Note: Auto-assigned I_CS_PIN to an unused En_CS_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  351. #endif
  352. #if AUTO_ASSIGNED_I_MS1
  353. #warning "Note: Auto-assigned I_MS1_PIN to an unused En_MS1_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  354. #endif
  355. #if AUTO_ASSIGNED_I_MS2
  356. #warning "Note: Auto-assigned I_MS2_PIN to an unused En_MS2_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  357. #endif
  358. #if AUTO_ASSIGNED_I_MS3
  359. #warning "Note: Auto-assigned I_MS3_PIN to an unused En_MS3_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  360. #endif
  361. #if AUTO_ASSIGNED_I_DIAG
  362. #if I_USE_ENDSTOP == _XMIN_
  363. #warning "Note: Auto-assigned I_DIAG_PIN to X_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  364. #elif I_USE_ENDSTOP == _XMAX_
  365. #warning "Note: Auto-assigned I_DIAG_PIN to X_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  366. #elif I_USE_ENDSTOP == _XSTOP_
  367. #warning "Note: Auto-assigned I_DIAG_PIN to X_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  368. #elif I_USE_ENDSTOP == _YMIN_
  369. #warning "Note: Auto-assigned I_DIAG_PIN to Y_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  370. #elif I_USE_ENDSTOP == _YMAX_
  371. #warning "Note: Auto-assigned I_DIAG_PIN to Y_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  372. #elif I_USE_ENDSTOP == _YSTOP_
  373. #warning "Note: Auto-assigned I_DIAG_PIN to Y_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  374. #elif I_USE_ENDSTOP == _ZMIN_
  375. #warning "Note: Auto-assigned I_DIAG_PIN to Z_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  376. #elif I_USE_ENDSTOP == _ZMAX_
  377. #warning "Note: Auto-assigned I_DIAG_PIN to Z_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  378. #elif I_USE_ENDSTOP == _ZSTOP_
  379. #warning "Note: Auto-assigned I_DIAG_PIN to Z_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  380. #elif I_USE_ENDSTOP == _XDIAG_
  381. #warning "Note: Auto-assigned I_DIAG_PIN to X_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  382. #elif I_USE_ENDSTOP == _YDIAG_
  383. #warning "Note: Auto-assigned I_DIAG_PIN to Y_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  384. #elif I_USE_ENDSTOP == _ZDIAG_
  385. #warning "Note: Auto-assigned I_DIAG_PIN to Z_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  386. #elif I_USE_ENDSTOP == _E0DIAG_
  387. #warning "Note: Auto-assigned I_DIAG_PIN to E0_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  388. #elif I_USE_ENDSTOP == _E1DIAG_
  389. #warning "Note: Auto-assigned I_DIAG_PIN to E1_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  390. #elif I_USE_ENDSTOP == _E2DIAG_
  391. #warning "Note: Auto-assigned I_DIAG_PIN to E2_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  392. #elif I_USE_ENDSTOP == _E3DIAG_
  393. #warning "Note: Auto-assigned I_DIAG_PIN to E3_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  394. #elif I_USE_ENDSTOP == _E4DIAG_
  395. #warning "Note: Auto-assigned I_DIAG_PIN to E4_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  396. #elif I_USE_ENDSTOP == _E5DIAG_
  397. #warning "Note: Auto-assigned I_DIAG_PIN to E5_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  398. #elif I_USE_ENDSTOP == _E6DIAG_
  399. #warning "Note: Auto-assigned I_DIAG_PIN to E6_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  400. #elif I_USE_ENDSTOP == _E7DIAG_
  401. #warning "Note: Auto-assigned I_DIAG_PIN to E7_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  402. #endif
  403. #endif
  404. #if AUTO_ASSIGNED_J_STEPPER
  405. #warning "Note: Auto-assigned J STEP/DIR/ENABLE_PINs to unused En_STEP/DIR/ENABLE_PINs. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  406. #endif
  407. #if AUTO_ASSIGNED_J_CS
  408. #warning "Note: Auto-assigned J_CS_PIN to an unused En_CS_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  409. #endif
  410. #if AUTO_ASSIGNED_J_MS1
  411. #warning "Note: Auto-assigned J_MS1_PIN to an unused En_MS1_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  412. #endif
  413. #if AUTO_ASSIGNED_J_MS2
  414. #warning "Note: Auto-assigned J_MS2_PIN to an unused En_MS2_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  415. #endif
  416. #if AUTO_ASSIGNED_J_MS3
  417. #warning "Note: Auto-assigned J_MS3_PIN to an unused En_MS3_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  418. #endif
  419. #if AUTO_ASSIGNED_J_DIAG
  420. #if J_USE_ENDSTOP == _XMIN_
  421. #warning "Note: Auto-assigned J_DIAG_PIN to X_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  422. #elif J_USE_ENDSTOP == _XMAX_
  423. #warning "Note: Auto-assigned J_DIAG_PIN to X_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  424. #elif J_USE_ENDSTOP == _XSTOP_
  425. #warning "Note: Auto-assigned J_DIAG_PIN to X_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  426. #elif J_USE_ENDSTOP == _YMIN_
  427. #warning "Note: Auto-assigned J_DIAG_PIN to Y_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  428. #elif J_USE_ENDSTOP == _YMAX_
  429. #warning "Note: Auto-assigned J_DIAG_PIN to Y_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  430. #elif J_USE_ENDSTOP == _YSTOP_
  431. #warning "Note: Auto-assigned J_DIAG_PIN to Y_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  432. #elif J_USE_ENDSTOP == _ZMIN_
  433. #warning "Note: Auto-assigned J_DIAG_PIN to Z_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  434. #elif J_USE_ENDSTOP == _ZMAX_
  435. #warning "Note: Auto-assigned J_DIAG_PIN to Z_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  436. #elif J_USE_ENDSTOP == _ZSTOP_
  437. #warning "Note: Auto-assigned J_DIAG_PIN to Z_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  438. #elif J_USE_ENDSTOP == _XDIAG_
  439. #warning "Note: Auto-assigned J_DIAG_PIN to X_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  440. #elif J_USE_ENDSTOP == _YDIAG_
  441. #warning "Note: Auto-assigned J_DIAG_PIN to Y_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  442. #elif J_USE_ENDSTOP == _ZDIAG_
  443. #warning "Note: Auto-assigned J_DIAG_PIN to Z_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  444. #elif J_USE_ENDSTOP == _E0DIAG_
  445. #warning "Note: Auto-assigned J_DIAG_PIN to E0_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  446. #elif J_USE_ENDSTOP == _E1DIAG_
  447. #warning "Note: Auto-assigned J_DIAG_PIN to E1_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  448. #elif J_USE_ENDSTOP == _E2DIAG_
  449. #warning "Note: Auto-assigned J_DIAG_PIN to E2_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  450. #elif J_USE_ENDSTOP == _E3DIAG_
  451. #warning "Note: Auto-assigned J_DIAG_PIN to E3_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  452. #elif J_USE_ENDSTOP == _E4DIAG_
  453. #warning "Note: Auto-assigned J_DIAG_PIN to E4_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  454. #elif J_USE_ENDSTOP == _E5DIAG_
  455. #warning "Note: Auto-assigned J_DIAG_PIN to E5_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  456. #elif J_USE_ENDSTOP == _E6DIAG_
  457. #warning "Note: Auto-assigned J_DIAG_PIN to E6_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  458. #elif J_USE_ENDSTOP == _E7DIAG_
  459. #warning "Note: Auto-assigned J_DIAG_PIN to E7_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  460. #endif
  461. #endif
  462. #if AUTO_ASSIGNED_K_STEPPER
  463. #warning "Note: Auto-assigned K STEP/DIR/ENABLE_PINs to unused En_STEP/DIR/ENABLE_PINs. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  464. #endif
  465. #if AUTO_ASSIGNED_K_CS
  466. #warning "Note: Auto-assigned K_CS_PIN to an unused En_CS_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  467. #endif
  468. #if AUTO_ASSIGNED_K_MS1
  469. #warning "Note: Auto-assigned K_MS1_PIN to an unused En_MS1_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  470. #endif
  471. #if AUTO_ASSIGNED_K_MS2
  472. #warning "Note: Auto-assigned K_MS2_PIN to an unused En_MS2_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  473. #endif
  474. #if AUTO_ASSIGNED_K_MS3
  475. #warning "Note: Auto-assigned K_MS3_PIN to an unused En_MS3_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  476. #endif
  477. #if AUTO_ASSIGNED_K_DIAG
  478. #if K_USE_ENDSTOP == _XMIN_
  479. #warning "Note: Auto-assigned K_DIAG_PIN to X_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  480. #elif K_USE_ENDSTOP == _XMAX_
  481. #warning "Note: Auto-assigned K_DIAG_PIN to X_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  482. #elif K_USE_ENDSTOP == _XSTOP_
  483. #warning "Note: Auto-assigned K_DIAG_PIN to X_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  484. #elif K_USE_ENDSTOP == _YMIN_
  485. #warning "Note: Auto-assigned K_DIAG_PIN to Y_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  486. #elif K_USE_ENDSTOP == _YMAX_
  487. #warning "Note: Auto-assigned K_DIAG_PIN to Y_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  488. #elif K_USE_ENDSTOP == _YSTOP_
  489. #warning "Note: Auto-assigned K_DIAG_PIN to Y_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  490. #elif K_USE_ENDSTOP == _ZMIN_
  491. #warning "Note: Auto-assigned K_DIAG_PIN to Z_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  492. #elif K_USE_ENDSTOP == _ZMAX_
  493. #warning "Note: Auto-assigned K_DIAG_PIN to Z_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  494. #elif K_USE_ENDSTOP == _ZSTOP_
  495. #warning "Note: Auto-assigned K_DIAG_PIN to Z_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  496. #elif K_USE_ENDSTOP == _XDIAG_
  497. #warning "Note: Auto-assigned K_DIAG_PIN to X_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  498. #elif K_USE_ENDSTOP == _YDIAG_
  499. #warning "Note: Auto-assigned K_DIAG_PIN to Y_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  500. #elif K_USE_ENDSTOP == _ZDIAG_
  501. #warning "Note: Auto-assigned K_DIAG_PIN to Z_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  502. #elif K_USE_ENDSTOP == _E0DIAG_
  503. #warning "Note: Auto-assigned K_DIAG_PIN to E0_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  504. #elif K_USE_ENDSTOP == _E1DIAG_
  505. #warning "Note: Auto-assigned K_DIAG_PIN to E1_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  506. #elif K_USE_ENDSTOP == _E2DIAG_
  507. #warning "Note: Auto-assigned K_DIAG_PIN to E2_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  508. #elif K_USE_ENDSTOP == _E3DIAG_
  509. #warning "Note: Auto-assigned K_DIAG_PIN to E3_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  510. #elif K_USE_ENDSTOP == _E4DIAG_
  511. #warning "Note: Auto-assigned K_DIAG_PIN to E4_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  512. #elif K_USE_ENDSTOP == _E5DIAG_
  513. #warning "Note: Auto-assigned K_DIAG_PIN to E5_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  514. #elif K_USE_ENDSTOP == _E6DIAG_
  515. #warning "Note: Auto-assigned K_DIAG_PIN to E6_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  516. #elif K_USE_ENDSTOP == _E7DIAG_
  517. #warning "Note: Auto-assigned K_DIAG_PIN to E7_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  518. #endif
  519. #endif
  520. #if ENABLED(CHAMBER_FAN) && !defined(CHAMBER_FAN_INDEX)
  521. #warning "Note: Auto-assigned CHAMBER_FAN_INDEX to the first free FAN pin. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  522. #endif
  523. #endif // !NO_AUTO_ASSIGN_WARNING
  524. #if IS_LEGACY_TFT
  525. #warning "Don't forget to update your TFT settings in Configuration.h."
  526. #endif
  527. // Ender 3 Pro (but, apparently all Creality 4.2.2 boards)
  528. #if ENABLED(EMIT_CREALITY_422_WARNING) || MB(CREALITY_V4)
  529. #warning "Creality 4.2.2 boards may have A4988 or TMC2208_STANDALONE drivers. Check your board and make sure to select the correct DRIVER_TYPE!"
  530. #endif
  531. #if HOMING_Z_WITH_PROBE && IS_CARTESIAN && DISABLED(Z_SAFE_HOMING)
  532. #error "Z_SAFE_HOMING is recommended when homing with a probe. Enable Z_SAFE_HOMING or comment out this line to continue."
  533. #endif
  534. //
  535. // Warn users of potential endstop/DIAG pin conflicts to prevent homing issues when not using sensorless homing
  536. //
  537. #if NONE(USE_SENSORLESS, DIAG_JUMPERS_REMOVED)
  538. #if ENABLED(USES_DIAG_JUMPERS)
  539. #warning "Motherboard DIAG jumpers must be removed when SENSORLESS_HOMING is disabled. (Define DIAG_JUMPERS_REMOVED to suppress this warning.)"
  540. #elif ENABLED(USES_DIAG_PINS)
  541. #warning "Driver DIAG pins must be physically removed unless SENSORLESS_HOMING is enabled. (See https://bit.ly/2ZPRlt0) (Define DIAG_JUMPERS_REMOVED to suppress this warning.)"
  542. #endif
  543. #endif
  544. #if CANNOT_EMBED_CONFIGURATION
  545. #warning "Disabled CONFIGURATION_EMBEDDING because the target usually has less flash storage. Define FORCE_CONFIG_EMBED to override."
  546. #endif