2020-07-20 02:42:30 +00:00
|
|
|
/**
|
|
|
|
* Marlin 3D Printer Firmware
|
|
|
|
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
|
|
|
*
|
|
|
|
* Based on Sprinter and grbl.
|
|
|
|
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2020-07-17 14:30:41 +00:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2020-07-20 02:42:30 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The purpose of this file is just include Marlin Configuration files,
|
|
|
|
* to discover which FEATURES are enabled, without any HAL include.
|
2020-07-26 02:40:44 +00:00
|
|
|
* Used by common-dependencies.py
|
2020-07-20 02:42:30 +00:00
|
|
|
*/
|
|
|
|
|
2020-10-09 21:42:23 +00:00
|
|
|
#include "../../../../Marlin/src/inc/MarlinConfig.h"
|
2020-08-06 13:14:00 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Conditionals only used for [features]
|
|
|
|
//
|
|
|
|
#if ENABLED(SR_LCD_3W_NL)
|
|
|
|
// Feature checks for SR_LCD_3W_NL
|
|
|
|
#elif EITHER(LCD_I2C_TYPE_MCP23017, LCD_I2C_TYPE_MCP23008)
|
|
|
|
#define USES_LIQUIDTWI2
|
2020-10-25 00:46:27 +00:00
|
|
|
#elif ENABLED(LCD_I2C_TYPE_PCA8574)
|
|
|
|
#define USES_LIQUIDCRYSTAL_I2C
|
2021-04-25 22:17:02 +00:00
|
|
|
#elif ANY(HAS_MARLINUI_HD44780, LCD_I2C_TYPE_PCF8575, SR_LCD_2W_NL, LCM1602)
|
2020-08-06 13:14:00 +00:00
|
|
|
#define USES_LIQUIDCRYSTAL
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if SAVED_POSITIONS
|
|
|
|
#define HAS_SAVED_POSITIONS
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if ENABLED(HOST_PROMPT_SUPPORT) && DISABLED(EMERGENCY_PARSER)
|
|
|
|
#define HAS_GCODE_M876
|
|
|
|
#endif
|
|
|
|
|
2020-10-09 21:42:23 +00:00
|
|
|
#if ENABLED(DUET_SMART_EFFECTOR) && PIN_EXISTS(SMART_EFFECTOR_MOD)
|
|
|
|
#define HAS_SMART_EFF_MOD
|
|
|
|
#endif
|
|
|
|
|
2022-01-25 21:33:03 +00:00
|
|
|
#if HAS_MARLINUI_MENU
|
2020-08-06 13:14:00 +00:00
|
|
|
#if ENABLED(BACKLASH_GCODE)
|
|
|
|
#define HAS_MENU_BACKLASH
|
|
|
|
#endif
|
|
|
|
#if ENABLED(LEVEL_BED_CORNERS)
|
|
|
|
#define HAS_MENU_BED_CORNERS
|
|
|
|
#endif
|
|
|
|
#if ENABLED(CANCEL_OBJECTS)
|
|
|
|
#define HAS_MENU_CANCELOBJECT
|
|
|
|
#endif
|
|
|
|
#if EITHER(DELTA_CALIBRATION_MENU, DELTA_AUTO_CALIBRATION)
|
|
|
|
#define HAS_MENU_DELTA_CALIBRATE
|
|
|
|
#endif
|
|
|
|
#if EITHER(LED_CONTROL_MENU, CASE_LIGHT_MENU)
|
|
|
|
#define HAS_MENU_LED
|
|
|
|
#endif
|
|
|
|
#if ENABLED(ADVANCED_PAUSE_FEATURE)
|
|
|
|
#define HAS_MENU_FILAMENT
|
|
|
|
#endif
|
|
|
|
#if ENABLED(SDSUPPORT)
|
|
|
|
#define HAS_MENU_MEDIA
|
|
|
|
#endif
|
|
|
|
#if ENABLED(MIXING_EXTRUDER)
|
|
|
|
#define HAS_MENU_MIXER
|
|
|
|
#endif
|
|
|
|
#if ENABLED(POWER_LOSS_RECOVERY)
|
|
|
|
#define HAS_MENU_JOB_RECOVERY
|
|
|
|
#endif
|
|
|
|
#if HAS_POWER_MONITOR
|
|
|
|
#define HAS_MENU_POWER_MONITOR
|
|
|
|
#endif
|
|
|
|
#if HAS_CUTTER
|
|
|
|
#define HAS_MENU_CUTTER
|
|
|
|
#endif
|
|
|
|
#if HAS_TEMPERATURE
|
|
|
|
#define HAS_MENU_TEMPERATURE
|
|
|
|
#endif
|
|
|
|
#if ENABLED(MMU2_MENUS)
|
|
|
|
#define HAS_MENU_MMU2
|
|
|
|
#endif
|
2020-08-09 01:00:42 +00:00
|
|
|
#if ENABLED(PASSWORD_FEATURE)
|
|
|
|
#define HAS_MENU_PASSWORD
|
|
|
|
#endif
|
2020-08-06 13:14:00 +00:00
|
|
|
#if HAS_TRINAMIC_CONFIG
|
|
|
|
#define HAS_MENU_TMC
|
|
|
|
#endif
|
|
|
|
#if ENABLED(TOUCH_SCREEN_CALIBRATION)
|
|
|
|
#define HAS_MENU_TOUCH_SCREEN
|
|
|
|
#endif
|
2020-11-07 09:20:27 +00:00
|
|
|
#if ENABLED(ASSISTED_TRAMMING_WIZARD)
|
|
|
|
#define HAS_MENU_TRAMMING
|
|
|
|
#endif
|
2020-08-06 13:14:00 +00:00
|
|
|
#if ENABLED(AUTO_BED_LEVELING_UBL)
|
|
|
|
#define HAS_MENU_UBL
|
|
|
|
#endif
|
|
|
|
#endif
|