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.

common-dependencies.h 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4. *
  5. * Based on Sprinter and grbl.
  6. * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. /**
  24. * The purpose of this file is just include Marlin Configuration files,
  25. * to discover which FEATURES are enabled, without any HAL include.
  26. * Used by common-dependencies.py
  27. */
  28. #include <stdint.h>
  29. // Include platform headers
  30. //#include "../../../../Marlin/src/HAL/platforms.h"
  31. #include "../../../../Marlin/src/core/boards.h"
  32. #include "../../../../Marlin/src/core/macros.h"
  33. #include "../../../../Marlin/Configuration.h"
  34. #include "../../../../Marlin/Version.h"
  35. #include "../../../../Marlin/src/inc/Conditionals_LCD.h"
  36. #ifdef HAL_PATH
  37. #include HAL_PATH(../../../../Marlin/src/HAL, inc/Conditionals_LCD.h)
  38. #endif
  39. #include "../../../../Marlin/src/core/drivers.h"
  40. #include "../../../../Marlin/Configuration_adv.h"
  41. #include "../../../../Marlin/src/inc/Conditionals_adv.h"
  42. #ifdef HAL_PATH
  43. #include HAL_PATH(../../../../Marlin/src/HAL, inc/Conditionals_adv.h)
  44. #endif
  45. //#include "../../../../Marlin/src/pins/pins.h"
  46. #ifdef HAL_PATH
  47. #include HAL_PATH(../../../../Marlin/src/HAL, timers.h)
  48. #include HAL_PATH(../../../../Marlin/src/HAL, spi_pins.h)
  49. #endif
  50. #include "../../../../Marlin/src/inc/Conditionals_post.h"
  51. #ifdef HAL_PATH
  52. #include HAL_PATH(../../../../Marlin/src/HAL, inc/Conditionals_post.h)
  53. #endif
  54. //
  55. // Conditionals only used for [features]
  56. //
  57. #if ENABLED(SR_LCD_3W_NL)
  58. // Feature checks for SR_LCD_3W_NL
  59. #elif EITHER(LCD_I2C_TYPE_MCP23017, LCD_I2C_TYPE_MCP23008)
  60. #define USES_LIQUIDTWI2
  61. #elif ANY(HAS_CHARACTER_LCD, LCD_I2C_TYPE_PCF8575, LCD_I2C_TYPE_PCA8574, SR_LCD_2W_NL, LCM1602)
  62. #define USES_LIQUIDCRYSTAL
  63. #endif
  64. #if BOTH(ANYCUBIC_LCD_I3MEGA, EXTENSIBLE_UI)
  65. #define HAS_ANYCUBIC_TFT_EXTUI
  66. #endif
  67. #if SAVED_POSITIONS
  68. #define HAS_SAVED_POSITIONS
  69. #endif
  70. #if ENABLED(HOST_PROMPT_SUPPORT) && DISABLED(EMERGENCY_PARSER)
  71. #define HAS_GCODE_M876
  72. #endif
  73. #if PREHEAT_COUNT
  74. #define HAS_PREHEAT_COUNT
  75. #endif
  76. #if EXTRUDERS
  77. #define HAS_EXTRUDERS
  78. #if EXTRUDERS > 1
  79. #define HAS_MULTI_EXTRUDER
  80. #endif
  81. #endif
  82. #if HAS_LCD_MENU
  83. #if ENABLED(BACKLASH_GCODE)
  84. #define HAS_MENU_BACKLASH
  85. #endif
  86. #if ENABLED(LEVEL_BED_CORNERS)
  87. #define HAS_MENU_BED_CORNERS
  88. #endif
  89. #if ENABLED(CANCEL_OBJECTS)
  90. #define HAS_MENU_CANCELOBJECT
  91. #endif
  92. #if ENABLED(CUSTOM_USER_MENUS)
  93. #define HAS_MENU_CUSTOM
  94. #endif
  95. #if EITHER(DELTA_CALIBRATION_MENU, DELTA_AUTO_CALIBRATION)
  96. #define HAS_MENU_DELTA_CALIBRATE
  97. #endif
  98. #if EITHER(LED_CONTROL_MENU, CASE_LIGHT_MENU)
  99. #define HAS_MENU_LED
  100. #endif
  101. #if ENABLED(ADVANCED_PAUSE_FEATURE)
  102. #define HAS_MENU_FILAMENT
  103. #endif
  104. #if ENABLED(SDSUPPORT)
  105. #define HAS_MENU_MEDIA
  106. #endif
  107. #if ENABLED(MIXING_EXTRUDER)
  108. #define HAS_MENU_MIXER
  109. #endif
  110. #if ENABLED(POWER_LOSS_RECOVERY)
  111. #define HAS_MENU_JOB_RECOVERY
  112. #endif
  113. #if HAS_POWER_MONITOR
  114. #define HAS_MENU_POWER_MONITOR
  115. #endif
  116. #if HAS_CUTTER
  117. #define HAS_MENU_CUTTER
  118. #endif
  119. #if HAS_TEMPERATURE
  120. #define HAS_MENU_TEMPERATURE
  121. #endif
  122. #if ENABLED(MMU2_MENUS)
  123. #define HAS_MENU_MMU2
  124. #endif
  125. #if ENABLED(PASSWORD_FEATURE)
  126. #define HAS_MENU_PASSWORD
  127. #endif
  128. #if HAS_TRINAMIC_CONFIG
  129. #define HAS_MENU_TMC
  130. #endif
  131. #if ENABLED(TOUCH_SCREEN_CALIBRATION)
  132. #define HAS_MENU_TOUCH_SCREEN
  133. #endif
  134. #if ENABLED(AUTO_BED_LEVELING_UBL)
  135. #define HAS_MENU_UBL
  136. #endif
  137. #endif