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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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_MARLINUI_HD44780, LCD_I2C_TYPE_PCF8575, LCD_I2C_TYPE_PCA8574, SR_LCD_2W_NL, LCM1602)
  62. #define USES_LIQUIDCRYSTAL
  63. #endif
  64. #if SAVED_POSITIONS
  65. #define HAS_SAVED_POSITIONS
  66. #endif
  67. #if ENABLED(HOST_PROMPT_SUPPORT) && DISABLED(EMERGENCY_PARSER)
  68. #define HAS_GCODE_M876
  69. #endif
  70. #if EXTRUDERS
  71. #define HAS_EXTRUDERS
  72. #endif
  73. #if HAS_LCD_MENU
  74. #if ENABLED(BACKLASH_GCODE)
  75. #define HAS_MENU_BACKLASH
  76. #endif
  77. #if ENABLED(LEVEL_BED_CORNERS)
  78. #define HAS_MENU_BED_CORNERS
  79. #endif
  80. #if ENABLED(CANCEL_OBJECTS)
  81. #define HAS_MENU_CANCELOBJECT
  82. #endif
  83. #if ENABLED(CUSTOM_USER_MENUS)
  84. #define HAS_MENU_CUSTOM
  85. #endif
  86. #if EITHER(DELTA_CALIBRATION_MENU, DELTA_AUTO_CALIBRATION)
  87. #define HAS_MENU_DELTA_CALIBRATE
  88. #endif
  89. #if EITHER(LED_CONTROL_MENU, CASE_LIGHT_MENU)
  90. #define HAS_MENU_LED
  91. #endif
  92. #if ENABLED(ADVANCED_PAUSE_FEATURE)
  93. #define HAS_MENU_FILAMENT
  94. #endif
  95. #if ENABLED(SDSUPPORT)
  96. #define HAS_MENU_MEDIA
  97. #endif
  98. #if ENABLED(MIXING_EXTRUDER)
  99. #define HAS_MENU_MIXER
  100. #endif
  101. #if ENABLED(POWER_LOSS_RECOVERY)
  102. #define HAS_MENU_JOB_RECOVERY
  103. #endif
  104. #if HAS_POWER_MONITOR
  105. #define HAS_MENU_POWER_MONITOR
  106. #endif
  107. #if HAS_CUTTER
  108. #define HAS_MENU_CUTTER
  109. #endif
  110. #if HAS_TEMPERATURE
  111. #define HAS_MENU_TEMPERATURE
  112. #endif
  113. #if ENABLED(MMU2_MENUS)
  114. #define HAS_MENU_MMU2
  115. #endif
  116. #if ENABLED(PASSWORD_FEATURE)
  117. #define HAS_MENU_PASSWORD
  118. #endif
  119. #if HAS_TRINAMIC_CONFIG
  120. #define HAS_MENU_TMC
  121. #endif
  122. #if ENABLED(TOUCH_SCREEN_CALIBRATION)
  123. #define HAS_MENU_TOUCH_SCREEN
  124. #endif
  125. #if ENABLED(AUTO_BED_LEVELING_UBL)
  126. #define HAS_MENU_UBL
  127. #endif
  128. #endif
  129. // Include pins for the current board. Platform tests will be skipped. No HAL-defined pins.
  130. #include "../../../../Marlin/src/pins/pins.h"