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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4. *
  5. * Based on Sprinter and grbl.
  6. * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  20. *
  21. */
  22. //
  23. // Serial aliases for debugging.
  24. // Include this header after defining DEBUG_OUT
  25. // (or not) in a given .cpp file
  26. //
  27. #undef DEBUG_SECTION
  28. #undef DEBUG_ECHO_START
  29. #undef DEBUG_ERROR_START
  30. #undef DEBUG_CHAR
  31. #undef DEBUG_ECHO
  32. #undef DEBUG_DECIMAL
  33. #undef DEBUG_ECHO_F
  34. #undef DEBUG_ECHOLN
  35. #undef DEBUG_ECHOPGM
  36. #undef DEBUG_ECHOLNPGM
  37. #undef DEBUG_ECHOF
  38. #undef DEBUG_ECHOLNF
  39. #undef DEBUG_ECHOPGM_P
  40. #undef DEBUG_ECHOLNPGM_P
  41. #undef DEBUG_ECHOPAIR_F
  42. #undef DEBUG_ECHOPAIR_F_P
  43. #undef DEBUG_ECHOLNPAIR_F
  44. #undef DEBUG_ECHOLNPAIR_F_P
  45. #undef DEBUG_ECHO_MSG
  46. #undef DEBUG_ERROR_MSG
  47. #undef DEBUG_EOL
  48. #undef DEBUG_FLUSH
  49. #undef DEBUG_POS
  50. #undef DEBUG_XYZ
  51. #undef DEBUG_DELAY
  52. #undef DEBUG_SYNCHRONIZE
  53. #if DEBUG_OUT
  54. #include "debug_section.h"
  55. #define DEBUG_SECTION(N,S,D) SectionLog N(F(S),D)
  56. #define DEBUG_ECHO_START SERIAL_ECHO_START
  57. #define DEBUG_ERROR_START SERIAL_ERROR_START
  58. #define DEBUG_CHAR SERIAL_CHAR
  59. #define DEBUG_ECHO SERIAL_ECHO
  60. #define DEBUG_DECIMAL SERIAL_DECIMAL
  61. #define DEBUG_ECHO_F SERIAL_ECHO_F
  62. #define DEBUG_ECHOLN SERIAL_ECHOLN
  63. #define DEBUG_ECHOPGM SERIAL_ECHOPGM
  64. #define DEBUG_ECHOLNPGM SERIAL_ECHOLNPGM
  65. #define DEBUG_ECHOF SERIAL_ECHOF
  66. #define DEBUG_ECHOLNF SERIAL_ECHOLNF
  67. #define DEBUG_ECHOPGM SERIAL_ECHOPGM
  68. #define DEBUG_ECHOPGM_P SERIAL_ECHOPGM_P
  69. #define DEBUG_ECHOPAIR_F SERIAL_ECHOPAIR_F
  70. #define DEBUG_ECHOPAIR_F_P SERIAL_ECHOPAIR_F_P
  71. #define DEBUG_ECHOLNPGM SERIAL_ECHOLNPGM
  72. #define DEBUG_ECHOLNPGM_P SERIAL_ECHOLNPGM_P
  73. #define DEBUG_ECHOLNPAIR_F SERIAL_ECHOLNPAIR_F
  74. #define DEBUG_ECHOLNPAIR_F_P SERIAL_ECHOLNPAIR_F_P
  75. #define DEBUG_ECHO_MSG SERIAL_ECHO_MSG
  76. #define DEBUG_ERROR_MSG SERIAL_ERROR_MSG
  77. #define DEBUG_EOL SERIAL_EOL
  78. #define DEBUG_FLUSH SERIAL_FLUSH
  79. #define DEBUG_POS SERIAL_POS
  80. #define DEBUG_XYZ SERIAL_XYZ
  81. #define DEBUG_DELAY(ms) serial_delay(ms)
  82. #define DEBUG_SYNCHRONIZE() planner.synchronize()
  83. #else
  84. #define DEBUG_SECTION(...) NOOP
  85. #define DEBUG_ECHO_START() NOOP
  86. #define DEBUG_ERROR_START() NOOP
  87. #define DEBUG_CHAR(...) NOOP
  88. #define DEBUG_ECHO(...) NOOP
  89. #define DEBUG_DECIMAL(...) NOOP
  90. #define DEBUG_ECHO_F(...) NOOP
  91. #define DEBUG_ECHOLN(...) NOOP
  92. #define DEBUG_ECHOPGM(...) NOOP
  93. #define DEBUG_ECHOLNPGM(...) NOOP
  94. #define DEBUG_ECHOF(...) NOOP
  95. #define DEBUG_ECHOLNF(...) NOOP
  96. #define DEBUG_ECHOPGM_P(...) NOOP
  97. #define DEBUG_ECHOLNPGM_P(...) NOOP
  98. #define DEBUG_ECHOPAIR_F(...) NOOP
  99. #define DEBUG_ECHOPAIR_F_P(...) NOOP
  100. #define DEBUG_ECHOLNPAIR_F(...) NOOP
  101. #define DEBUG_ECHOLNPAIR_F_P(...) NOOP
  102. #define DEBUG_ECHO_MSG(...) NOOP
  103. #define DEBUG_ERROR_MSG(...) NOOP
  104. #define DEBUG_EOL() NOOP
  105. #define DEBUG_FLUSH() NOOP
  106. #define DEBUG_POS(...) NOOP
  107. #define DEBUG_XYZ(...) NOOP
  108. #define DEBUG_DELAY(...) NOOP
  109. #define DEBUG_SYNCHRONIZE() NOOP
  110. #endif
  111. #undef DEBUG_OUT