2016-03-25 01:19:46 -05:00
|
|
|
/**
|
2016-03-24 13:01:20 -05:00
|
|
|
* Marlin 3D Printer Firmware
|
2020-02-03 08:00:57 -06:00
|
|
|
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
2016-03-24 13:01:20 -05:00
|
|
|
*
|
|
|
|
* Based on Sprinter and grbl.
|
2019-06-27 23:57:50 -05:00
|
|
|
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
2016-03-24 13:01:20 -05:00
|
|
|
*
|
|
|
|
* 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-22 22:20:14 -05:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2016-03-24 13:01:20 -05:00
|
|
|
*
|
2015-01-25 20:40:00 -06:00
|
|
|
*/
|
2018-10-11 00:58:41 -05:00
|
|
|
#pragma once
|
2015-01-25 20:50:09 -06:00
|
|
|
|
2019-10-15 16:54:37 -05:00
|
|
|
#include "../core/boards.h"
|
|
|
|
|
2017-06-08 18:05:14 -05:00
|
|
|
/**
|
|
|
|
* Include pins definitions
|
|
|
|
*
|
|
|
|
* Pins numbering schemes:
|
|
|
|
*
|
|
|
|
* - Digital I/O pin number if used by READ/WRITE macros. (e.g., X_STEP_DIR)
|
|
|
|
* The FastIO headers map digital pins to their ports and functions.
|
|
|
|
*
|
|
|
|
* - Analog Input number if used by analogRead or DAC. (e.g., TEMP_n_PIN)
|
|
|
|
* These numbers are the same in any pin mapping.
|
|
|
|
*/
|
|
|
|
|
2020-03-01 21:19:02 -06:00
|
|
|
#define MAX_EXTRUDERS 8
|
2017-09-06 06:28:32 -05:00
|
|
|
|
2019-10-15 14:18:46 -05:00
|
|
|
#if MB(RAMPS_13_EFB, RAMPS_14_EFB, RAMPS_PLUS_EFB, RAMPS_14_RE_ARM_EFB, RAMPS_SMART_EFB, RAMPS_DUO_EFB, RAMPS4DUE_EFB)
|
2017-09-06 06:28:32 -05:00
|
|
|
#define IS_RAMPS_EFB
|
2019-10-15 14:18:46 -05:00
|
|
|
#elif MB(RAMPS_13_EEB, RAMPS_14_EEB, RAMPS_PLUS_EEB, RAMPS_14_RE_ARM_EEB, RAMPS_SMART_EEB, RAMPS_DUO_EEB, RAMPS4DUE_EEB)
|
2017-09-06 06:28:32 -05:00
|
|
|
#define IS_RAMPS_EEB
|
2019-10-15 14:18:46 -05:00
|
|
|
#elif MB(RAMPS_13_EFF, RAMPS_14_EFF, RAMPS_PLUS_EFF, RAMPS_14_RE_ARM_EFF, RAMPS_SMART_EFF, RAMPS_DUO_EFF, RAMPS4DUE_EFF)
|
2017-09-06 06:28:32 -05:00
|
|
|
#define IS_RAMPS_EFF
|
2019-10-15 14:18:46 -05:00
|
|
|
#elif MB(RAMPS_13_EEF, RAMPS_14_EEF, RAMPS_PLUS_EEF, RAMPS_14_RE_ARM_EEF, RAMPS_SMART_EEF, RAMPS_DUO_EEF, RAMPS4DUE_EEF)
|
2017-09-06 06:28:32 -05:00
|
|
|
#define IS_RAMPS_EEF
|
2019-10-15 14:18:46 -05:00
|
|
|
#elif MB(RAMPS_13_SF, RAMPS_14_SF, RAMPS_PLUS_SF, RAMPS_14_RE_ARM_SF, RAMPS_SMART_SF, RAMPS_DUO_SF, RAMPS4DUE_SF)
|
2017-09-06 06:28:32 -05:00
|
|
|
#define IS_RAMPS_SF
|
|
|
|
#endif
|
2017-06-17 16:19:42 -05:00
|
|
|
|
2019-07-11 06:11:07 -05:00
|
|
|
#define HAS_FREE_AUX2_PINS !(BOTH(ULTRA_LCD, NEWPANEL) && ANY(PANEL_ONE, VIKI2, miniVIKI, MINIPANEL, REPRAPWORLD_KEYPAD))
|
|
|
|
|
2020-09-23 15:06:36 -05:00
|
|
|
// Test the target within the included pins file
|
|
|
|
#ifdef __MARLIN_PREBUILD__
|
|
|
|
#define NOT_TARGET(V...) 0
|
|
|
|
#else
|
|
|
|
#define NOT_TARGET(V...) NONE(V)
|
|
|
|
#endif
|
|
|
|
|
2017-08-23 18:24:02 -05:00
|
|
|
//
|
|
|
|
// RAMPS 1.3 / 1.4 - ATmega1280, ATmega2560
|
|
|
|
//
|
|
|
|
|
|
|
|
#if MB(RAMPS_OLD)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_RAMPS_OLD.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2015-06-15 01:17:00 -05:00
|
|
|
#elif MB(RAMPS_13_EFB)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_RAMPS_13.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2016-07-30 05:07:20 -05:00
|
|
|
#elif MB(RAMPS_13_EEB)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_RAMPS_13.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2016-07-30 05:07:20 -05:00
|
|
|
#elif MB(RAMPS_13_EFF)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_RAMPS_13.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2016-07-30 05:07:20 -05:00
|
|
|
#elif MB(RAMPS_13_EEF)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_RAMPS_13.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2016-07-30 05:07:20 -05:00
|
|
|
#elif MB(RAMPS_13_SF)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_RAMPS_13.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2015-10-30 20:05:09 -05:00
|
|
|
#elif MB(RAMPS_14_EFB)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_RAMPS.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2016-07-30 05:07:20 -05:00
|
|
|
#elif MB(RAMPS_14_EEB)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_RAMPS.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2016-07-30 05:07:20 -05:00
|
|
|
#elif MB(RAMPS_14_EFF)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_RAMPS.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2016-07-30 05:07:20 -05:00
|
|
|
#elif MB(RAMPS_14_EEF)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_RAMPS.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2016-07-30 05:07:20 -05:00
|
|
|
#elif MB(RAMPS_14_SF)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_RAMPS.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2017-12-05 00:33:25 -06:00
|
|
|
#elif MB(RAMPS_PLUS_EFB)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_RAMPS_PLUS.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2017-12-05 00:33:25 -06:00
|
|
|
#elif MB(RAMPS_PLUS_EEB)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_RAMPS_PLUS.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2017-12-05 00:33:25 -06:00
|
|
|
#elif MB(RAMPS_PLUS_EFF)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_RAMPS_PLUS.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2017-12-05 00:33:25 -06:00
|
|
|
#elif MB(RAMPS_PLUS_EEF)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_RAMPS_PLUS.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2017-12-05 00:33:25 -06:00
|
|
|
#elif MB(RAMPS_PLUS_SF)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_RAMPS_PLUS.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2017-08-23 18:24:02 -05:00
|
|
|
|
|
|
|
//
|
|
|
|
// RAMPS Derivatives - ATmega1280, ATmega2560
|
|
|
|
//
|
|
|
|
|
2015-01-25 20:40:00 -06:00
|
|
|
#elif MB(3DRAG)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_3DRAG.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2015-01-25 20:40:00 -06:00
|
|
|
#elif MB(K8200)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_K8200.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560 (3DRAG)
|
2016-07-02 08:32:21 -05:00
|
|
|
#elif MB(K8400)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_K8400.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560 (3DRAG)
|
2020-05-15 21:11:28 -05:00
|
|
|
#elif MB(K8600)
|
|
|
|
#include "ramps/pins_K8600.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2019-02-04 00:15:08 -06:00
|
|
|
#elif MB(K8800)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_K8800.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560 (3DRAG)
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(BAM_DICE)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_RAMPS.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(BAM_DICE_DUE)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_BAM_DICE_DUE.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(MKS_BASE)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_MKS_BASE_10.h" // ATmega2560 env:mega2560
|
2018-12-30 10:40:22 -06:00
|
|
|
#elif MB(MKS_BASE_14)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_MKS_BASE_14.h" // ATmega2560 env:mega2560
|
2018-04-18 22:58:43 -05:00
|
|
|
#elif MB(MKS_BASE_15)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_MKS_BASE_15.h" // ATmega2560 env:mega2560
|
2020-02-04 23:21:05 -06:00
|
|
|
#elif MB(MKS_BASE_16)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_MKS_BASE_16.h" // ATmega2560 env:mega2560
|
2018-03-03 23:14:52 -06:00
|
|
|
#elif MB(MKS_BASE_HEROIC)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_MKS_BASE_HEROIC.h" // ATmega2560 env:mega2560
|
2018-04-18 22:58:43 -05:00
|
|
|
#elif MB(MKS_GEN_13)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_MKS_GEN_13.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2017-11-02 17:06:08 -05:00
|
|
|
#elif MB(MKS_GEN_L)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_MKS_GEN_L.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2018-08-03 18:14:26 -05:00
|
|
|
#elif MB(KFB_2)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_BIQU_KFB_2.h" // ATmega2560 env:mega2560
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(ZRIB_V20)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_ZRIB_V20.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560 (MKS_GEN_13)
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(FELIX2)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_FELIX2.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(RIGIDBOARD)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_RIGIDBOARD.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(RIGIDBOARD_V2)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_RIGIDBOARD_V2.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(SAINSMART_2IN1)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_SAINSMART_2IN1.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(ULTIMAKER)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_ULTIMAKER.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(ULTIMAKER_OLD)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_ULTIMAKER_OLD.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(AZTEEG_X3)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_AZTEEG_X3.h" // ATmega2560 env:mega2560
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(AZTEEG_X3_PRO)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_AZTEEG_X3_PRO.h" // ATmega2560 env:mega2560
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(ULTIMAIN_2)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_ULTIMAIN_2.h" // ATmega2560 env:mega2560
|
2018-09-24 09:40:48 -05:00
|
|
|
#elif MB(FORMBOT_RAPTOR)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_FORMBOT_RAPTOR.h" // ATmega2560 env:mega2560
|
2018-11-25 19:56:06 -06:00
|
|
|
#elif MB(FORMBOT_RAPTOR2)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_FORMBOT_RAPTOR2.h" // ATmega2560 env:mega2560
|
2018-09-24 09:40:48 -05:00
|
|
|
#elif MB(FORMBOT_TREX2PLUS)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_FORMBOT_TREX2PLUS.h" // ATmega2560 env:mega2560
|
2018-09-06 09:41:59 -05:00
|
|
|
#elif MB(FORMBOT_TREX3)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_FORMBOT_TREX3.h" // ATmega2560 env:mega2560
|
2015-01-25 20:40:00 -06:00
|
|
|
#elif MB(RUMBA)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_RUMBA.h" // ATmega2560 env:mega2560
|
2018-11-25 19:56:06 -06:00
|
|
|
#elif MB(RUMBA_RAISE3D)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_RUMBA_RAISE3D.h" // ATmega2560 env:mega2560
|
2019-01-19 20:19:14 -06:00
|
|
|
#elif MB(RL200)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_RL200.h" // ATmega2560 env:mega2560
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(BQ_ZUM_MEGA_3D)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_BQ_ZUM_MEGA_3D.h" // ATmega2560 env:mega2560
|
2017-10-21 00:31:07 -05:00
|
|
|
#elif MB(MAKEBOARD_MINI)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_MAKEBOARD_MINI.h" // ATmega2560 env:mega2560
|
2018-04-02 22:01:02 -05:00
|
|
|
#elif MB(TRIGORILLA_13)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_TRIGORILLA_13.h" // ATmega2560 env:mega2560
|
2018-04-02 22:11:38 -05:00
|
|
|
#elif MB(TRIGORILLA_14)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_TRIGORILLA_14.h" // ATmega2560 env:mega2560
|
2019-06-22 17:53:45 -05:00
|
|
|
#elif MB(TRIGORILLA_14_11)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_TRIGORILLA_14.h" // ATmega2560 env:mega2560
|
2018-04-02 22:11:38 -05:00
|
|
|
#elif MB(RAMPS_ENDER_4)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_RAMPS_ENDER_4.h" // ATmega2560 env:mega2560
|
2018-10-26 16:09:04 -05:00
|
|
|
#elif MB(RAMPS_CREALITY)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_RAMPS_CREALITY.h" // ATmega2560 env:mega2560
|
2019-06-05 21:23:31 -05:00
|
|
|
#elif MB(RAMPS_DAGOMA)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_RAMPS_DAGOMA.h" // ATmega2560 env:mega2560
|
2018-10-06 13:23:58 -05:00
|
|
|
#elif MB(FYSETC_F6_13)
|
2019-12-02 21:19:23 -06:00
|
|
|
#include "ramps/pins_FYSETC_F6_13.h" // ATmega2560 env:FYSETC_F6_13
|
2020-01-03 20:29:25 -06:00
|
|
|
#elif MB(FYSETC_F6_14)
|
|
|
|
#include "ramps/pins_FYSETC_F6_14.h" // ATmega2560 env:FYSETC_F6_14
|
2018-12-20 17:30:36 -06:00
|
|
|
#elif MB(DUPLICATOR_I3_PLUS)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_DUPLICATOR_I3_PLUS.h" // ATmega2560 env:mega2560
|
2019-01-03 06:27:03 -06:00
|
|
|
#elif MB(VORON)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_VORON.h" // ATmega2560 env:mega2560
|
2019-03-03 07:41:05 -06:00
|
|
|
#elif MB(TRONXY_V3_1_0)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_TRONXY_V3_1_0.h" // ATmega2560 env:mega2560
|
2019-06-13 03:21:18 -05:00
|
|
|
#elif MB(Z_BOLT_X_SERIES)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_Z_BOLT_X_SERIES.h" // ATmega2560 env:mega2560
|
2019-07-14 15:36:03 -05:00
|
|
|
#elif MB(TT_OSCAR)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_TT_OSCAR.h" // ATmega2560 env:mega2560
|
2019-10-28 18:21:59 -05:00
|
|
|
#elif MB(TANGO)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_TANGO.h" // ATmega2560 env:mega2560
|
2019-11-04 16:31:27 -06:00
|
|
|
#elif MB(MKS_GEN_L_V2)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "ramps/pins_MKS_GEN_L_V2.h" // ATmega2560 env:mega2560
|
2020-03-17 15:25:10 -05:00
|
|
|
#elif MB(COPYMASTER_3D)
|
|
|
|
#include "ramps/pins_COPYMASTER_3D.h" // ATmega2560 env:mega2560
|
2020-05-02 22:12:52 -05:00
|
|
|
#elif MB(ORTUR_4)
|
|
|
|
#include "ramps/pins_ORTUR_4.h" // ATmega2560 env:mega2560
|
2020-06-11 20:43:28 -05:00
|
|
|
#elif MB(TENLOG_D3_HERO)
|
|
|
|
#include "ramps/pins_TENLOG_D3_HERO.h" // ATmega2560 env:mega2560
|
2020-09-09 21:48:42 -05:00
|
|
|
#elif MB(MKS_GEN_L_V21)
|
|
|
|
#include "ramps/pins_MKS_GEN_L_V21.h" // ATmega2560 env:mega2560
|
2019-11-04 16:31:27 -06:00
|
|
|
|
2019-07-11 02:32:24 -05:00
|
|
|
//
|
|
|
|
// RAMBo and derivatives
|
|
|
|
//
|
|
|
|
|
|
|
|
#elif MB(RAMBO)
|
|
|
|
#include "rambo/pins_RAMBO.h" // ATmega2560 env:rambo
|
2019-10-15 14:18:46 -05:00
|
|
|
#elif MB(MINIRAMBO, MINIRAMBO_10A)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "rambo/pins_MINIRAMBO.h" // ATmega2560 env:rambo
|
|
|
|
#elif MB(EINSY_RAMBO)
|
|
|
|
#include "rambo/pins_EINSY_RAMBO.h" // ATmega2560 env:rambo
|
|
|
|
#elif MB(EINSY_RETRO)
|
|
|
|
#include "rambo/pins_EINSY_RETRO.h" // ATmega2560 env:rambo
|
|
|
|
#elif MB(SCOOVO_X9H)
|
|
|
|
#include "rambo/pins_SCOOVO_X9H.h" // ATmega2560 env:rambo
|
2017-08-23 18:24:02 -05:00
|
|
|
|
|
|
|
//
|
|
|
|
// Other ATmega1280, ATmega2560
|
|
|
|
//
|
|
|
|
|
|
|
|
#elif MB(CNCONTROLS_11)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "mega/pins_CNCONTROLS_11.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(CNCONTROLS_12)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "mega/pins_CNCONTROLS_12.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2019-08-20 03:40:48 -05:00
|
|
|
#elif MB(CNCONTROLS_15)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "mega/pins_CNCONTROLS_15.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(MIGHTYBOARD_REVE)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "mega/pins_MIGHTYBOARD_REVE.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(CHEAPTRONIC)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "mega/pins_CHEAPTRONIC.h" // ATmega2560 env:mega2560
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(CHEAPTRONIC_V2)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "mega/pins_CHEAPTRONICv2.h" // ATmega2560 env:mega2560
|
2015-01-25 20:40:00 -06:00
|
|
|
#elif MB(MEGATRONICS)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "mega/pins_MEGATRONICS.h" // ATmega2560 env:mega2560
|
2015-01-27 17:54:46 -06:00
|
|
|
#elif MB(MEGATRONICS_2)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "mega/pins_MEGATRONICS_2.h" // ATmega2560 env:mega2560
|
2019-10-15 14:18:46 -05:00
|
|
|
#elif MB(MEGATRONICS_3, MEGATRONICS_31, MEGATRONICS_32)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "mega/pins_MEGATRONICS_3.h" // ATmega2560 env:mega2560
|
2015-01-25 20:40:00 -06:00
|
|
|
#elif MB(ELEFU_3)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "mega/pins_ELEFU_3.h" // ATmega2560 env:mega2560
|
2015-01-25 20:40:00 -06:00
|
|
|
#elif MB(LEAPFROG)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "mega/pins_LEAPFROG.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2015-07-22 04:35:02 -05:00
|
|
|
#elif MB(MEGACONTROLLER)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "mega/pins_MEGACONTROLLER.h" // ATmega2560 env:mega2560
|
2017-05-23 15:53:29 -05:00
|
|
|
#elif MB(GT2560_REV_A)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "mega/pins_GT2560_REV_A.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2017-05-23 15:53:29 -05:00
|
|
|
#elif MB(GT2560_REV_A_PLUS)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "mega/pins_GT2560_REV_A_PLUS.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2018-10-06 12:26:49 -05:00
|
|
|
#elif MB(GT2560_V3)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "mega/pins_GT2560_V3.h" // ATmega2560 env:mega2560
|
2018-10-06 12:26:49 -05:00
|
|
|
#elif MB(GT2560_V3_MC2)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "mega/pins_GT2560_V3_MC2.h" // ATmega2560 env:mega2560
|
2019-01-26 16:16:21 -06:00
|
|
|
#elif MB(GT2560_V3_A20)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "mega/pins_GT2560_V3_A20.h" // ATmega2560 env:mega2560
|
2018-07-26 05:52:22 -05:00
|
|
|
#elif MB(EINSTART_S)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "mega/pins_EINSTART-S.h" // ATmega1280, ATmega2560 env:mega1280 env:mega2560
|
2019-07-11 04:36:51 -05:00
|
|
|
#elif MB(WANHAO_ONEPLUS)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "mega/pins_WANHAO_ONEPLUS.h" // ATmega2560 env:mega2560
|
2019-07-31 21:15:36 -05:00
|
|
|
#elif MB(OVERLORD)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "mega/pins_OVERLORD.h" // ATmega2560 env:mega2560
|
2019-08-21 05:33:17 -05:00
|
|
|
#elif MB(HJC2560C_REV2)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "mega/pins_HJC2560C_REV2.h" // ATmega2560 env:mega2560
|
2020-01-02 22:04:13 -06:00
|
|
|
#elif MB(LEAPFROG_XEED2015)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "mega/pins_LEAPFROG_XEED2015.h" // ATmega2560 env:mega2560
|
2020-02-21 08:27:32 -06:00
|
|
|
#elif MB(PICA)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "mega/pins_PICA.h" // ATmega2560 env:mega2560
|
2020-02-21 08:27:32 -06:00
|
|
|
#elif MB(PICA_REVB)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "mega/pins_PICAOLD.h" // ATmega2560 env:mega2560
|
2020-03-27 21:08:47 -05:00
|
|
|
#elif MB(INTAMSYS40)
|
|
|
|
#include "mega/pins_INTAMSYS40.h" // ATmega2560 env:mega2560
|
2017-08-23 18:24:02 -05:00
|
|
|
|
|
|
|
//
|
|
|
|
// ATmega1281, ATmega2561
|
|
|
|
//
|
|
|
|
|
|
|
|
#elif MB(MINITRONICS)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "mega/pins_MINITRONICS.h" // ATmega1281 env:mega1280
|
2017-10-27 03:42:04 -05:00
|
|
|
#elif MB(SILVER_GATE)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "mega/pins_SILVER_GATE.h" // ATmega2561 env:mega2560
|
2017-08-23 18:24:02 -05:00
|
|
|
|
|
|
|
//
|
|
|
|
// Sanguinololu and Derivatives - ATmega644P, ATmega1284P
|
|
|
|
//
|
|
|
|
|
|
|
|
#elif MB(SANGUINOLOLU_11)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "sanguino/pins_SANGUINOLOLU_11.h" // ATmega644P, ATmega1284P env:sanguino644p env:sanguino1284p
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(SANGUINOLOLU_12)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "sanguino/pins_SANGUINOLOLU_12.h" // ATmega644P, ATmega1284P env:sanguino644p env:sanguino1284p
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(MELZI)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "sanguino/pins_MELZI.h" // ATmega644P, ATmega1284P env:sanguino644p env:sanguino1284p
|
2020-06-04 19:55:39 -05:00
|
|
|
#elif MB(MELZI_V2)
|
|
|
|
#include "sanguino/pins_MELZI_V2.h" // ATmega644P, ATmega1284P env:sanguino644p env:sanguino1284p
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(MELZI_MAKR3D)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "sanguino/pins_MELZI_MAKR3D.h" // ATmega644P, ATmega1284P env:sanguino644p env:sanguino1284p
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(MELZI_CREALITY)
|
2020-06-14 20:09:25 -05:00
|
|
|
#include "sanguino/pins_MELZI_CREALITY.h" // ATmega1284P env:melzi env:melzi_optimized env:melzi_optiboot
|
2018-01-12 01:07:25 -06:00
|
|
|
#elif MB(MELZI_MALYAN)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "sanguino/pins_MELZI_MALYAN.h" // ATmega644P, ATmega1284P env:sanguino644p env:sanguino1284p
|
2018-02-10 14:47:23 -06:00
|
|
|
#elif MB(MELZI_TRONXY)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "sanguino/pins_MELZI_TRONXY.h" // ATmega644P, ATmega1284P env:sanguino644p env:sanguino1284p
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(STB_11)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "sanguino/pins_STB_11.h" // ATmega644P, ATmega1284P env:sanguino644p env:sanguino1284p
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(AZTEEG_X1)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "sanguino/pins_AZTEEG_X1.h" // ATmega644P, ATmega1284P env:sanguino644p env:sanguino1284p
|
2020-08-07 17:03:59 -05:00
|
|
|
#elif MB(ZMIB_V2)
|
|
|
|
#include "sanguino/pins_ZMIB_V2.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
|
2017-08-23 18:24:02 -05:00
|
|
|
|
|
|
|
//
|
|
|
|
// Other ATmega644P, ATmega644, ATmega1284P
|
|
|
|
//
|
|
|
|
|
|
|
|
#elif MB(GEN3_MONOLITHIC)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "sanguino/pins_GEN3_MONOLITHIC.h" // ATmega644P env:sanguino644p
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(GEN3_PLUS)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "sanguino/pins_GEN3_PLUS.h" // ATmega644P, ATmega1284P env:sanguino644p env:sanguino1284p
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(GEN6)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "sanguino/pins_GEN6.h" // ATmega644P, ATmega1284P env:sanguino644p env:sanguino1284p
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(GEN6_DELUXE)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "sanguino/pins_GEN6_DELUXE.h" // ATmega644P, ATmega1284P env:sanguino644p env:sanguino1284p
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(GEN7_CUSTOM)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "sanguino/pins_GEN7_CUSTOM.h" // ATmega644P, ATmega644, ATmega1284P env:sanguino644p env:sanguino1284p
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(GEN7_12)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "sanguino/pins_GEN7_12.h" // ATmega644P, ATmega644, ATmega1284P env:sanguino644p env:sanguino1284p
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(GEN7_13)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "sanguino/pins_GEN7_13.h" // ATmega644P, ATmega644, ATmega1284P env:sanguino644p env:sanguino1284p
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(GEN7_14)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "sanguino/pins_GEN7_14.h" // ATmega644P, ATmega644, ATmega1284P env:sanguino644p env:sanguino1284p
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(OMCA_A)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "sanguino/pins_OMCA_A.h" // ATmega644 env:sanguino644p
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(OMCA)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "sanguino/pins_OMCA.h" // ATmega644P, ATmega644 env:sanguino644p
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(ANET_10)
|
2020-03-11 15:08:47 -05:00
|
|
|
#include "sanguino/pins_ANET_10.h" // ATmega1284P env:sanguino1284p
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(SETHI)
|
2020-03-01 17:39:46 -06:00
|
|
|
#include "sanguino/pins_SETHI.h" // ATmega644P, ATmega644, ATmega1284P env:sanguino644p env:sanguino1284p
|
2017-08-23 18:24:02 -05:00
|
|
|
|
|
|
|
//
|
|
|
|
// Teensyduino - AT90USB1286, AT90USB1286P
|
|
|
|
//
|
|
|
|
|
|
|
|
#elif MB(TEENSYLU)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "teensy2/pins_TEENSYLU.h" // AT90USB1286, AT90USB1286P env:at90usb1286_cdc
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(PRINTRBOARD)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "teensy2/pins_PRINTRBOARD.h" // AT90USB1286 env:at90usb1286_dfu
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(PRINTRBOARD_REVF)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "teensy2/pins_PRINTRBOARD_REVF.h" // AT90USB1286 env:at90usb1286_dfu
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(BRAINWAVE)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "teensy2/pins_BRAINWAVE.h" // AT90USB646 env:at90usb1286_cdc
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(BRAINWAVE_PRO)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "teensy2/pins_BRAINWAVE_PRO.h" // AT90USB1286 env:at90usb1286_cdc
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(SAV_MKI)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "teensy2/pins_SAV_MKI.h" // AT90USB1286 env:at90usb1286_cdc
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(TEENSY2)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "teensy2/pins_TEENSY2.h" // AT90USB1286 env:teensy20
|
2017-08-23 18:24:02 -05:00
|
|
|
#elif MB(5DPRINT)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "teensy2/pins_5DPRINT.h" // AT90USB1286 env:at90usb1286_dfu
|
2017-08-23 18:24:02 -05:00
|
|
|
|
2017-06-17 18:36:10 -05:00
|
|
|
//
|
2018-05-22 21:20:24 -05:00
|
|
|
// LPC1768 ARM Cortex M3
|
2017-06-17 16:19:42 -05:00
|
|
|
//
|
|
|
|
|
|
|
|
#elif MB(RAMPS_14_RE_ARM_EFB)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "lpc1768/pins_RAMPS_RE_ARM.h" // LPC1768 env:LPC1768
|
2017-06-17 16:19:42 -05:00
|
|
|
#elif MB(RAMPS_14_RE_ARM_EEB)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "lpc1768/pins_RAMPS_RE_ARM.h" // LPC1768 env:LPC1768
|
2017-06-17 16:19:42 -05:00
|
|
|
#elif MB(RAMPS_14_RE_ARM_EFF)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "lpc1768/pins_RAMPS_RE_ARM.h" // LPC1768 env:LPC1768
|
2017-06-17 16:19:42 -05:00
|
|
|
#elif MB(RAMPS_14_RE_ARM_EEF)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "lpc1768/pins_RAMPS_RE_ARM.h" // LPC1768 env:LPC1768
|
2017-06-17 16:19:42 -05:00
|
|
|
#elif MB(RAMPS_14_RE_ARM_SF)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "lpc1768/pins_RAMPS_RE_ARM.h" // LPC1768 env:LPC1768
|
2018-05-22 21:20:24 -05:00
|
|
|
#elif MB(MKS_SBASE)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "lpc1768/pins_MKS_SBASE.h" // LPC1768 env:LPC1768
|
2019-06-26 04:17:06 -05:00
|
|
|
#elif MB(MKS_SGEN_L)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "lpc1768/pins_MKS_SGEN_L.h" // LPC1768 env:LPC1768
|
2018-05-22 21:20:24 -05:00
|
|
|
#elif MB(AZSMZ_MINI)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "lpc1768/pins_AZSMZ_MINI.h" // LPC1768 env:LPC1768
|
2018-05-22 21:20:24 -05:00
|
|
|
#elif MB(BIQU_BQ111_A4)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "lpc1768/pins_BIQU_BQ111_A4.h" // LPC1768 env:LPC1768
|
2018-05-22 21:20:24 -05:00
|
|
|
#elif MB(SELENA_COMPACT)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "lpc1768/pins_SELENA_COMPACT.h" // LPC1768 env:LPC1768
|
2018-12-27 10:52:35 -06:00
|
|
|
#elif MB(BIQU_B300_V1_0)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "lpc1768/pins_BIQU_B300_V1.0.h" // LPC1768 env:LPC1768
|
2019-07-09 00:30:08 -05:00
|
|
|
#elif MB(GMARSH_X6_REV1)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "lpc1768/pins_GMARSH_X6_REV1.h" // LPC1768 env:LPC1768
|
2020-02-04 01:24:11 -06:00
|
|
|
#elif MB(BTT_SKR_V1_1)
|
2019-12-19 02:41:35 -06:00
|
|
|
#include "lpc1768/pins_BTT_SKR_V1_1.h" // LPC1768 env:LPC1768
|
2020-02-04 01:24:11 -06:00
|
|
|
#elif MB(BTT_SKR_V1_3)
|
2019-12-19 02:41:35 -06:00
|
|
|
#include "lpc1768/pins_BTT_SKR_V1_3.h" // LPC1768 env:LPC1768
|
2020-02-04 01:24:11 -06:00
|
|
|
#elif MB(BTT_SKR_V1_4)
|
2019-12-19 02:41:35 -06:00
|
|
|
#include "lpc1768/pins_BTT_SKR_V1_4.h" // LPC1768 env:LPC1768
|
2018-05-31 00:06:26 -05:00
|
|
|
|
2017-06-17 16:19:42 -05:00
|
|
|
//
|
2019-07-11 02:32:24 -05:00
|
|
|
// LPC1769 ARM Cortex M3
|
|
|
|
//
|
|
|
|
|
|
|
|
#elif MB(MKS_SGEN)
|
|
|
|
#include "lpc1769/pins_MKS_SGEN.h" // LPC1769 env:LPC1769
|
|
|
|
#elif MB(AZTEEG_X5_GT)
|
|
|
|
#include "lpc1769/pins_AZTEEG_X5_GT.h" // LPC1769 env:LPC1769
|
|
|
|
#elif MB(AZTEEG_X5_MINI)
|
|
|
|
#include "lpc1769/pins_AZTEEG_X5_MINI.h" // LPC1769 env:LPC1769
|
|
|
|
#elif MB(AZTEEG_X5_MINI_WIFI)
|
|
|
|
#include "lpc1769/pins_AZTEEG_X5_MINI_WIFI.h" // LPC1769 env:LPC1769
|
|
|
|
#elif MB(COHESION3D_REMIX)
|
|
|
|
#include "lpc1769/pins_COHESION3D_REMIX.h" // LPC1769 env:LPC1769
|
|
|
|
#elif MB(COHESION3D_MINI)
|
|
|
|
#include "lpc1769/pins_COHESION3D_MINI.h" // LPC1769 env:LPC1769
|
|
|
|
#elif MB(SMOOTHIEBOARD)
|
|
|
|
#include "lpc1769/pins_SMOOTHIEBOARD.h" // LPC1769 env:LPC1769
|
2019-08-13 00:03:42 -05:00
|
|
|
#elif MB(TH3D_EZBOARD)
|
|
|
|
#include "lpc1769/pins_TH3D_EZBOARD.h" // LPC1769 env:LPC1769
|
2020-02-04 01:24:11 -06:00
|
|
|
#elif MB(BTT_SKR_V1_4_TURBO)
|
2020-01-02 21:15:34 -06:00
|
|
|
#include "lpc1769/pins_BTT_SKR_V1_4_TURBO.h" // LPC1769 env:LPC1769
|
2020-09-01 18:20:16 -05:00
|
|
|
#elif MB(MKS_SGEN_L_V2)
|
|
|
|
#include "lpc1769/pins_MKS_SGEN_L_V2.h" // LPC1769 env:LPC1769
|
2020-09-24 21:19:04 -05:00
|
|
|
#elif MB(BTT_SKR_E3_TURBO)
|
|
|
|
#include "lpc1769/pins_BTT_SKR_E3_TURBO.h" // LPC1769 env:LPC1769
|
2019-07-11 02:32:24 -05:00
|
|
|
|
|
|
|
//
|
|
|
|
// Due (ATSAM) boards
|
2017-06-17 18:36:10 -05:00
|
|
|
//
|
|
|
|
|
|
|
|
#elif MB(DUE3DOM)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "sam/pins_DUE3DOM.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-17 18:36:10 -05:00
|
|
|
#elif MB(DUE3DOM_MINI)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "sam/pins_DUE3DOM_MINI.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-17 18:36:10 -05:00
|
|
|
#elif MB(RADDS)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "sam/pins_RADDS.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2018-07-25 19:32:27 -05:00
|
|
|
#elif MB(RURAMPS4D_11)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "sam/pins_RURAMPS4D_11.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2018-07-25 19:32:27 -05:00
|
|
|
#elif MB(RURAMPS4D_13)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "sam/pins_RURAMPS4D_13.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-10-06 13:27:15 -05:00
|
|
|
#elif MB(RAMPS_FD_V1)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "sam/pins_RAMPS_FD_V1.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-17 18:36:10 -05:00
|
|
|
#elif MB(RAMPS_FD_V2)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "sam/pins_RAMPS_FD_V2.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-17 18:36:10 -05:00
|
|
|
#elif MB(RAMPS_SMART_EFB)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "sam/pins_RAMPS_SMART.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-17 18:36:10 -05:00
|
|
|
#elif MB(RAMPS_SMART_EEB)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "sam/pins_RAMPS_SMART.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-17 18:36:10 -05:00
|
|
|
#elif MB(RAMPS_SMART_EFF)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "sam/pins_RAMPS_SMART.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-17 18:36:10 -05:00
|
|
|
#elif MB(RAMPS_SMART_EEF)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "sam/pins_RAMPS_SMART.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-17 18:36:10 -05:00
|
|
|
#elif MB(RAMPS_SMART_SF)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "sam/pins_RAMPS_SMART.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-17 18:36:10 -05:00
|
|
|
#elif MB(RAMPS_DUO_EFB)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "sam/pins_RAMPS_DUO.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-17 18:36:10 -05:00
|
|
|
#elif MB(RAMPS_DUO_EEB)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "sam/pins_RAMPS_DUO.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-17 18:36:10 -05:00
|
|
|
#elif MB(RAMPS_DUO_EFF)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "sam/pins_RAMPS_DUO.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-17 18:36:10 -05:00
|
|
|
#elif MB(RAMPS_DUO_EEF)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "sam/pins_RAMPS_DUO.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-17 18:36:10 -05:00
|
|
|
#elif MB(RAMPS_DUO_SF)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "sam/pins_RAMPS_DUO.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-17 18:36:10 -05:00
|
|
|
#elif MB(RAMPS4DUE_EFB)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "sam/pins_RAMPS4DUE.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-17 18:36:10 -05:00
|
|
|
#elif MB(RAMPS4DUE_EEB)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "sam/pins_RAMPS4DUE.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-17 18:36:10 -05:00
|
|
|
#elif MB(RAMPS4DUE_EFF)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "sam/pins_RAMPS4DUE.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-17 18:36:10 -05:00
|
|
|
#elif MB(RAMPS4DUE_EEF)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "sam/pins_RAMPS4DUE.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-17 18:36:10 -05:00
|
|
|
#elif MB(RAMPS4DUE_SF)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "sam/pins_RAMPS4DUE.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-11-21 03:13:59 -06:00
|
|
|
#elif MB(ULTRATRONICS_PRO)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "sam/pins_ULTRATRONICS_PRO.h" // SAM3X8E env:DUE env:DUE_debug
|
2018-11-14 00:27:39 -06:00
|
|
|
#elif MB(ARCHIM1)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "sam/pins_ARCHIM1.h" // SAM3X8E env:DUE env:DUE_debug
|
2017-11-03 04:48:15 -05:00
|
|
|
#elif MB(ARCHIM2)
|
2020-04-04 02:18:01 -05:00
|
|
|
#include "sam/pins_ARCHIM2.h" // SAM3X8E env:DUE_archim env:DUE_archim_debug
|
2017-06-17 18:36:10 -05:00
|
|
|
#elif MB(ALLIGATOR)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "sam/pins_ALLIGATOR_R2.h" // SAM3X8E env:DUE env:DUE_debug
|
2019-01-19 23:43:32 -06:00
|
|
|
#elif MB(ADSK)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "sam/pins_ADSK.h" // SAM3X8E env:DUE env:DUE_debug
|
2019-02-26 21:03:13 -06:00
|
|
|
#elif MB(PRINTRBOARD_G2)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "sam/pins_PRINTRBOARD_G2.h" // SAM3X8C env:DUE_USB
|
2020-01-21 01:10:31 -06:00
|
|
|
#elif MB(CNCONTROLS_15D)
|
|
|
|
#include "sam/pins_CNCONTROLS_15D.h" // SAM3X8E env:DUE env:DUE_USB
|
2018-05-22 21:20:24 -05:00
|
|
|
|
2020-04-17 09:10:41 -05:00
|
|
|
//
|
|
|
|
// STM32 ARM Cortex-M0
|
|
|
|
//
|
2020-05-04 14:37:43 -05:00
|
|
|
#elif MB(MALYAN_M200_V2)
|
2020-09-07 21:41:48 -05:00
|
|
|
#include "stm32f0/pins_MALYAN_M200_V2.h" // STM32F0 env:STM32F070RB_malyan env:STM32F070CB_malyan
|
2020-04-17 09:10:41 -05:00
|
|
|
#elif MB(MALYAN_M300)
|
|
|
|
#include "stm32f0/pins_MALYAN_M300.h" // STM32F070 env:malyan_M300
|
|
|
|
|
2018-05-22 21:20:24 -05:00
|
|
|
//
|
|
|
|
// STM32 ARM Cortex-M3
|
2018-05-31 00:06:26 -05:00
|
|
|
//
|
|
|
|
|
2019-09-29 02:04:53 -05:00
|
|
|
#elif MB(STM32F103RE)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f1/pins_STM32F1R.h" // STM32F1 env:STM32F103RE
|
[2.0.x] Multiple updates to STM32F1 HAL (#8733)
* STM32F1 HAL
Adding files for STM32F1 HAL based on libmaple/stm32duino core.
Current persistent_store uses cardreader changes to be sent in separate
commit, but could be changed to use i2c eeprom.
There is another persistent_store implementation that uses the MCU flash memory
to emulate eeprom
Adding readme with some information about the stm32 HAL.
* Switch to Timer4 to avoid a hard reset on STM32F103C6 boards
On bluepill STM32F103C6 boards, using Timer5 results in a error() vector call. Switch to 4 since these are both general purpose, 16 bit timers.
* Add support for EEPROM emulation using Flash
Some low end machines doe not have EEPROM support. Simulate it using the last two pages of flash. Flash does not allow rewrite between erases, so skip writing the working version if that's enabled.
* Basic Pins for a malyan M200
This is a work in progress to go hand in hand with the STM32 work.
* Add support for ADC with DMA. This work has exposed a problem with the pin enumerations in STM boards vs what marlin expects (i.e, try defining PA0 as a temp pin). The hack can be removed with we go to fastio completely. To see this work, set something in adc_pins to a value like PA0 and connect your pullup resistor'd thermistor.
* Missing file - change HAL_adc_init to actually do something
We have an actual ADC init function now.
* Remove pinmode hack
Remove the pin mode hack that I was using to init PA0.
Updated Readme.md
* Several changes to timers and GPIO
Faster GPIO, and faster timer functions by accesing registers and
libmaple.
Still more changes pending for the Timer's code to skip using the
HardwareTimer class altogether.
Switch all enums to be within #defines
This change allows a user to have, for instance, TEMP_4 and TEMP_BED definied but nothing else. The enums which are not defined move "out", allowing the first ones to take the slots in the enum, and since the array is sized on ADC_PIN_COUNT, we always have the right size data and in order.
* Update Malyan M200 pins
Update Malyan M200 pins with correct fan values.
* Test all pins on actual hardware, update definitions
Some of the pin definitions were from knowlege base/pdfs. Now they've been tested against actual hardware. This should be very close to final.
* Update HAL_timers_Stm32f1.cpp
* Add sample configurations for Malyan M200
Add sample configuration for Malyan M200 without bed leveling, and move fan to auto cool E0 since this printer by default has only one fan.
Choose the timer based on MCU defintion. Timer5 is not valid on C8/CB class boards, so use Timer4 for the step timer.
readme.md update
* Updates to timers, and some stm32 boards definitiions
* Correct pin toggle macro.
* Remove duplicated Malyan M200 entry from pins.h
* Update configuration_store.cpp
* Formatting, indentation
* Formatting in HAL_Stm32f1.cpp
2017-12-10 23:12:45 -06:00
|
|
|
#elif MB(MALYAN_M200)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f1/pins_MALYAN_M200.h" // STM32F1 env:STM32F103CB_malyan
|
2019-07-27 21:21:54 -05:00
|
|
|
#elif MB(STM3R_MINI)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f1/pins_STM3R_MINI.h" // STM32F1 env:STM32F103RE
|
2018-05-31 00:11:38 -05:00
|
|
|
#elif MB(GTM32_PRO_VB)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f1/pins_GTM32_PRO_VB.h" // STM32F1 env:STM32F103RE
|
2019-12-01 21:25:45 -06:00
|
|
|
#elif MB(GTM32_MINI)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f1/pins_GTM32_MINI.h" // STM32F1 env:STM32F103RE
|
2020-09-20 19:07:59 -05:00
|
|
|
#elif MB(GTM32_MINI_A30)
|
|
|
|
#include "stm32f1/pins_GTM32_MINI_A30.h" // STM32F1 env:STM32F103RE
|
2019-12-01 21:25:45 -06:00
|
|
|
#elif MB(GTM32_REV_B)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f1/pins_GTM32_REV_B.h" // STM32F1 env:STM32F103RE
|
2018-08-27 21:28:03 -05:00
|
|
|
#elif MB(MORPHEUS)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f1/pins_MORPHEUS.h" // STM32F1 env:STM32F103RE
|
2019-07-27 21:21:54 -05:00
|
|
|
#elif MB(CHITU3D)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f1/pins_CHITU3D.h" // STM32F1 env:STM32F103RE
|
2018-12-20 17:23:27 -06:00
|
|
|
#elif MB(MKS_ROBIN)
|
2020-07-30 01:43:19 -05:00
|
|
|
#include "stm32f1/pins_MKS_ROBIN.h" // STM32F1 env:mks_robin env:mks_robin_stm32
|
2019-06-24 03:42:22 -05:00
|
|
|
#elif MB(MKS_ROBIN_MINI)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f1/pins_MKS_ROBIN_MINI.h" // STM32F1 env:mks_robin_mini
|
2019-06-27 21:33:41 -05:00
|
|
|
#elif MB(MKS_ROBIN_NANO)
|
2020-07-25 23:08:30 -05:00
|
|
|
#include "stm32f1/pins_MKS_ROBIN_NANO.h" // STM32F1 env:mks_robin_nano35
|
2020-07-25 00:52:07 -05:00
|
|
|
#elif MB(MKS_ROBIN_NANO_V2)
|
2020-07-25 23:08:30 -05:00
|
|
|
#include "stm32f1/pins_MKS_ROBIN_NANO_V2.h" // STM32F1 env:mks_robin_nano35
|
2019-07-28 14:56:05 -05:00
|
|
|
#elif MB(MKS_ROBIN_LITE)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f1/pins_MKS_ROBIN_LITE.h" // STM32F1 env:mks_robin_lite
|
2020-09-20 19:07:59 -05:00
|
|
|
#elif MB(MKS_ROBIN_LITE3)
|
|
|
|
#include "stm32f1/pins_MKS_ROBIN_LITE3.h" // STM32F1 env:mks_robin_lite3
|
|
|
|
#elif MB(MKS_ROBIN_PRO)
|
|
|
|
#include "stm32f1/pins_MKS_ROBIN_PRO.h" // STM32F1 env:mks_robin_pro
|
|
|
|
#elif MB(MKS_ROBIN_E3)
|
|
|
|
#include "stm32f1/pins_MKS_ROBIN_E3.h" // STM32F1 env:mks_robin_e3
|
|
|
|
#elif MB(MKS_ROBIN_E3D)
|
|
|
|
#include "stm32f1/pins_MKS_ROBIN_E3D.h" // STM32F1 env:mks_robin_e3
|
2020-09-20 20:55:02 -05:00
|
|
|
#elif MB(MKS_ROBIN_E3P)
|
|
|
|
#include "stm32f1/pins_MKS_ROBIN_E3P.h" // STM32F1 env:mks_robin_e3p
|
2020-02-04 01:24:11 -06:00
|
|
|
#elif MB(BTT_SKR_MINI_V1_1)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f1/pins_BTT_SKR_MINI_V1_1.h" // STM32F1 env:STM32F103RC_btt env:STM32F103RC_btt_512K env:STM32F103RC_btt_USB env:STM32F103RC_btt_512K_USB
|
2019-11-20 00:06:26 -06:00
|
|
|
#elif MB(BTT_SKR_MINI_E3_V1_0)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f1/pins_BTT_SKR_MINI_E3_V1_0.h" // STM32F1 env:STM32F103RC_btt env:STM32F103RC_btt_512K env:STM32F103RC_btt_USB env:STM32F103RC_btt_512K_USB
|
2019-10-07 15:45:11 -05:00
|
|
|
#elif MB(BTT_SKR_MINI_E3_V1_2)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f1/pins_BTT_SKR_MINI_E3_V1_2.h" // STM32F1 env:STM32F103RC_btt env:STM32F103RC_btt_512K env:STM32F103RC_btt_USB env:STM32F103RC_btt_512K_USB
|
2020-05-30 23:27:21 -05:00
|
|
|
#elif MB(BTT_SKR_MINI_E3_V2_0)
|
|
|
|
#include "stm32f1/pins_BTT_SKR_MINI_E3_V2_0.h" // STM32F1 env:STM32F103RC_btt env:STM32F103RC_btt_512K env:STM32F103RC_btt_USB env:STM32F103RC_btt_512K_USB
|
2020-02-04 01:24:11 -06:00
|
|
|
#elif MB(BTT_SKR_E3_DIP)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f1/pins_BTT_SKR_E3_DIP.h" // STM32F1 env:STM32F103RE_btt env:STM32F103RE_btt_USB env:STM32F103RC_btt env:STM32F103RC_btt_512K env:STM32F103RC_btt_USB env:STM32F103RC_btt_512K_USB
|
2019-06-15 14:28:22 -05:00
|
|
|
#elif MB(JGAURORA_A5S_A1)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f1/pins_JGAURORA_A5S_A1.h" // STM32F1 env:jgaurora_a5s_a1
|
2019-06-26 00:40:29 -05:00
|
|
|
#elif MB(FYSETC_AIO_II)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f1/pins_FYSETC_AIO_II.h" // STM32F1 env:STM32F103RC_fysetc
|
2019-06-26 00:40:29 -05:00
|
|
|
#elif MB(FYSETC_CHEETAH)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f1/pins_FYSETC_CHEETAH.h" // STM32F1 env:STM32F103RC_fysetc
|
2019-07-27 21:21:54 -05:00
|
|
|
#elif MB(FYSETC_CHEETAH_V12)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f1/pins_FYSETC_CHEETAH_V12.h" // STM32F1 env:STM32F103RC_fysetc
|
2019-07-27 21:21:54 -05:00
|
|
|
#elif MB(LONGER3D_LK)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f1/pins_LONGER3D_LK.h" // STM32F1 env:STM32F103VE_longer
|
2020-06-01 18:25:13 -05:00
|
|
|
#elif MB(CCROBOT_MEEB_3DP)
|
2020-05-31 02:12:29 -05:00
|
|
|
#include "stm32f1/pins_CCROBOT_MEEB_3DP.h" // STM32F1 env:STM32F103RC_meeb
|
2020-06-10 17:16:22 -05:00
|
|
|
#elif MB(CHITU3D_V5)
|
2020-07-19 21:42:30 -05:00
|
|
|
#include "stm32f1/pins_CHITU3D_V5.h" // STM32F1 env:chitu_f103 env:chitu_v5_gpio_init
|
2020-06-10 17:16:22 -05:00
|
|
|
#elif MB(CHITU3D_V6)
|
2020-07-19 21:42:30 -05:00
|
|
|
#include "stm32f1/pins_CHITU3D_V6.h" // STM32F1 env:chitu_f103
|
2020-06-16 01:45:27 -05:00
|
|
|
#elif MB(CREALITY_V4)
|
|
|
|
#include "stm32f1/pins_CREALITY_V4.h" // STM32F1 env:STM32F103RET6_creality
|
2020-08-21 21:56:18 -05:00
|
|
|
#elif MB(CREALITY_V427)
|
|
|
|
#include "stm32f1/pins_CREALITY_V427.h" // STM32F1 env:STM32F103RET6_creality
|
2020-07-18 17:40:10 -05:00
|
|
|
#elif MB(TRIGORILLA_PRO)
|
|
|
|
#include "stm32f1/pins_TRIGORILLA_PRO.h" // STM32F1 env:trigorilla_pro
|
2018-05-31 00:06:26 -05:00
|
|
|
|
2018-05-22 21:20:24 -05:00
|
|
|
//
|
2019-07-11 02:32:24 -05:00
|
|
|
// ARM Cortex-M4F
|
2018-05-31 00:06:26 -05:00
|
|
|
//
|
2018-05-22 21:20:24 -05:00
|
|
|
|
2018-08-27 21:49:49 -05:00
|
|
|
#elif MB(TEENSY31_32)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "teensy3/pins_TEENSY31_32.h" // TEENSY31_32 env:teensy31
|
2018-05-22 21:20:24 -05:00
|
|
|
#elif MB(TEENSY35_36)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "teensy3/pins_TEENSY35_36.h" // TEENSY35_36 env:teensy35
|
|
|
|
|
|
|
|
//
|
|
|
|
// STM32 ARM Cortex-M4F
|
|
|
|
//
|
|
|
|
|
2018-05-22 21:20:24 -05:00
|
|
|
#elif MB(BEAST)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f4/pins_BEAST.h" // STM32F4 env:STM32F4
|
2019-10-25 18:09:54 -05:00
|
|
|
#elif MB(GENERIC_STM32F4)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f4/pins_GENERIC_STM32F4.h" // STM32F4 env:STM32F4
|
2018-10-19 14:50:52 -05:00
|
|
|
#elif MB(ARMED)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f4/pins_ARMED.h" // STM32F4 env:ARMED
|
2020-06-11 20:28:20 -05:00
|
|
|
#elif MB(RUMBA32_V1_0)
|
2020-06-18 17:26:40 -05:00
|
|
|
#include "stm32f4/pins_RUMBA32_AUS3D.h" // STM32F4 env:rumba32
|
2020-06-11 20:28:20 -05:00
|
|
|
#elif MB(RUMBA32_V1_1)
|
2020-06-18 17:26:40 -05:00
|
|
|
#include "stm32f4/pins_RUMBA32_AUS3D.h" // STM32F4 env:rumba32
|
2020-02-05 20:28:28 -06:00
|
|
|
#elif MB(RUMBA32_MKS)
|
2020-06-18 17:26:40 -05:00
|
|
|
#include "stm32f4/pins_RUMBA32_MKS.h" // STM32F4 env:rumba32
|
2019-04-05 15:30:19 -05:00
|
|
|
#elif MB(BLACK_STM32F407VE)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f4/pins_BLACK_STM32F407VE.h" // STM32F4 env:STM32F407VE_black
|
2020-01-01 20:52:56 -06:00
|
|
|
#elif MB(STEVAL_3DP001V1)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f4/pins_STEVAL_3DP001V1.h" // STM32F4 env:STM32F401VE_STEVAL
|
2020-02-04 01:24:11 -06:00
|
|
|
#elif MB(BTT_SKR_PRO_V1_1)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f4/pins_BTT_SKR_PRO_V1_1.h" // STM32F4 env:BIGTREE_SKR_PRO
|
2020-06-21 03:46:31 -05:00
|
|
|
#elif MB(BTT_SKR_PRO_V1_2)
|
|
|
|
#include "stm32f4/pins_BTT_SKR_PRO_V1_2.h" // STM32F4 env:BIGTREE_SKR_PRO
|
2020-02-04 01:24:11 -06:00
|
|
|
#elif MB(BTT_GTR_V1_0)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f4/pins_BTT_GTR_V1_0.h" // STM32F4 env:BIGTREE_GTR_V1_0
|
2020-02-04 01:24:11 -06:00
|
|
|
#elif MB(BTT_BTT002_V1_0)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f4/pins_BTT_BTT002_V1_0.h" // STM32F4 env:BIGTREE_BTT002
|
2019-09-15 15:23:04 -05:00
|
|
|
#elif MB(LERDGE_K)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f4/pins_LERDGE_K.h" // STM32F4 env:STM32F4
|
2020-07-06 17:08:52 -05:00
|
|
|
#elif MB(LERDGE_S)
|
|
|
|
#include "stm32f4/pins_LERDGE_S.h" // STM32F4 env:LERDGE_S
|
2019-09-15 15:23:04 -05:00
|
|
|
#elif MB(LERDGE_X)
|
2020-07-06 17:08:52 -05:00
|
|
|
#include "stm32f4/pins_LERDGE_X.h" // STM32F4 env:LERDGE_X
|
2019-11-26 04:00:59 -06:00
|
|
|
#elif MB(VAKE403D)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f4/pins_VAKE403D.h" // STM32F4 env:STM32F4
|
2019-11-26 16:15:03 -06:00
|
|
|
#elif MB(FYSETC_S6)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f4/pins_FYSETC_S6.h" // STM32F4 env:FYSETC_S6
|
2019-12-22 03:05:30 -06:00
|
|
|
#elif MB(FLYF407ZG)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f4/pins_FLYF407ZG.h" // STM32F4 env:FLYF407ZG
|
2019-12-22 18:16:08 -06:00
|
|
|
#elif MB(MKS_ROBIN2)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f4/pins_MKS_ROBIN2.h" // STM32F4 env:MKS_ROBIN2
|
2020-08-26 19:41:15 -05:00
|
|
|
#elif MB(FYSETC_S6_V2_0)
|
|
|
|
#include "stm32f4/pins_FYSETC_S6_V2_0.h" // STM32F4 env:FYSETC_S6
|
2019-12-22 03:05:30 -06:00
|
|
|
|
2018-05-22 21:20:24 -05:00
|
|
|
//
|
|
|
|
// ARM Cortex M7
|
2018-05-31 00:06:26 -05:00
|
|
|
//
|
|
|
|
|
2018-05-22 21:20:24 -05:00
|
|
|
#elif MB(THE_BORG)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f7/pins_THE_BORG.h" // STM32F7 env:STM32F7
|
2018-10-03 03:26:07 -05:00
|
|
|
#elif MB(REMRAM_V1)
|
2020-03-20 23:45:00 -05:00
|
|
|
#include "stm32f7/pins_REMRAM_V1.h" // STM32F7 env:STM32F7
|
2020-09-22 17:51:59 -05:00
|
|
|
#elif MB(TEENSY41)
|
2020-09-09 18:57:20 -05:00
|
|
|
#include "teensy4/pins_TEENSY41.h" // Teensy-4.x env:teensy41
|
|
|
|
#elif MB(T41U5XBB)
|
|
|
|
#include "teensy4/pins_T41U5XBB.h" // Teensy-4.x env:teensy41
|
2018-05-31 00:06:26 -05:00
|
|
|
|
2017-10-08 11:38:10 -05:00
|
|
|
//
|
|
|
|
// Espressif ESP32
|
|
|
|
//
|
|
|
|
|
2019-10-15 16:54:37 -05:00
|
|
|
#elif MB(ESPRESSIF_ESP32)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "esp32/pins_ESP32.h" // ESP32 env:esp32
|
2019-12-21 18:58:00 -06:00
|
|
|
#elif MB(MRR_ESPA)
|
|
|
|
#include "esp32/pins_MRR_ESPA.h" // ESP32 env:esp32
|
|
|
|
#elif MB(MRR_ESPE)
|
|
|
|
#include "esp32/pins_MRR_ESPE.h" // ESP32 env:esp32
|
2020-01-30 03:06:17 -06:00
|
|
|
#elif MB(E4D_BOX)
|
|
|
|
#include "esp32/pins_E4D.h" // ESP32 env:esp32
|
2017-10-08 11:38:10 -05:00
|
|
|
|
2020-02-13 23:28:18 -06:00
|
|
|
//
|
|
|
|
// Adafruit Grand Central M4 (SAMD51 ARM Cortex-M4)
|
|
|
|
//
|
|
|
|
|
|
|
|
#elif MB(AGCM4_RAMPS_144)
|
|
|
|
#include "samd/pins_RAMPS_144.h" // SAMD51 env:SAMD51_grandcentral_m4
|
|
|
|
|
2020-07-30 01:43:19 -05:00
|
|
|
//
|
|
|
|
// Custom board (with custom PIO env)
|
|
|
|
//
|
|
|
|
#elif MB(CUSTOM)
|
|
|
|
#include "pins_custom.h" // env:custom
|
|
|
|
|
2019-02-22 19:09:10 -06:00
|
|
|
//
|
|
|
|
// Linux Native Debug board
|
|
|
|
//
|
|
|
|
|
|
|
|
#elif MB(LINUX_RAMPS)
|
2019-07-11 02:32:24 -05:00
|
|
|
#include "linux/pins_RAMPS_LINUX.h" // Linux env:linux_native
|
2019-02-22 19:09:10 -06:00
|
|
|
|
2011-12-12 12:34:37 -06:00
|
|
|
#else
|
2020-01-01 20:52:56 -06:00
|
|
|
|
|
|
|
//
|
|
|
|
// Obsolete or unknown board
|
|
|
|
//
|
|
|
|
|
2020-02-04 01:24:11 -06:00
|
|
|
#define BOARD_MKS_13 -1000
|
|
|
|
#define BOARD_TRIGORILLA -1001
|
|
|
|
#define BOARD_RURAMPS4D -1002
|
|
|
|
#define BOARD_FORMBOT_TREX2 -1003
|
|
|
|
#define BOARD_BIQU_SKR_V1_1 -1004
|
|
|
|
#define BOARD_STM32F1R -1005
|
|
|
|
#define BOARD_STM32F103R -1006
|
|
|
|
#define BOARD_ESP32 -1007
|
|
|
|
#define BOARD_STEVAL -1008
|
|
|
|
#define BOARD_BIGTREE_SKR_V1_1 -1009
|
|
|
|
#define BOARD_BIGTREE_SKR_V1_3 -1010
|
|
|
|
#define BOARD_BIGTREE_SKR_V1_4 -1011
|
|
|
|
#define BOARD_BIGTREE_SKR_V1_4_TURBO -1012
|
|
|
|
#define BOARD_BIGTREE_BTT002_V1_0 -1013
|
|
|
|
#define BOARD_BIGTREE_SKR_PRO_V1_1 -1014
|
|
|
|
#define BOARD_BIGTREE_SKR_MINI_V1_1 -1015
|
|
|
|
#define BOARD_BIGTREE_SKR_MINI_E3 -1016
|
|
|
|
#define BOARD_BIGTREE_SKR_E3_DIP -1017
|
2020-02-05 20:28:28 -06:00
|
|
|
#define BOARD_RUMBA32 -1018
|
2020-06-11 20:28:20 -05:00
|
|
|
#define BOARD_RUMBA32_AUS3D -1019
|
2020-01-01 20:52:56 -06:00
|
|
|
|
|
|
|
#if MB(MKS_13)
|
|
|
|
#error "BOARD_MKS_13 has been renamed BOARD_MKS_GEN_13. Please update your configuration."
|
|
|
|
#elif MB(TRIGORILLA)
|
|
|
|
#error "BOARD_TRIGORILLA has been renamed BOARD_TRIGORILLA_13. Please update your configuration."
|
|
|
|
#elif MB(RURAMPS4D)
|
|
|
|
#error "BOARD_RURAMPS4D has been renamed BOARD_RURAMPS4D_11. Please update your configuration."
|
|
|
|
#elif MB(FORMBOT_TREX2)
|
|
|
|
#error "FORMBOT_TREX2 has been renamed BOARD_FORMBOT_TREX2PLUS. Please update your configuration."
|
|
|
|
#elif MB(BIQU_SKR_V1_1)
|
2020-02-04 01:24:11 -06:00
|
|
|
#error "BOARD_BIQU_SKR_V1_1 has been renamed BOARD_BTT_SKR_V1_1. Please update your configuration."
|
|
|
|
#elif MB(BIGTREE_SKR_V1_1)
|
|
|
|
#error "BOARD_BIGTREE_SKR_V1_1 has been renamed BOARD_BTT_SKR_V1_1. Please update your configuration."
|
|
|
|
#elif MB(BIGTREE_SKR_V2_2)
|
|
|
|
#error "BOARD_BIGTREE_SKR_V1_2 has been renamed BOARD_BTT_SKR_V1_2. Please update your configuration."
|
|
|
|
#elif MB(BIGTREE_SKR_V1_3)
|
|
|
|
#error "BOARD_BIGTREE_SKR_V1_3 has been renamed BOARD_BTT_SKR_V1_3. Please update your configuration."
|
|
|
|
#elif MB(BIGTREE_SKR_V1_4)
|
|
|
|
#error "BOARD_BIGTREE_SKR_V1_4 has been renamed BOARD_BTT_SKR_V1_4. Please update your configuration."
|
|
|
|
#elif MB(BIGTREE_SKR_V1_4_TURBO)
|
|
|
|
#error "BOARD_BIGTREE_SKR_V1_4_TURBO has been renamed BOARD_BTT_SKR_V1_4_TURBO. Please update your configuration."
|
|
|
|
#elif MB(BIGTREE_BTT002_V1_0)
|
|
|
|
#error "BOARD_BIGTREE_BTT002_V1_0 has been renamed BOARD_BTT_BTT002_V1_0. Please update your configuration."
|
|
|
|
#elif MB(BIGTREE_SKR_PRO_V1_1)
|
|
|
|
#error "BOARD_BIGTREE_SKR_PRO_V1_1 has been renamed BOARD_BTT_SKR_PRO_V1_1. Please update your configuration."
|
|
|
|
#elif MB(BIGTREE_SKR_MINI_V1_1)
|
|
|
|
#error "BOARD_BIGTREE_SKR_MINI_V1_1 has been renamed BOARD_BTT_SKR_MINI_V1_1. Please update your configuration."
|
|
|
|
#elif MB(BIGTREE_SKR_MINI_E3)
|
|
|
|
#error "BOARD_BIGTREE_SKR_MINI_E3 has been renamed BOARD_BTT_SKR_MINI_E3_V1_0. Please update your configuration."
|
|
|
|
#elif MB(BIGTREE_SKR_E3_DIP)
|
|
|
|
#error "BOARD_BIGTREE_SKR_E3_DIP has been renamed BOARD_BTT_SKR_E3_DIP. Please update your configuration."
|
2020-01-01 20:52:56 -06:00
|
|
|
#elif MB(STM32F1R)
|
|
|
|
#error "BOARD_STM32F1R has been renamed BOARD_STM32F103RE. Please update your configuration."
|
|
|
|
#elif MB(STM32F103R)
|
|
|
|
#error "BOARD_STM32F103R has been renamed BOARD_STM32F103RE. Please update your configuration."
|
|
|
|
#elif MOTHERBOARD == BOARD_ESP32
|
|
|
|
#error "BOARD_ESP32 has been renamed BOARD_ESPRESSIF_ESP32. Please update your configuration."
|
|
|
|
#elif MB(STEVAL)
|
|
|
|
#error "BOARD_STEVAL has been renamed BOARD_STEVAL_3DP001V1. Please update your configuration."
|
2020-02-05 20:28:28 -06:00
|
|
|
#elif MB(RUMBA32)
|
2020-06-11 20:28:20 -05:00
|
|
|
#error "BOARD_RUMBA32 is now BOARD_RUMBA32_MKS or BOARD_RUMBA32_V1_0. Please update your configuration."
|
|
|
|
#elif MB(RUMBA32_AUS3D)
|
|
|
|
#error "BOARD_RUMBA32_AUS3D is now BOARD_RUMBA32_V1_0. Please update your configuration."
|
2020-01-01 20:52:56 -06:00
|
|
|
#else
|
|
|
|
#error "Unknown MOTHERBOARD value set in Configuration.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#undef BOARD_MKS_13
|
|
|
|
#undef BOARD_TRIGORILLA
|
|
|
|
#undef BOARD_RURAMPS4D
|
|
|
|
#undef BOARD_FORMBOT_TREX2
|
|
|
|
#undef BOARD_BIQU_SKR_V1_1
|
|
|
|
#undef BOARD_STM32F1R
|
|
|
|
#undef BOARD_STM32F103R
|
|
|
|
#undef BOARD_ESP32
|
|
|
|
#undef BOARD_STEVAL
|
2020-02-04 01:24:11 -06:00
|
|
|
#undef BOARD_BIGTREE_SKR_MINI_E3
|
|
|
|
#undef BOARD_BIGTREE_SKR_V1_1
|
|
|
|
#undef BOARD_BIGTREE_SKR_V1_3
|
|
|
|
#undef BOARD_BIGTREE_SKR_V1_4
|
|
|
|
#undef BOARD_BIGTREE_SKR_V1_4_TURBO
|
|
|
|
#undef BOARD_BIGTREE_BTT002_V1_0
|
|
|
|
#undef BOARD_BIGTREE_SKR_PRO_V1_1
|
|
|
|
#undef BOARD_BIGTREE_SKR_MINI_V1_1
|
|
|
|
#undef BOARD_BIGTREE_SKR_E3_DIP
|
2020-02-05 20:28:28 -06:00
|
|
|
#undef BOARD_RUMBA32
|
2020-06-11 20:28:20 -05:00
|
|
|
#undef BOARD_RUMBA32_AUS3D
|
2020-01-01 20:52:56 -06:00
|
|
|
|
2011-12-12 12:34:37 -06:00
|
|
|
#endif
|
|
|
|
|
2016-05-07 20:41:20 -05:00
|
|
|
// Define certain undefined pins
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef X_MS1_PIN
|
|
|
|
#define X_MS1_PIN -1
|
2016-05-07 20:41:20 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef X_MS2_PIN
|
|
|
|
#define X_MS2_PIN -1
|
2016-05-07 20:41:20 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef X_MS3_PIN
|
|
|
|
#define X_MS3_PIN -1
|
2018-10-11 00:56:26 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef Y_MS1_PIN
|
|
|
|
#define Y_MS1_PIN -1
|
2016-05-07 20:41:20 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef Y_MS2_PIN
|
|
|
|
#define Y_MS2_PIN -1
|
2016-05-07 20:41:20 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef Y_MS3_PIN
|
|
|
|
#define Y_MS3_PIN -1
|
2018-10-11 00:56:26 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef Z_MS1_PIN
|
|
|
|
#define Z_MS1_PIN -1
|
2016-05-07 20:41:20 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef Z_MS2_PIN
|
|
|
|
#define Z_MS2_PIN -1
|
2016-05-07 20:41:20 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef Z_MS3_PIN
|
|
|
|
#define Z_MS3_PIN -1
|
2018-01-21 19:43:30 -06:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E0_MS1_PIN
|
|
|
|
#define E0_MS1_PIN -1
|
2018-01-21 19:43:30 -06:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E0_MS2_PIN
|
|
|
|
#define E0_MS2_PIN -1
|
2018-01-21 19:43:30 -06:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E0_MS3_PIN
|
|
|
|
#define E0_MS3_PIN -1
|
2018-10-11 00:56:26 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E1_MS1_PIN
|
|
|
|
#define E1_MS1_PIN -1
|
2018-01-21 19:43:30 -06:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E1_MS2_PIN
|
|
|
|
#define E1_MS2_PIN -1
|
2018-01-21 19:43:30 -06:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E1_MS3_PIN
|
|
|
|
#define E1_MS3_PIN -1
|
2018-10-11 00:56:26 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E2_MS1_PIN
|
|
|
|
#define E2_MS1_PIN -1
|
2018-01-21 19:43:30 -06:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E2_MS2_PIN
|
|
|
|
#define E2_MS2_PIN -1
|
2018-01-21 19:43:30 -06:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E2_MS3_PIN
|
|
|
|
#define E2_MS3_PIN -1
|
2018-10-11 00:56:26 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E3_MS1_PIN
|
|
|
|
#define E3_MS1_PIN -1
|
2018-01-21 19:43:30 -06:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E3_MS2_PIN
|
|
|
|
#define E3_MS2_PIN -1
|
2018-01-21 19:43:30 -06:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E3_MS3_PIN
|
|
|
|
#define E3_MS3_PIN -1
|
2018-01-21 19:43:30 -06:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E4_MS1_PIN
|
|
|
|
#define E4_MS1_PIN -1
|
2018-01-21 19:43:30 -06:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E4_MS2_PIN
|
|
|
|
#define E4_MS2_PIN -1
|
2018-01-21 19:43:30 -06:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E4_MS3_PIN
|
|
|
|
#define E4_MS3_PIN -1
|
2018-01-21 19:43:30 -06:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E5_MS1_PIN
|
|
|
|
#define E5_MS1_PIN -1
|
2018-09-13 01:35:55 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E5_MS2_PIN
|
|
|
|
#define E5_MS2_PIN -1
|
2018-09-13 01:35:55 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E5_MS3_PIN
|
|
|
|
#define E5_MS3_PIN -1
|
2018-09-13 01:35:55 -05:00
|
|
|
#endif
|
2020-01-25 02:13:39 -06:00
|
|
|
#ifndef E6_MS1_PIN
|
|
|
|
#define E6_MS1_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E6_MS2_PIN
|
|
|
|
#define E6_MS2_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E6_MS3_PIN
|
|
|
|
#define E6_MS3_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E7_MS1_PIN
|
|
|
|
#define E7_MS1_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E7_MS2_PIN
|
|
|
|
#define E7_MS2_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E7_MS3_PIN
|
|
|
|
#define E7_MS3_PIN -1
|
|
|
|
#endif
|
2018-01-21 19:43:30 -06:00
|
|
|
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E0_STEP_PIN
|
|
|
|
#define E0_STEP_PIN -1
|
2017-10-28 19:45:07 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E0_DIR_PIN
|
|
|
|
#define E0_DIR_PIN -1
|
2017-10-28 19:45:07 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E0_ENABLE_PIN
|
|
|
|
#define E0_ENABLE_PIN -1
|
2017-10-28 19:45:07 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E1_STEP_PIN
|
|
|
|
#define E1_STEP_PIN -1
|
2017-10-28 19:45:07 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E1_DIR_PIN
|
|
|
|
#define E1_DIR_PIN -1
|
2017-10-28 19:45:07 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E1_ENABLE_PIN
|
|
|
|
#define E1_ENABLE_PIN -1
|
2017-10-28 19:45:07 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E2_STEP_PIN
|
|
|
|
#define E2_STEP_PIN -1
|
2017-10-28 19:45:07 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E2_DIR_PIN
|
|
|
|
#define E2_DIR_PIN -1
|
2017-10-28 19:45:07 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E2_ENABLE_PIN
|
|
|
|
#define E2_ENABLE_PIN -1
|
2017-10-28 19:45:07 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E3_STEP_PIN
|
|
|
|
#define E3_STEP_PIN -1
|
2017-10-28 19:45:07 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E3_DIR_PIN
|
|
|
|
#define E3_DIR_PIN -1
|
2017-10-28 19:45:07 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E3_ENABLE_PIN
|
|
|
|
#define E3_ENABLE_PIN -1
|
2017-10-28 19:45:07 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E4_STEP_PIN
|
|
|
|
#define E4_STEP_PIN -1
|
2017-10-28 19:45:07 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E4_DIR_PIN
|
|
|
|
#define E4_DIR_PIN -1
|
2017-10-28 19:45:07 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E4_ENABLE_PIN
|
|
|
|
#define E4_ENABLE_PIN -1
|
2017-10-28 19:45:07 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E5_STEP_PIN
|
|
|
|
#define E5_STEP_PIN -1
|
2018-09-13 01:35:55 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E5_DIR_PIN
|
|
|
|
#define E5_DIR_PIN -1
|
2018-09-13 01:35:55 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E5_ENABLE_PIN
|
|
|
|
#define E5_ENABLE_PIN -1
|
2018-09-13 01:35:55 -05:00
|
|
|
#endif
|
2020-01-25 02:13:39 -06:00
|
|
|
#ifndef E6_STEP_PIN
|
|
|
|
#define E6_STEP_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E6_DIR_PIN
|
|
|
|
#define E6_DIR_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E6_ENABLE_PIN
|
|
|
|
#define E6_ENABLE_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E7_STEP_PIN
|
|
|
|
#define E7_STEP_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E7_DIR_PIN
|
|
|
|
#define E7_DIR_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E7_ENABLE_PIN
|
|
|
|
#define E7_ENABLE_PIN -1
|
|
|
|
#endif
|
2016-05-07 20:41:20 -05:00
|
|
|
|
2020-03-05 17:56:17 -06:00
|
|
|
//
|
|
|
|
// Destroy unused CS pins
|
|
|
|
//
|
|
|
|
#if !AXIS_HAS_SPI(X)
|
|
|
|
#undef X_CS_PIN
|
|
|
|
#endif
|
|
|
|
#if !AXIS_HAS_SPI(Y)
|
|
|
|
#undef Y_CS_PIN
|
|
|
|
#endif
|
|
|
|
#if !AXIS_HAS_SPI(Z)
|
|
|
|
#undef Z_CS_PIN
|
|
|
|
#endif
|
2020-03-08 16:31:37 -05:00
|
|
|
#if E_STEPPERS && !AXIS_HAS_SPI(E0)
|
2020-03-05 17:56:17 -06:00
|
|
|
#undef E0_CS_PIN
|
|
|
|
#endif
|
2020-03-08 16:31:37 -05:00
|
|
|
#if E_STEPPERS > 1 && !AXIS_HAS_SPI(E1)
|
2020-03-05 17:56:17 -06:00
|
|
|
#undef E1_CS_PIN
|
|
|
|
#endif
|
2020-03-08 16:31:37 -05:00
|
|
|
#if E_STEPPERS > 2 && !AXIS_HAS_SPI(E2)
|
2020-03-05 17:56:17 -06:00
|
|
|
#undef E2_CS_PIN
|
|
|
|
#endif
|
2020-03-08 16:31:37 -05:00
|
|
|
#if E_STEPPERS > 3 && !AXIS_HAS_SPI(E3)
|
2020-03-05 17:56:17 -06:00
|
|
|
#undef E3_CS_PIN
|
|
|
|
#endif
|
2020-03-08 16:31:37 -05:00
|
|
|
#if E_STEPPERS > 4 && !AXIS_HAS_SPI(E4)
|
2020-03-05 17:56:17 -06:00
|
|
|
#undef E4_CS_PIN
|
|
|
|
#endif
|
2020-03-08 16:31:37 -05:00
|
|
|
#if E_STEPPERS > 5 && !AXIS_HAS_SPI(E5)
|
2020-03-05 17:56:17 -06:00
|
|
|
#undef E5_CS_PIN
|
|
|
|
#endif
|
2020-03-08 16:31:37 -05:00
|
|
|
#if E_STEPPERS > 6 && !AXIS_HAS_SPI(E6)
|
2020-03-05 17:56:17 -06:00
|
|
|
#undef E6_CS_PIN
|
|
|
|
#endif
|
2020-03-08 16:31:37 -05:00
|
|
|
#if E_STEPPERS > 7 && !AXIS_HAS_SPI(E7)
|
2020-03-05 17:56:17 -06:00
|
|
|
#undef E7_CS_PIN
|
|
|
|
#endif
|
|
|
|
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef X_CS_PIN
|
|
|
|
#define X_CS_PIN -1
|
2018-03-11 08:56:13 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef Y_CS_PIN
|
|
|
|
#define Y_CS_PIN -1
|
2018-03-11 08:56:13 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef Z_CS_PIN
|
|
|
|
#define Z_CS_PIN -1
|
2018-03-11 08:56:13 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E0_CS_PIN
|
|
|
|
#define E0_CS_PIN -1
|
2018-03-11 08:56:13 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E1_CS_PIN
|
|
|
|
#define E1_CS_PIN -1
|
2018-03-11 08:56:13 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E2_CS_PIN
|
|
|
|
#define E2_CS_PIN -1
|
2018-03-11 08:56:13 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E3_CS_PIN
|
|
|
|
#define E3_CS_PIN -1
|
2018-03-11 08:56:13 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E4_CS_PIN
|
|
|
|
#define E4_CS_PIN -1
|
2018-03-11 08:56:13 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef E5_CS_PIN
|
|
|
|
#define E5_CS_PIN -1
|
2018-09-13 01:35:55 -05:00
|
|
|
#endif
|
2020-01-25 02:13:39 -06:00
|
|
|
#ifndef E6_CS_PIN
|
|
|
|
#define E6_CS_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E7_CS_PIN
|
|
|
|
#define E7_CS_PIN -1
|
|
|
|
#endif
|
2018-03-11 08:56:13 -05:00
|
|
|
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef FAN_PIN
|
|
|
|
#define FAN_PIN -1
|
2016-05-07 20:41:20 -05:00
|
|
|
#endif
|
2019-06-28 17:03:43 -05:00
|
|
|
#define FAN0_PIN FAN_PIN
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef FAN1_PIN
|
|
|
|
#define FAN1_PIN -1
|
2016-05-07 20:41:20 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef FAN2_PIN
|
|
|
|
#define FAN2_PIN -1
|
2016-05-07 20:41:20 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef CONTROLLER_FAN_PIN
|
|
|
|
#define CONTROLLER_FAN_PIN -1
|
2016-08-06 19:16:16 -05:00
|
|
|
#endif
|
2016-05-07 20:41:20 -05:00
|
|
|
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef FANMUX0_PIN
|
|
|
|
#define FANMUX0_PIN -1
|
2017-08-15 07:48:10 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef FANMUX1_PIN
|
|
|
|
#define FANMUX1_PIN -1
|
2017-08-15 07:48:10 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef FANMUX2_PIN
|
|
|
|
#define FANMUX2_PIN -1
|
2017-08-15 07:48:10 -05:00
|
|
|
#endif
|
|
|
|
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef HEATER_0_PIN
|
|
|
|
#define HEATER_0_PIN -1
|
2016-05-07 20:41:20 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef HEATER_1_PIN
|
|
|
|
#define HEATER_1_PIN -1
|
2016-05-07 20:41:20 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef HEATER_2_PIN
|
|
|
|
#define HEATER_2_PIN -1
|
2016-05-07 20:41:20 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef HEATER_3_PIN
|
|
|
|
#define HEATER_3_PIN -1
|
2016-05-07 20:41:20 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef HEATER_4_PIN
|
|
|
|
#define HEATER_4_PIN -1
|
2016-10-05 01:49:59 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef HEATER_5_PIN
|
|
|
|
#define HEATER_5_PIN -1
|
2018-09-13 01:35:55 -05:00
|
|
|
#endif
|
2020-01-25 02:13:39 -06:00
|
|
|
#ifndef HEATER_6_PIN
|
|
|
|
#define HEATER_6_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef HEATER_7_PIN
|
|
|
|
#define HEATER_7_PIN -1
|
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef HEATER_BED_PIN
|
|
|
|
#define HEATER_BED_PIN -1
|
2016-05-07 20:41:20 -05:00
|
|
|
#endif
|
|
|
|
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef TEMP_0_PIN
|
|
|
|
#define TEMP_0_PIN -1
|
2016-05-07 20:41:20 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef TEMP_1_PIN
|
|
|
|
#define TEMP_1_PIN -1
|
2016-05-07 20:41:20 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef TEMP_2_PIN
|
|
|
|
#define TEMP_2_PIN -1
|
2016-05-07 20:41:20 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef TEMP_3_PIN
|
|
|
|
#define TEMP_3_PIN -1
|
2016-05-07 20:41:20 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef TEMP_4_PIN
|
|
|
|
#define TEMP_4_PIN -1
|
2017-04-06 16:46:30 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef TEMP_5_PIN
|
|
|
|
#define TEMP_5_PIN -1
|
2018-09-13 01:35:55 -05:00
|
|
|
#endif
|
2020-01-25 02:13:39 -06:00
|
|
|
#ifndef TEMP_6_PIN
|
|
|
|
#define TEMP_6_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef TEMP_7_PIN
|
|
|
|
#define TEMP_7_PIN -1
|
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef TEMP_BED_PIN
|
|
|
|
#define TEMP_BED_PIN -1
|
2016-05-07 20:41:20 -05:00
|
|
|
#endif
|
|
|
|
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef SD_DETECT_PIN
|
|
|
|
#define SD_DETECT_PIN -1
|
2016-05-07 20:41:20 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef SDPOWER_PIN
|
|
|
|
#define SDPOWER_PIN -1
|
2016-05-07 20:41:20 -05:00
|
|
|
#endif
|
2018-02-10 14:47:23 -06:00
|
|
|
#ifndef SDSS
|
|
|
|
#define SDSS -1
|
|
|
|
#endif
|
2016-05-07 20:41:20 -05:00
|
|
|
#ifndef LED_PIN
|
|
|
|
#define LED_PIN -1
|
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#if DISABLED(PSU_CONTROL) || !defined(PS_ON_PIN)
|
2018-10-11 00:58:41 -05:00
|
|
|
#undef PS_ON_PIN
|
2019-09-18 11:38:29 -05:00
|
|
|
#define PS_ON_PIN -1
|
2016-05-07 20:41:20 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef KILL_PIN
|
|
|
|
#define KILL_PIN -1
|
2016-05-07 20:41:20 -05:00
|
|
|
#endif
|
2019-09-18 11:38:29 -05:00
|
|
|
#ifndef SUICIDE_PIN
|
|
|
|
#define SUICIDE_PIN -1
|
2016-05-07 20:41:20 -05:00
|
|
|
#endif
|
2019-10-24 14:07:28 -05:00
|
|
|
#ifndef SUICIDE_PIN_INVERTING
|
|
|
|
#define SUICIDE_PIN_INVERTING false
|
|
|
|
#endif
|
2016-05-07 20:41:20 -05:00
|
|
|
|
2018-09-11 16:20:12 -05:00
|
|
|
#ifndef NUM_SERVO_PLUGS
|
|
|
|
#define NUM_SERVO_PLUGS 4
|
2018-08-24 21:53:42 -05:00
|
|
|
#endif
|
|
|
|
|
2016-05-07 20:41:20 -05:00
|
|
|
//
|
|
|
|
// Assign endstop pins for boards with only 3 connectors
|
|
|
|
//
|
2012-12-16 14:08:55 -06:00
|
|
|
#ifdef X_STOP_PIN
|
|
|
|
#if X_HOME_DIR < 0
|
|
|
|
#define X_MIN_PIN X_STOP_PIN
|
2020-01-30 14:09:33 -06:00
|
|
|
#ifndef X_MAX_PIN
|
|
|
|
#define X_MAX_PIN -1
|
|
|
|
#endif
|
2012-12-16 14:08:55 -06:00
|
|
|
#else
|
|
|
|
#define X_MAX_PIN X_STOP_PIN
|
2020-01-30 14:09:33 -06:00
|
|
|
#ifndef X_MIN_PIN
|
|
|
|
#define X_MIN_PIN -1
|
|
|
|
#endif
|
2012-12-16 14:08:55 -06:00
|
|
|
#endif
|
2019-07-02 20:07:33 -05:00
|
|
|
#elif X_HOME_DIR < 0
|
|
|
|
#define X_STOP_PIN X_MIN_PIN
|
|
|
|
#else
|
|
|
|
#define X_STOP_PIN X_MAX_PIN
|
2012-12-16 14:08:55 -06:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef Y_STOP_PIN
|
|
|
|
#if Y_HOME_DIR < 0
|
|
|
|
#define Y_MIN_PIN Y_STOP_PIN
|
2020-01-30 14:09:33 -06:00
|
|
|
#ifndef Y_MAX_PIN
|
|
|
|
#define Y_MAX_PIN -1
|
|
|
|
#endif
|
2012-12-16 14:08:55 -06:00
|
|
|
#else
|
|
|
|
#define Y_MAX_PIN Y_STOP_PIN
|
2020-01-30 14:09:33 -06:00
|
|
|
#ifndef Y_MIN_PIN
|
|
|
|
#define Y_MIN_PIN -1
|
|
|
|
#endif
|
2012-12-16 14:08:55 -06:00
|
|
|
#endif
|
2019-07-02 20:07:33 -05:00
|
|
|
#elif Y_HOME_DIR < 0
|
|
|
|
#define Y_STOP_PIN Y_MIN_PIN
|
|
|
|
#else
|
|
|
|
#define Y_STOP_PIN Y_MAX_PIN
|
2012-12-16 14:08:55 -06:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef Z_STOP_PIN
|
|
|
|
#if Z_HOME_DIR < 0
|
|
|
|
#define Z_MIN_PIN Z_STOP_PIN
|
2020-01-30 14:09:33 -06:00
|
|
|
#ifndef Z_MAX_PIN
|
|
|
|
#define Z_MAX_PIN -1
|
|
|
|
#endif
|
2012-12-16 14:08:55 -06:00
|
|
|
#else
|
|
|
|
#define Z_MAX_PIN Z_STOP_PIN
|
2020-01-30 14:09:33 -06:00
|
|
|
#ifndef Z_MIN_PIN
|
|
|
|
#define Z_MIN_PIN -1
|
|
|
|
#endif
|
2012-12-16 14:08:55 -06:00
|
|
|
#endif
|
2019-07-02 20:07:33 -05:00
|
|
|
#elif Z_HOME_DIR < 0
|
|
|
|
#define Z_STOP_PIN Z_MIN_PIN
|
|
|
|
#else
|
|
|
|
#define Z_STOP_PIN Z_MAX_PIN
|
2012-12-16 14:08:55 -06:00
|
|
|
#endif
|
|
|
|
|
2016-05-07 20:41:20 -05:00
|
|
|
//
|
|
|
|
// Disable unused endstop / probe pins
|
|
|
|
//
|
2019-10-15 13:28:04 -05:00
|
|
|
#if !HAS_CUSTOM_PROBE_PIN
|
2015-08-10 03:35:39 -05:00
|
|
|
#undef Z_MIN_PROBE_PIN
|
|
|
|
#define Z_MIN_PROBE_PIN -1
|
2015-03-28 04:31:51 -05:00
|
|
|
#endif
|
|
|
|
|
2016-03-02 04:00:34 -06:00
|
|
|
#if DISABLED(USE_XMAX_PLUG)
|
2015-03-24 12:06:44 -05:00
|
|
|
#undef X_MAX_PIN
|
|
|
|
#define X_MAX_PIN -1
|
|
|
|
#endif
|
|
|
|
|
2016-03-02 04:00:34 -06:00
|
|
|
#if DISABLED(USE_YMAX_PLUG)
|
2016-03-23 06:48:06 -05:00
|
|
|
#undef Y_MAX_PIN
|
2015-03-24 12:06:44 -05:00
|
|
|
#define Y_MAX_PIN -1
|
|
|
|
#endif
|
|
|
|
|
2016-03-02 04:00:34 -06:00
|
|
|
#if DISABLED(USE_ZMAX_PLUG)
|
2015-03-24 12:06:44 -05:00
|
|
|
#undef Z_MAX_PIN
|
|
|
|
#define Z_MAX_PIN -1
|
|
|
|
#endif
|
|
|
|
|
2016-03-02 04:00:34 -06:00
|
|
|
#if DISABLED(USE_XMIN_PLUG)
|
|
|
|
#undef X_MIN_PIN
|
|
|
|
#define X_MIN_PIN -1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if DISABLED(USE_YMIN_PLUG)
|
|
|
|
#undef Y_MIN_PIN
|
|
|
|
#define Y_MIN_PIN -1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if DISABLED(USE_ZMIN_PLUG)
|
2015-10-03 01:08:58 -05:00
|
|
|
#undef Z_MIN_PIN
|
2015-03-24 12:06:44 -05:00
|
|
|
#define Z_MIN_PIN -1
|
|
|
|
#endif
|
|
|
|
|
2020-02-01 21:00:53 -06:00
|
|
|
#if HAS_FILAMENT_SENSOR
|
|
|
|
#define FIL_RUNOUT1_PIN FIL_RUNOUT_PIN
|
2020-03-05 17:56:17 -06:00
|
|
|
#else
|
|
|
|
#undef FIL_RUNOUT_PIN
|
|
|
|
#undef FIL_RUNOUT1_PIN
|
2020-02-01 21:00:53 -06:00
|
|
|
#endif
|
|
|
|
|
2017-07-06 22:47:37 -05:00
|
|
|
#ifndef LCD_PINS_D4
|
|
|
|
#define LCD_PINS_D4 -1
|
|
|
|
#endif
|
2019-06-27 22:14:43 -05:00
|
|
|
|
2020-09-28 01:13:27 -05:00
|
|
|
#if HAS_MARLINUI_HD44780 || TOUCH_UI_ULTIPANEL
|
2019-06-27 22:14:43 -05:00
|
|
|
#ifndef LCD_PINS_D5
|
|
|
|
#define LCD_PINS_D5 -1
|
|
|
|
#endif
|
|
|
|
#ifndef LCD_PINS_D6
|
|
|
|
#define LCD_PINS_D6 -1
|
|
|
|
#endif
|
|
|
|
#ifndef LCD_PINS_D7
|
|
|
|
#define LCD_PINS_D7 -1
|
|
|
|
#endif
|
2017-07-06 22:47:37 -05:00
|
|
|
#endif
|
|
|
|
|
2018-10-11 00:58:41 -05:00
|
|
|
/**
|
|
|
|
* Auto-Assignment for Dual X, Dual Y, Multi-Z Steppers
|
|
|
|
*
|
|
|
|
* By default X2 is assigned to the next open E plug
|
|
|
|
* on the board, then in order, Y2, Z2, Z3. These can be
|
|
|
|
* overridden in Configuration.h or Configuration_adv.h.
|
|
|
|
*/
|
2016-05-17 16:56:49 -05:00
|
|
|
|
2020-01-30 14:09:33 -06:00
|
|
|
#define __PEXI(p,q) PIN_EXISTS(E##p##_##q)
|
|
|
|
#define _PEXI(p,q) __PEXI(p,q)
|
2016-02-09 22:04:07 -06:00
|
|
|
#define __EPIN(p,q) E##p##_##q##_PIN
|
|
|
|
#define _EPIN(p,q) __EPIN(p,q)
|
2020-01-30 14:09:33 -06:00
|
|
|
#define DIAG_REMAPPED(p,q) (PIN_EXISTS(q) && _EPIN(p##_E_INDEX, DIAG) == q##_PIN)
|
2016-02-09 22:04:07 -06:00
|
|
|
|
2016-07-11 12:19:07 -05:00
|
|
|
// The X2 axis, if any, should be the next open extruder port
|
2020-01-30 03:24:57 -06:00
|
|
|
#define X2_E_INDEX E_STEPPERS
|
|
|
|
|
2019-03-16 23:43:06 -05:00
|
|
|
#if EITHER(DUAL_X_CARRIAGE, X_DUAL_STEPPER_DRIVERS)
|
2016-05-17 16:56:49 -05:00
|
|
|
#ifndef X2_STEP_PIN
|
2020-01-30 03:24:57 -06:00
|
|
|
#define X2_STEP_PIN _EPIN(X2_E_INDEX, STEP)
|
|
|
|
#define X2_DIR_PIN _EPIN(X2_E_INDEX, DIR)
|
|
|
|
#define X2_ENABLE_PIN _EPIN(X2_E_INDEX, ENABLE)
|
|
|
|
#if X2_E_INDEX >= MAX_EXTRUDERS || !PIN_EXISTS(X2_STEP)
|
2017-05-02 15:08:16 -05:00
|
|
|
#error "No E stepper plug left for X2!"
|
|
|
|
#endif
|
2016-05-17 16:56:49 -05:00
|
|
|
#endif
|
2018-10-11 00:56:26 -05:00
|
|
|
#ifndef X2_MS1_PIN
|
2020-01-30 03:24:57 -06:00
|
|
|
#define X2_MS1_PIN _EPIN(X2_E_INDEX, MS1)
|
2018-10-11 00:56:26 -05:00
|
|
|
#endif
|
|
|
|
#ifndef X2_MS2_PIN
|
2020-01-30 03:24:57 -06:00
|
|
|
#define X2_MS2_PIN _EPIN(X2_E_INDEX, MS2)
|
2018-10-11 00:56:26 -05:00
|
|
|
#endif
|
|
|
|
#ifndef X2_MS3_PIN
|
2020-01-30 03:24:57 -06:00
|
|
|
#define X2_MS3_PIN _EPIN(X2_E_INDEX, MS3)
|
2018-03-12 07:13:50 -05:00
|
|
|
#endif
|
2019-11-13 02:03:34 -06:00
|
|
|
#if AXIS_HAS_SPI(X2) && !defined(X2_CS_PIN)
|
2020-01-30 03:24:57 -06:00
|
|
|
#define X2_CS_PIN _EPIN(X2_E_INDEX, CS)
|
2019-11-13 02:03:34 -06:00
|
|
|
#endif
|
|
|
|
#if AXIS_HAS_UART(X2)
|
2019-07-09 22:52:48 -05:00
|
|
|
#ifndef X2_SERIAL_TX_PIN
|
2020-01-30 03:24:57 -06:00
|
|
|
#define X2_SERIAL_TX_PIN _EPIN(X2_E_INDEX, SERIAL_TX)
|
2019-07-09 22:52:48 -05:00
|
|
|
#endif
|
|
|
|
#ifndef X2_SERIAL_RX_PIN
|
2020-01-30 03:24:57 -06:00
|
|
|
#define X2_SERIAL_RX_PIN _EPIN(X2_E_INDEX, SERIAL_RX)
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
//
|
|
|
|
// Auto-assign pins for stallGuard sensorless homing
|
|
|
|
//
|
2020-04-27 08:27:14 -05:00
|
|
|
#if defined(X2_STALL_SENSITIVITY) && ENABLED(X_DUAL_ENDSTOPS) && _PEXI(X2_E_INDEX, DIAG)
|
2020-01-30 14:09:33 -06:00
|
|
|
#define X2_DIAG_PIN _EPIN(X2_E_INDEX, DIAG)
|
2020-01-30 03:24:57 -06:00
|
|
|
#if DIAG_REMAPPED(X2, X_MIN) // If already remapped in the pins file...
|
|
|
|
#define X2_USE_ENDSTOP _XMIN_
|
|
|
|
#elif DIAG_REMAPPED(X2, Y_MIN)
|
|
|
|
#define X2_USE_ENDSTOP _YMIN_
|
|
|
|
#elif DIAG_REMAPPED(X2, Z_MIN)
|
|
|
|
#define X2_USE_ENDSTOP _ZMIN_
|
|
|
|
#elif DIAG_REMAPPED(X2, X_MAX)
|
|
|
|
#define X2_USE_ENDSTOP _XMAX_
|
|
|
|
#elif DIAG_REMAPPED(X2, Y_MAX)
|
|
|
|
#define X2_USE_ENDSTOP _YMAX_
|
|
|
|
#elif DIAG_REMAPPED(X2, Z_MAX)
|
|
|
|
#define X2_USE_ENDSTOP _ZMAX_
|
|
|
|
#else // Otherwise use the driver DIAG_PIN directly
|
|
|
|
#define _X2_USE_ENDSTOP(P) _E##P##_DIAG_
|
|
|
|
#define X2_USE_ENDSTOP _X2_USE_ENDSTOP(X2_E_INDEX)
|
2019-07-09 22:52:48 -05:00
|
|
|
#endif
|
2020-01-30 14:09:33 -06:00
|
|
|
#undef X2_DIAG_PIN
|
2019-07-09 00:30:08 -05:00
|
|
|
#endif
|
2020-01-30 03:24:57 -06:00
|
|
|
|
|
|
|
#define Y2_E_INDEX INCREMENT(X2_E_INDEX)
|
2016-05-17 16:56:49 -05:00
|
|
|
#else
|
2020-01-30 03:24:57 -06:00
|
|
|
#define Y2_E_INDEX X2_E_INDEX
|
2016-05-17 16:56:49 -05:00
|
|
|
#endif
|
|
|
|
|
2019-10-26 18:35:39 -05:00
|
|
|
#ifndef X2_CS_PIN
|
|
|
|
#define X2_CS_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef X2_MS1_PIN
|
|
|
|
#define X2_MS1_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef X2_MS2_PIN
|
|
|
|
#define X2_MS2_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef X2_MS3_PIN
|
|
|
|
#define X2_MS3_PIN -1
|
|
|
|
#endif
|
|
|
|
|
2016-02-09 22:04:07 -06:00
|
|
|
// The Y2 axis, if any, should be the next open extruder port
|
2016-07-11 12:19:07 -05:00
|
|
|
#if ENABLED(Y_DUAL_STEPPER_DRIVERS)
|
|
|
|
#ifndef Y2_STEP_PIN
|
|
|
|
#define Y2_STEP_PIN _EPIN(Y2_E_INDEX, STEP)
|
|
|
|
#define Y2_DIR_PIN _EPIN(Y2_E_INDEX, DIR)
|
|
|
|
#define Y2_ENABLE_PIN _EPIN(Y2_E_INDEX, ENABLE)
|
2018-10-11 00:56:26 -05:00
|
|
|
#if Y2_E_INDEX >= MAX_EXTRUDERS || !PIN_EXISTS(Y2_STEP)
|
2017-05-02 15:08:16 -05:00
|
|
|
#error "No E stepper plug left for Y2!"
|
|
|
|
#endif
|
2016-07-11 12:19:07 -05:00
|
|
|
#endif
|
2018-10-11 00:56:26 -05:00
|
|
|
#ifndef Y2_MS1_PIN
|
|
|
|
#define Y2_MS1_PIN _EPIN(Y2_E_INDEX, MS1)
|
|
|
|
#endif
|
|
|
|
#ifndef Y2_MS2_PIN
|
|
|
|
#define Y2_MS2_PIN _EPIN(Y2_E_INDEX, MS2)
|
|
|
|
#endif
|
|
|
|
#ifndef Y2_MS3_PIN
|
|
|
|
#define Y2_MS3_PIN _EPIN(Y2_E_INDEX, MS3)
|
2018-03-12 07:13:50 -05:00
|
|
|
#endif
|
2019-11-13 02:03:34 -06:00
|
|
|
#if AXIS_HAS_SPI(Y2) && !defined(Y2_CS_PIN)
|
|
|
|
#define Y2_CS_PIN _EPIN(Y2_E_INDEX, CS)
|
|
|
|
#endif
|
|
|
|
#if AXIS_HAS_UART(Y2)
|
2019-07-09 22:52:48 -05:00
|
|
|
#ifndef Y2_SERIAL_TX_PIN
|
|
|
|
#define Y2_SERIAL_TX_PIN _EPIN(Y2_E_INDEX, SERIAL_TX)
|
|
|
|
#endif
|
|
|
|
#ifndef Y2_SERIAL_RX_PIN
|
|
|
|
#define Y2_SERIAL_RX_PIN _EPIN(Y2_E_INDEX, SERIAL_RX)
|
|
|
|
#endif
|
2019-07-09 00:30:08 -05:00
|
|
|
#endif
|
2020-04-27 08:27:14 -05:00
|
|
|
#if defined(Y2_STALL_SENSITIVITY) && ENABLED(Y_DUAL_ENDSTOPS) && _PEXI(Y2_E_INDEX, DIAG)
|
2020-01-30 14:09:33 -06:00
|
|
|
#define Y2_DIAG_PIN _EPIN(Y2_E_INDEX, DIAG)
|
2020-01-30 03:24:57 -06:00
|
|
|
#if DIAG_REMAPPED(Y2, X_MIN)
|
|
|
|
#define Y2_USE_ENDSTOP _XMIN_
|
|
|
|
#elif DIAG_REMAPPED(Y2, Y_MIN)
|
|
|
|
#define Y2_USE_ENDSTOP _YMIN_
|
|
|
|
#elif DIAG_REMAPPED(Y2, Z_MIN)
|
|
|
|
#define Y2_USE_ENDSTOP _ZMIN_
|
|
|
|
#elif DIAG_REMAPPED(Y2, X_MAX)
|
|
|
|
#define Y2_USE_ENDSTOP _XMAX_
|
|
|
|
#elif DIAG_REMAPPED(Y2, Y_MAX)
|
|
|
|
#define Y2_USE_ENDSTOP _YMAX_
|
|
|
|
#elif DIAG_REMAPPED(Y2, Z_MAX)
|
|
|
|
#define Y2_USE_ENDSTOP _ZMAX_
|
|
|
|
#else
|
|
|
|
#define _Y2_USE_ENDSTOP(P) _E##P##_DIAG_
|
|
|
|
#define Y2_USE_ENDSTOP _Y2_USE_ENDSTOP(Y2_E_INDEX)
|
|
|
|
#endif
|
2020-01-30 14:09:33 -06:00
|
|
|
#undef Y2_DIAG_PIN
|
2020-01-30 03:24:57 -06:00
|
|
|
#endif
|
2016-07-11 12:19:07 -05:00
|
|
|
#define Z2_E_INDEX INCREMENT(Y2_E_INDEX)
|
|
|
|
#else
|
|
|
|
#define Z2_E_INDEX Y2_E_INDEX
|
2015-08-27 20:08:09 -05:00
|
|
|
#endif
|
|
|
|
|
2019-10-26 18:35:39 -05:00
|
|
|
#ifndef Y2_CS_PIN
|
|
|
|
#define Y2_CS_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef Y2_MS1_PIN
|
|
|
|
#define Y2_MS1_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef Y2_MS2_PIN
|
|
|
|
#define Y2_MS2_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef Y2_MS3_PIN
|
|
|
|
#define Y2_MS3_PIN -1
|
|
|
|
#endif
|
|
|
|
|
2016-02-09 22:04:07 -06:00
|
|
|
// The Z2 axis, if any, should be the next open extruder port
|
2020-01-19 23:35:07 -06:00
|
|
|
#if NUM_Z_STEPPER_DRIVERS >= 2
|
2016-07-11 12:19:07 -05:00
|
|
|
#ifndef Z2_STEP_PIN
|
|
|
|
#define Z2_STEP_PIN _EPIN(Z2_E_INDEX, STEP)
|
|
|
|
#define Z2_DIR_PIN _EPIN(Z2_E_INDEX, DIR)
|
|
|
|
#define Z2_ENABLE_PIN _EPIN(Z2_E_INDEX, ENABLE)
|
2018-10-11 00:56:26 -05:00
|
|
|
#if Z2_E_INDEX >= MAX_EXTRUDERS || !PIN_EXISTS(Z2_STEP)
|
2017-05-02 15:08:16 -05:00
|
|
|
#error "No E stepper plug left for Z2!"
|
|
|
|
#endif
|
2016-07-11 12:19:07 -05:00
|
|
|
#endif
|
2018-10-11 00:56:26 -05:00
|
|
|
#ifndef Z2_MS1_PIN
|
|
|
|
#define Z2_MS1_PIN _EPIN(Z2_E_INDEX, MS1)
|
|
|
|
#endif
|
|
|
|
#ifndef Z2_MS2_PIN
|
|
|
|
#define Z2_MS2_PIN _EPIN(Z2_E_INDEX, MS2)
|
|
|
|
#endif
|
|
|
|
#ifndef Z2_MS3_PIN
|
|
|
|
#define Z2_MS3_PIN _EPIN(Z2_E_INDEX, MS3)
|
2018-03-12 07:13:50 -05:00
|
|
|
#endif
|
2019-11-13 02:03:34 -06:00
|
|
|
#if AXIS_HAS_SPI(Z2) && !defined(Z2_CS_PIN)
|
|
|
|
#define Z2_CS_PIN _EPIN(Z2_E_INDEX, CS)
|
|
|
|
#endif
|
|
|
|
#if AXIS_HAS_UART(Z2)
|
2019-07-09 22:52:48 -05:00
|
|
|
#ifndef Z2_SERIAL_TX_PIN
|
|
|
|
#define Z2_SERIAL_TX_PIN _EPIN(Z2_E_INDEX, SERIAL_TX)
|
|
|
|
#endif
|
|
|
|
#ifndef Z2_SERIAL_RX_PIN
|
|
|
|
#define Z2_SERIAL_RX_PIN _EPIN(Z2_E_INDEX, SERIAL_RX)
|
|
|
|
#endif
|
2019-07-09 00:30:08 -05:00
|
|
|
#endif
|
2020-04-27 08:27:14 -05:00
|
|
|
#if defined(Z2_STALL_SENSITIVITY) && ENABLED(Z_MULTI_ENDSTOPS) && NUM_Z_STEPPER_DRIVERS >= 2 && _PEXI(Z2_E_INDEX, DIAG)
|
2020-01-30 14:09:33 -06:00
|
|
|
#define Z2_DIAG_PIN _EPIN(Z2_E_INDEX, DIAG)
|
2020-01-30 03:24:57 -06:00
|
|
|
#if DIAG_REMAPPED(Z2, X_MIN)
|
|
|
|
#define Z2_USE_ENDSTOP _XMIN_
|
|
|
|
#elif DIAG_REMAPPED(Z2, Y_MIN)
|
|
|
|
#define Z2_USE_ENDSTOP _YMIN_
|
|
|
|
#elif DIAG_REMAPPED(Z2, Z_MIN)
|
|
|
|
#define Z2_USE_ENDSTOP _ZMIN_
|
|
|
|
#elif DIAG_REMAPPED(Z2, X_MAX)
|
|
|
|
#define Z2_USE_ENDSTOP _XMAX_
|
|
|
|
#elif DIAG_REMAPPED(Z2, Y_MAX)
|
|
|
|
#define Z2_USE_ENDSTOP _YMAX_
|
|
|
|
#elif DIAG_REMAPPED(Z2, Z_MAX)
|
|
|
|
#define Z2_USE_ENDSTOP _ZMAX_
|
|
|
|
#else
|
|
|
|
#define _Z2_USE_ENDSTOP(P) _E##P##_DIAG_
|
|
|
|
#define Z2_USE_ENDSTOP _Z2_USE_ENDSTOP(Z2_E_INDEX)
|
|
|
|
#endif
|
2020-01-30 14:09:33 -06:00
|
|
|
#undef Z2_DIAG_PIN
|
2020-01-30 03:24:57 -06:00
|
|
|
#endif
|
2018-06-19 11:55:49 -05:00
|
|
|
#define Z3_E_INDEX INCREMENT(Z2_E_INDEX)
|
|
|
|
#else
|
|
|
|
#define Z3_E_INDEX Z2_E_INDEX
|
|
|
|
#endif
|
|
|
|
|
2019-10-26 18:35:39 -05:00
|
|
|
#ifndef Z2_CS_PIN
|
|
|
|
#define Z2_CS_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef Z2_MS1_PIN
|
|
|
|
#define Z2_MS1_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef Z2_MS2_PIN
|
|
|
|
#define Z2_MS2_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef Z2_MS3_PIN
|
|
|
|
#define Z2_MS3_PIN -1
|
|
|
|
#endif
|
|
|
|
|
2020-01-19 23:35:07 -06:00
|
|
|
#if NUM_Z_STEPPER_DRIVERS >= 3
|
2018-06-19 11:55:49 -05:00
|
|
|
#ifndef Z3_STEP_PIN
|
|
|
|
#define Z3_STEP_PIN _EPIN(Z3_E_INDEX, STEP)
|
|
|
|
#define Z3_DIR_PIN _EPIN(Z3_E_INDEX, DIR)
|
|
|
|
#define Z3_ENABLE_PIN _EPIN(Z3_E_INDEX, ENABLE)
|
2018-10-11 00:56:26 -05:00
|
|
|
#if Z3_E_INDEX >= MAX_EXTRUDERS || !PIN_EXISTS(Z3_STEP)
|
2018-06-19 11:55:49 -05:00
|
|
|
#error "No E stepper plug left for Z3!"
|
|
|
|
#endif
|
|
|
|
#endif
|
2019-11-13 02:03:34 -06:00
|
|
|
#if AXIS_HAS_SPI(Z3)
|
|
|
|
#ifndef Z3_CS_PIN
|
2020-01-30 03:24:57 -06:00
|
|
|
#define Z3_CS_PIN _EPIN(Z3_E_INDEX, CS)
|
2019-11-13 02:03:34 -06:00
|
|
|
#endif
|
2018-10-11 00:56:26 -05:00
|
|
|
#endif
|
|
|
|
#ifndef Z3_MS1_PIN
|
|
|
|
#define Z3_MS1_PIN _EPIN(Z3_E_INDEX, MS1)
|
|
|
|
#endif
|
|
|
|
#ifndef Z3_MS2_PIN
|
|
|
|
#define Z3_MS2_PIN _EPIN(Z3_E_INDEX, MS2)
|
|
|
|
#endif
|
|
|
|
#ifndef Z3_MS3_PIN
|
|
|
|
#define Z3_MS3_PIN _EPIN(Z3_E_INDEX, MS3)
|
2018-06-19 11:55:49 -05:00
|
|
|
#endif
|
2019-11-13 02:03:34 -06:00
|
|
|
#if AXIS_HAS_UART(Z3)
|
2019-07-09 22:52:48 -05:00
|
|
|
#ifndef Z3_SERIAL_TX_PIN
|
|
|
|
#define Z3_SERIAL_TX_PIN _EPIN(Z3_E_INDEX, SERIAL_TX)
|
|
|
|
#endif
|
|
|
|
#ifndef Z3_SERIAL_RX_PIN
|
|
|
|
#define Z3_SERIAL_RX_PIN _EPIN(Z3_E_INDEX, SERIAL_RX)
|
|
|
|
#endif
|
2019-07-09 00:30:08 -05:00
|
|
|
#endif
|
2020-04-27 08:27:14 -05:00
|
|
|
#if defined(Z3_STALL_SENSITIVITY) && ENABLED(Z_MULTI_ENDSTOPS) && NUM_Z_STEPPER_DRIVERS >= 3 && _PEXI(Z3_E_INDEX, DIAG)
|
2020-01-30 14:09:33 -06:00
|
|
|
#define Z3_DIAG_PIN _EPIN(Z3_E_INDEX, DIAG)
|
2020-01-30 03:24:57 -06:00
|
|
|
#if DIAG_REMAPPED(Z3, X_MIN)
|
|
|
|
#define Z3_USE_ENDSTOP _XMIN_
|
|
|
|
#elif DIAG_REMAPPED(Z3, Y_MIN)
|
|
|
|
#define Z3_USE_ENDSTOP _YMIN_
|
|
|
|
#elif DIAG_REMAPPED(Z3, Z_MIN)
|
|
|
|
#define Z3_USE_ENDSTOP _ZMIN_
|
|
|
|
#elif DIAG_REMAPPED(Z3, X_MAX)
|
|
|
|
#define Z3_USE_ENDSTOP _XMAX_
|
|
|
|
#elif DIAG_REMAPPED(Z3, Y_MAX)
|
|
|
|
#define Z3_USE_ENDSTOP _YMAX_
|
|
|
|
#elif DIAG_REMAPPED(Z3, Z_MAX)
|
|
|
|
#define Z3_USE_ENDSTOP _ZMAX_
|
|
|
|
#else
|
|
|
|
#define _Z3_USE_ENDSTOP(P) _E##P##_DIAG_
|
2020-01-30 14:09:33 -06:00
|
|
|
#define Z3_USE_ENDSTOP _Z3_USE_ENDSTOP(Z3_E_INDEX)
|
2020-01-30 03:24:57 -06:00
|
|
|
#endif
|
2020-01-30 14:09:33 -06:00
|
|
|
#undef Z3_DIAG_PIN
|
2020-01-30 03:24:57 -06:00
|
|
|
#endif
|
2020-01-19 23:35:07 -06:00
|
|
|
#define Z4_E_INDEX INCREMENT(Z3_E_INDEX)
|
2015-08-27 20:08:09 -05:00
|
|
|
#endif
|
2019-07-11 06:11:07 -05:00
|
|
|
|
2019-10-26 18:35:39 -05:00
|
|
|
#ifndef Z3_CS_PIN
|
|
|
|
#define Z3_CS_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef Z3_MS1_PIN
|
|
|
|
#define Z3_MS1_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef Z3_MS2_PIN
|
|
|
|
#define Z3_MS2_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef Z3_MS3_PIN
|
|
|
|
#define Z3_MS3_PIN -1
|
|
|
|
#endif
|
|
|
|
|
2020-01-19 23:35:07 -06:00
|
|
|
#if NUM_Z_STEPPER_DRIVERS >= 4
|
|
|
|
#ifndef Z4_STEP_PIN
|
|
|
|
#define Z4_STEP_PIN _EPIN(Z4_E_INDEX, STEP)
|
|
|
|
#define Z4_DIR_PIN _EPIN(Z4_E_INDEX, DIR)
|
|
|
|
#define Z4_ENABLE_PIN _EPIN(Z4_E_INDEX, ENABLE)
|
|
|
|
#if Z4_E_INDEX >= MAX_EXTRUDERS || !PIN_EXISTS(Z4_STEP)
|
|
|
|
#error "No E stepper plug left for Z4!"
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#if AXIS_HAS_SPI(Z4)
|
|
|
|
#ifndef Z4_CS_PIN
|
|
|
|
#define Z4_CS_PIN _EPIN(Z4_E_INDEX, CS)
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#ifndef Z4_MS1_PIN
|
|
|
|
#define Z4_MS1_PIN _EPIN(Z4_E_INDEX, MS1)
|
|
|
|
#endif
|
|
|
|
#ifndef Z4_MS2_PIN
|
|
|
|
#define Z4_MS2_PIN _EPIN(Z4_E_INDEX, MS2)
|
|
|
|
#endif
|
|
|
|
#ifndef Z4_MS3_PIN
|
|
|
|
#define Z4_MS3_PIN _EPIN(Z4_E_INDEX, MS3)
|
|
|
|
#endif
|
|
|
|
#if AXIS_HAS_UART(Z4)
|
|
|
|
#ifndef Z4_SERIAL_TX_PIN
|
|
|
|
#define Z4_SERIAL_TX_PIN _EPIN(Z4_E_INDEX, SERIAL_TX)
|
|
|
|
#endif
|
|
|
|
#ifndef Z4_SERIAL_RX_PIN
|
|
|
|
#define Z4_SERIAL_RX_PIN _EPIN(Z4_E_INDEX, SERIAL_RX)
|
|
|
|
#endif
|
|
|
|
#endif
|
2020-04-27 08:27:14 -05:00
|
|
|
#if defined(Z4_STALL_SENSITIVITY) && ENABLED(Z_MULTI_ENDSTOPS) && NUM_Z_STEPPER_DRIVERS >= 4 && _PEXI(Z4_E_INDEX, DIAG)
|
2020-01-30 14:09:33 -06:00
|
|
|
#define Z4_DIAG_PIN _EPIN(Z4_E_INDEX, DIAG)
|
2020-01-30 03:24:57 -06:00
|
|
|
#if DIAG_REMAPPED(Z4, X_MIN)
|
|
|
|
#define Z4_USE_ENDSTOP _XMIN_
|
|
|
|
#elif DIAG_REMAPPED(Z4, Y_MIN)
|
|
|
|
#define Z4_USE_ENDSTOP _YMIN_
|
|
|
|
#elif DIAG_REMAPPED(Z4, Z_MIN)
|
|
|
|
#define Z4_USE_ENDSTOP _ZMIN_
|
|
|
|
#elif DIAG_REMAPPED(Z4, X_MAX)
|
|
|
|
#define Z4_USE_ENDSTOP _XMAX_
|
|
|
|
#elif DIAG_REMAPPED(Z4, Y_MAX)
|
|
|
|
#define Z4_USE_ENDSTOP _YMAX_
|
|
|
|
#elif DIAG_REMAPPED(Z4, Z_MAX)
|
|
|
|
#define Z4_USE_ENDSTOP _ZMAX_
|
|
|
|
#else
|
|
|
|
#define _Z4_USE_ENDSTOP(P) _E##P##_DIAG_
|
|
|
|
#define Z4_USE_ENDSTOP _Z4_USE_ENDSTOP(Z4_E_INDEX)
|
|
|
|
#endif
|
2020-01-30 14:09:33 -06:00
|
|
|
#undef Z4_DIAG_PIN
|
2020-01-30 03:24:57 -06:00
|
|
|
#endif
|
2020-01-19 23:35:07 -06:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef Z4_CS_PIN
|
|
|
|
#define Z4_CS_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef Z4_MS1_PIN
|
|
|
|
#define Z4_MS1_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef Z4_MS2_PIN
|
|
|
|
#define Z4_MS2_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef Z4_MS3_PIN
|
|
|
|
#define Z4_MS3_PIN -1
|
|
|
|
#endif
|
|
|
|
|
2020-09-28 01:13:27 -05:00
|
|
|
#if HAS_MARLINUI_U8GLIB
|
2019-11-09 22:33:25 -06:00
|
|
|
#if !defined(ST7920_DELAY_1) && defined(BOARD_ST7920_DELAY_1)
|
|
|
|
#define ST7920_DELAY_1 BOARD_ST7920_DELAY_1
|
|
|
|
#endif
|
|
|
|
#if !defined(ST7920_DELAY_2) && defined(BOARD_ST7920_DELAY_2)
|
|
|
|
#define ST7920_DELAY_2 BOARD_ST7920_DELAY_2
|
|
|
|
#endif
|
|
|
|
#if !defined(ST7920_DELAY_3) && defined(BOARD_ST7920_DELAY_3)
|
|
|
|
#define ST7920_DELAY_3 BOARD_ST7920_DELAY_3
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#undef ST7920_DELAY_1
|
|
|
|
#undef ST7920_DELAY_2
|
|
|
|
#undef ST7920_DELAY_3
|
|
|
|
#endif
|
|
|
|
|
2019-07-11 06:11:07 -05:00
|
|
|
#undef HAS_FREE_AUX2_PINS
|
2020-01-30 03:24:57 -06:00
|
|
|
#undef DIAG_REMAPPED
|