2016-03-25 07:19:46 +01:00
|
|
|
/**
|
2016-03-24 19:01:20 +01:00
|
|
|
* Marlin 3D Printer Firmware
|
2019-02-12 22:06:53 +01:00
|
|
|
* Copyright (C) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
2016-03-24 19:01:20 +01:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
2015-01-26 03:40:00 +01:00
|
|
|
*/
|
2018-10-11 07:58:41 +02:00
|
|
|
#pragma once
|
2015-01-26 03:50:09 +01:00
|
|
|
|
2017-06-09 01:05:14 +02: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.
|
|
|
|
*/
|
|
|
|
|
2018-10-03 18:32:09 +02:00
|
|
|
#define MAX_EXTRUDERS 6
|
2017-09-06 13:28:32 +02:00
|
|
|
|
2017-12-05 07:33:25 +01:00
|
|
|
#if MB(RAMPS_13_EFB) || MB(RAMPS_14_EFB) || MB(RAMPS_PLUS_EFB) || MB(RAMPS_14_RE_ARM_EFB) || MB(RAMPS_SMART_EFB) || MB(RAMPS_DUO_EFB) || MB(RAMPS4DUE_EFB)
|
2017-09-06 13:28:32 +02:00
|
|
|
#define IS_RAMPS_EFB
|
2017-12-05 07:33:25 +01:00
|
|
|
#elif MB(RAMPS_13_EEB) || MB(RAMPS_14_EEB) || MB(RAMPS_PLUS_EEB) || MB(RAMPS_14_RE_ARM_EEB) || MB(RAMPS_SMART_EEB) || MB(RAMPS_DUO_EEB) || MB(RAMPS4DUE_EEB)
|
2017-09-06 13:28:32 +02:00
|
|
|
#define IS_RAMPS_EEB
|
2017-12-05 07:33:25 +01:00
|
|
|
#elif MB(RAMPS_13_EFF) || MB(RAMPS_14_EFF) || MB(RAMPS_PLUS_EFF) || MB(RAMPS_14_RE_ARM_EFF) || MB(RAMPS_SMART_EFF) || MB(RAMPS_DUO_EFF) || MB(RAMPS4DUE_EFF)
|
2017-09-06 13:28:32 +02:00
|
|
|
#define IS_RAMPS_EFF
|
2017-12-05 07:33:25 +01:00
|
|
|
#elif MB(RAMPS_13_EEF) || MB(RAMPS_14_EEF) || MB(RAMPS_PLUS_EEF) || MB(RAMPS_14_RE_ARM_EEF) || MB(RAMPS_SMART_EEF) || MB(RAMPS_DUO_EEF) || MB(RAMPS4DUE_EEF)
|
2017-09-06 13:28:32 +02:00
|
|
|
#define IS_RAMPS_EEF
|
2017-12-05 07:33:25 +01:00
|
|
|
#elif MB(RAMPS_13_SF) || MB(RAMPS_14_SF) || MB(RAMPS_PLUS_SF) || MB(RAMPS_14_RE_ARM_SF) || MB(RAMPS_SMART_SF) || MB(RAMPS_DUO_SF) || MB(RAMPS4DUE_SF)
|
2017-09-06 13:28:32 +02:00
|
|
|
#define IS_RAMPS_SF
|
|
|
|
#endif
|
2017-06-17 23:19:42 +02:00
|
|
|
|
2017-08-24 01:24:02 +02:00
|
|
|
//
|
|
|
|
// RAMPS 1.3 / 1.4 - ATmega1280, ATmega2560
|
|
|
|
//
|
|
|
|
|
|
|
|
#if MB(RAMPS_OLD)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS_OLD.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2015-06-15 08:17:00 +02:00
|
|
|
#elif MB(RAMPS_13_EFB)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS_13.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2016-07-30 12:07:20 +02:00
|
|
|
#elif MB(RAMPS_13_EEB)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS_13.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2016-07-30 12:07:20 +02:00
|
|
|
#elif MB(RAMPS_13_EFF)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS_13.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2016-07-30 12:07:20 +02:00
|
|
|
#elif MB(RAMPS_13_EEF)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS_13.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2016-07-30 12:07:20 +02:00
|
|
|
#elif MB(RAMPS_13_SF)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS_13.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2015-10-31 02:05:09 +01:00
|
|
|
#elif MB(RAMPS_14_EFB)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2016-07-30 12:07:20 +02:00
|
|
|
#elif MB(RAMPS_14_EEB)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2016-07-30 12:07:20 +02:00
|
|
|
#elif MB(RAMPS_14_EFF)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2016-07-30 12:07:20 +02:00
|
|
|
#elif MB(RAMPS_14_EEF)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2016-07-30 12:07:20 +02:00
|
|
|
#elif MB(RAMPS_14_SF)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2017-12-05 07:33:25 +01:00
|
|
|
#elif MB(RAMPS_PLUS_EFB)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS_PLUS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2017-12-05 07:33:25 +01:00
|
|
|
#elif MB(RAMPS_PLUS_EEB)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS_PLUS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2017-12-05 07:33:25 +01:00
|
|
|
#elif MB(RAMPS_PLUS_EFF)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS_PLUS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2017-12-05 07:33:25 +01:00
|
|
|
#elif MB(RAMPS_PLUS_EEF)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS_PLUS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2017-12-05 07:33:25 +01:00
|
|
|
#elif MB(RAMPS_PLUS_SF)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS_PLUS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2017-08-24 01:24:02 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// RAMPS Derivatives - ATmega1280, ATmega2560
|
|
|
|
//
|
|
|
|
|
2015-01-26 03:40:00 +01:00
|
|
|
#elif MB(3DRAG)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_3DRAG.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2015-01-26 03:40:00 +01:00
|
|
|
#elif MB(K8200)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_K8200.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560 (3DRAG)
|
2016-07-02 15:32:21 +02:00
|
|
|
#elif MB(K8400)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_K8400.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560 (3DRAG)
|
2019-02-04 07:15:08 +01:00
|
|
|
#elif MB(K8800)
|
|
|
|
#include "pins_K8800.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560 (3DRAG)
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(BAM_DICE)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(BAM_DICE_DUE)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_BAM_DICE_DUE.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(MKS_BASE)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_MKS_BASE.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2018-12-30 17:40:22 +01:00
|
|
|
#elif MB(MKS_BASE_14)
|
2018-12-30 19:20:30 +01:00
|
|
|
#include "pins_MKS_BASE_14.h" // ATmega2560 env:megaatmega2560
|
2018-04-19 05:58:43 +02:00
|
|
|
#elif MB(MKS_BASE_15)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_MKS_BASE_15.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2018-03-04 06:14:52 +01:00
|
|
|
#elif MB(MKS_BASE_HEROIC)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_MKS_BASE_HEROIC.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2018-04-19 05:58:43 +02:00
|
|
|
#elif MB(MKS_GEN_13)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_MKS_GEN_13.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2017-11-02 23:06:08 +01:00
|
|
|
#elif MB(MKS_GEN_L)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_MKS_GEN_L.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2018-08-04 01:14:26 +02:00
|
|
|
#elif MB(KFB_2)
|
2018-12-10 02:06:03 +01:00
|
|
|
#include "pins_BIQU_KFB_2.h" // ATmega2560 env:megaatmega2560
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(ZRIB_V20)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_ZRIB_V20.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560 (MKS_GEN_13)
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(FELIX2)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_FELIX2.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(RIGIDBOARD)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RIGIDBOARD.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(RIGIDBOARD_V2)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RIGIDBOARD_V2.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(SAINSMART_2IN1)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_SAINSMART_2IN1.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(ULTIMAKER)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_ULTIMAKER.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(ULTIMAKER_OLD)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_ULTIMAKER_OLD.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(AZTEEG_X3)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_AZTEEG_X3.h" // ATmega2560 env:megaatmega2560
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(AZTEEG_X3_PRO)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_AZTEEG_X3_PRO.h" // ATmega2560 env:megaatmega2560
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(ULTIMAIN_2)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_ULTIMAIN_2.h" // ATmega2560 env:megaatmega2560
|
2018-09-24 16:40:48 +02:00
|
|
|
#elif MB(FORMBOT_RAPTOR)
|
|
|
|
#include "pins_FORMBOT_RAPTOR.h" // ATmega2560 env:megaatmega2560
|
2018-11-26 02:56:06 +01:00
|
|
|
#elif MB(FORMBOT_RAPTOR2)
|
|
|
|
#include "pins_FORMBOT_RAPTOR2.h" // ATmega2560 env:megaatmega2560
|
2018-09-24 16:40:48 +02:00
|
|
|
#elif MB(FORMBOT_TREX2PLUS)
|
|
|
|
#include "pins_FORMBOT_TREX2PLUS.h" // ATmega2560 env:megaatmega2560
|
2018-09-06 16:41:59 +02:00
|
|
|
#elif MB(FORMBOT_TREX3)
|
|
|
|
#include "pins_FORMBOT_TREX3.h" // ATmega2560 env:megaatmega2560
|
2015-01-26 03:40:00 +01:00
|
|
|
#elif MB(RUMBA)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RUMBA.h" // ATmega2560 env:megaatmega2560
|
2018-11-26 02:56:06 +01:00
|
|
|
#elif MB(RUMBA_RAISE3D)
|
|
|
|
#include "pins_RUMBA_RAISE3D.h" // ATmega2560 env:megaatmega2560
|
2019-01-20 03:19:14 +01:00
|
|
|
#elif MB(RL200)
|
|
|
|
#include "pins_RL200.h" // ATmega2560 env:megaatmega2560
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(BQ_ZUM_MEGA_3D)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_BQ_ZUM_MEGA_3D.h" // ATmega2560 env:megaatmega2560
|
2017-10-21 07:31:07 +02:00
|
|
|
#elif MB(MAKEBOARD_MINI)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_MAKEBOARD_MINI.h" // ATmega2560 env:megaatmega2560
|
2018-04-03 05:01:02 +02:00
|
|
|
#elif MB(TRIGORILLA_13)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_TRIGORILLA_13.h" // ATmega2560 env:megaatmega2560
|
2018-04-03 05:11:38 +02:00
|
|
|
#elif MB(TRIGORILLA_14)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_TRIGORILLA_14.h" // ATmega2560 env:megaatmega2560
|
2018-04-03 05:11:38 +02:00
|
|
|
#elif MB(RAMPS_ENDER_4)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS_ENDER_4.h" // ATmega2560 env:megaatmega2560
|
2018-10-26 23:09:04 +02:00
|
|
|
#elif MB(RAMPS_CREALITY)
|
2018-11-14 18:45:57 +01:00
|
|
|
#include "pins_RAMPS_CREALITY.h" // ATmega2560 env:megaatmega2560
|
2019-06-06 04:23:31 +02:00
|
|
|
#elif MB(RAMPS_DAGOMA)
|
|
|
|
#include "pins_RAMPS_DAGOMA.h" // ATmega2560 env:megaatmega2560
|
2018-10-06 20:23:58 +02:00
|
|
|
#elif MB(FYSETC_F6_13)
|
2019-05-26 06:17:00 +02:00
|
|
|
#include "pins_FYSETC_F6_13.h" // ATmega2560 env:fysetc_f6_13
|
2018-12-21 00:30:36 +01:00
|
|
|
#elif MB(DUPLICATOR_I3_PLUS)
|
2019-03-03 14:41:05 +01:00
|
|
|
#include "pins_DUPLICATOR_I3_PLUS.h" // ATmega2560 env:megaatmega2560
|
2019-01-03 13:27:03 +01:00
|
|
|
#elif MB(VORON)
|
|
|
|
#include "pins_VORON.h" // ATmega2560 env:megaatmega2560
|
2019-03-03 14:41:05 +01:00
|
|
|
#elif MB(TRONXY_V3_1_0)
|
|
|
|
#include "pins_TRONXY_V3_1_0.h" // ATmega2560 env:megaatmega2560
|
2017-08-24 01:24:02 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// Other ATmega1280, ATmega2560
|
|
|
|
//
|
|
|
|
|
|
|
|
#elif MB(CNCONTROLS_11)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_CNCONTROLS_11.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(CNCONTROLS_12)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_CNCONTROLS_12.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(MIGHTYBOARD_REVE)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_MIGHTYBOARD_REVE.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(CHEAPTRONIC)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_CHEAPTRONIC.h" // ATmega2560 env:megaatmega2560
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(CHEAPTRONIC_V2)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_CHEAPTRONICv2.h" // ATmega2560 env:megaatmega2560
|
2015-01-26 03:40:00 +01:00
|
|
|
#elif MB(MEGATRONICS)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_MEGATRONICS.h" // ATmega2560 env:megaatmega2560
|
2015-01-28 00:54:46 +01:00
|
|
|
#elif MB(MEGATRONICS_2)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_MEGATRONICS_2.h" // ATmega2560 env:megaatmega2560
|
2018-12-21 00:30:36 +01:00
|
|
|
#elif MB(MEGATRONICS_3) || MB(MEGATRONICS_31) || MB(MEGATRONICS_32)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_MEGATRONICS_3.h" // ATmega2560 env:megaatmega2560
|
2015-01-26 03:40:00 +01:00
|
|
|
#elif MB(RAMBO)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMBO.h" // ATmega2560 env:rambo
|
2017-12-09 06:35:01 +01:00
|
|
|
#elif MB(MINIRAMBO) || MB(MINIRAMBO_10A)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_MINIRAMBO.h" // ATmega2560 env:rambo
|
2018-02-28 11:16:12 +01:00
|
|
|
#elif MB(EINSY_RAMBO)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_EINSY_RAMBO.h" // ATmega2560 env:rambo
|
2018-04-05 15:58:57 +02:00
|
|
|
#elif MB(EINSY_RETRO)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_EINSY_RETRO.h" // ATmega2560 env:rambo
|
2015-01-26 03:40:00 +01:00
|
|
|
#elif MB(ELEFU_3)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_ELEFU_3.h" // ATmega2560 env:megaatmega2560
|
2015-01-26 03:40:00 +01:00
|
|
|
#elif MB(LEAPFROG)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_LEAPFROG.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2015-07-22 11:35:02 +02:00
|
|
|
#elif MB(MEGACONTROLLER)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_MEGACONTROLLER.h" // ATmega2560 env:megaatmega2560
|
2017-03-28 05:22:13 +02:00
|
|
|
#elif MB(SCOOVO_X9H)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_SCOOVO_X9H.h" // ATmega2560 env:rambo
|
2017-05-23 22:53:29 +02:00
|
|
|
#elif MB(GT2560_REV_A)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_GT2560_REV_A.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2017-05-23 22:53:29 +02:00
|
|
|
#elif MB(GT2560_REV_A_PLUS)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_GT2560_REV_A_PLUS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2018-10-06 19:26:49 +02:00
|
|
|
#elif MB(GT2560_V3)
|
|
|
|
#include "pins_GT2560_V3.h" // ATmega2560 env:megaatmega2560
|
|
|
|
#elif MB(GT2560_V3_MC2)
|
|
|
|
#include "pins_GT2560_V3_MC2.h" // ATmega2560 env:megaatmega2560
|
2019-01-26 23:16:21 +01:00
|
|
|
#elif MB(GT2560_V3_A20)
|
|
|
|
#include "pins_GT2560_V3_A20.h" // ATmega2560 env:megaatmega2560
|
2018-07-26 12:52:22 +02:00
|
|
|
#elif MB(EINSTART_S)
|
|
|
|
#include "pins_EINSTART-S.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
|
2017-08-24 01:24:02 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// ATmega1281, ATmega2561
|
|
|
|
//
|
|
|
|
|
|
|
|
#elif MB(MINITRONICS)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_MINITRONICS.h" // ATmega1281 env:megaatmega1280
|
2017-10-27 10:42:04 +02:00
|
|
|
#elif MB(SILVER_GATE)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_SILVER_GATE.h" // ATmega2561 env:megaatmega2560
|
2017-08-24 01:24:02 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// Sanguinololu and Derivatives - ATmega644P, ATmega1284P
|
|
|
|
//
|
|
|
|
|
|
|
|
#elif MB(SANGUINOLOLU_11)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_SANGUINOLOLU_11.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(SANGUINOLOLU_12)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_SANGUINOLOLU_12.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(MELZI)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_MELZI.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(MELZI_MAKR3D)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_MELZI_MAKR3D.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(MELZI_CREALITY)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_MELZI_CREALITY.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
|
2018-01-12 08:07:25 +01:00
|
|
|
#elif MB(MELZI_MALYAN)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_MELZI_MALYAN.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
|
2018-02-10 21:47:23 +01:00
|
|
|
#elif MB(MELZI_TRONXY)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_MELZI_TRONXY.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(STB_11)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_STB_11.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(AZTEEG_X1)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_AZTEEG_X1.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
|
2017-08-24 01:24:02 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// Other ATmega644P, ATmega644, ATmega1284P
|
|
|
|
//
|
|
|
|
|
|
|
|
#elif MB(GEN3_MONOLITHIC)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_GEN3_MONOLITHIC.h" // ATmega644P env:sanguino_atmega644p
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(GEN3_PLUS)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_GEN3_PLUS.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(GEN6)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_GEN6.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(GEN6_DELUXE)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_GEN6_DELUXE.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(GEN7_CUSTOM)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_GEN7_CUSTOM.h" // ATmega644P, ATmega644, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(GEN7_12)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_GEN7_12.h" // ATmega644P, ATmega644, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(GEN7_13)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_GEN7_13.h" // ATmega644P, ATmega644, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(GEN7_14)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_GEN7_14.h" // ATmega644P, ATmega644, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(OMCA_A)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_OMCA_A.h" // ATmega644 env:sanguino_atmega644p
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(OMCA)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_OMCA.h" // ATmega644P, ATmega644 env:sanguino_atmega644p
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(ANET_10)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_ANET_10.h" // ATmega1284P env:sanguino_atmega1284p
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(SETHI)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_SETHI.h" // ATmega644P, ATmega644, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
|
2017-08-24 01:24:02 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// Teensyduino - AT90USB1286, AT90USB1286P
|
|
|
|
//
|
|
|
|
|
|
|
|
#elif MB(TEENSYLU)
|
2018-07-26 12:58:28 +02:00
|
|
|
#include "pins_TEENSYLU.h" // AT90USB1286, AT90USB1286P env:at90usb1286_cdc
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(PRINTRBOARD)
|
2018-07-26 12:58:28 +02:00
|
|
|
#include "pins_PRINTRBOARD.h" // AT90USB1286 env:at90usb1286_dfu
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(PRINTRBOARD_REVF)
|
2018-07-26 12:58:28 +02:00
|
|
|
#include "pins_PRINTRBOARD_REVF.h" // AT90USB1286 env:at90usb1286_dfu
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(BRAINWAVE)
|
2018-07-26 12:58:28 +02:00
|
|
|
#include "pins_BRAINWAVE.h" // AT90USB646 env:at90usb1286_cdc
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(BRAINWAVE_PRO)
|
2018-07-26 12:58:28 +02:00
|
|
|
#include "pins_BRAINWAVE_PRO.h" // AT90USB1286 env:at90usb1286_cdc
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(SAV_MKI)
|
2018-07-26 12:58:28 +02:00
|
|
|
#include "pins_SAV_MKI.h" // AT90USB1286 env:at90usb1286_cdc
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(TEENSY2)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_TEENSY2.h" // AT90USB1286 env:teensy20
|
2017-08-24 01:24:02 +02:00
|
|
|
#elif MB(5DPRINT)
|
2018-07-26 12:58:28 +02:00
|
|
|
#include "pins_5DPRINT.h" // AT90USB1286 env:at90usb1286_dfu
|
2017-08-24 01:24:02 +02:00
|
|
|
|
2017-06-18 01:36:10 +02:00
|
|
|
//
|
2018-05-23 04:20:24 +02:00
|
|
|
// LPC1768 ARM Cortex M3
|
2017-06-17 23:19:42 +02:00
|
|
|
//
|
|
|
|
|
|
|
|
#elif MB(RAMPS_14_RE_ARM_EFB)
|
2019-04-09 06:10:45 +02:00
|
|
|
#include "pins_RAMPS_RE_ARM.h" // LPC1768 env:LPC1768
|
2017-06-17 23:19:42 +02:00
|
|
|
#elif MB(RAMPS_14_RE_ARM_EEB)
|
2019-04-09 06:10:45 +02:00
|
|
|
#include "pins_RAMPS_RE_ARM.h" // LPC1768 env:LPC1768
|
2017-06-17 23:19:42 +02:00
|
|
|
#elif MB(RAMPS_14_RE_ARM_EFF)
|
2019-04-09 06:10:45 +02:00
|
|
|
#include "pins_RAMPS_RE_ARM.h" // LPC1768 env:LPC1768
|
2017-06-17 23:19:42 +02:00
|
|
|
#elif MB(RAMPS_14_RE_ARM_EEF)
|
2019-04-09 06:10:45 +02:00
|
|
|
#include "pins_RAMPS_RE_ARM.h" // LPC1768 env:LPC1768
|
2017-06-17 23:19:42 +02:00
|
|
|
#elif MB(RAMPS_14_RE_ARM_SF)
|
2019-04-09 06:10:45 +02:00
|
|
|
#include "pins_RAMPS_RE_ARM.h" // LPC1768 env:LPC1768
|
2018-05-23 04:20:24 +02:00
|
|
|
#elif MB(MKS_SBASE)
|
2019-04-09 06:10:45 +02:00
|
|
|
#include "pins_MKS_SBASE.h" // LPC1768 env:LPC1768
|
2019-04-16 00:03:10 +02:00
|
|
|
#elif MB(MKS_SGEN)
|
|
|
|
#include "pins_MKS_SGEN.h" // LPC1769 env:LPC1769
|
2018-05-23 04:20:24 +02:00
|
|
|
#elif MB(AZSMZ_MINI)
|
2019-04-09 06:10:45 +02:00
|
|
|
#include "pins_AZSMZ_MINI.h" // LPC1768 env:LPC1768
|
2018-05-23 04:20:24 +02:00
|
|
|
#elif MB(AZTEEG_X5_GT)
|
2019-04-09 06:10:45 +02:00
|
|
|
#include "pins_AZTEEG_X5_GT.h" // LPC1769 env:LPC1769
|
|
|
|
#elif MB(AZTEEG_X5_MINI)
|
|
|
|
#include "pins_AZTEEG_X5_MINI.h" // LPC1769 env:LPC1769
|
2018-08-22 06:58:26 +02:00
|
|
|
#elif MB(AZTEEG_X5_MINI_WIFI)
|
2019-04-09 06:10:45 +02:00
|
|
|
#include "pins_AZTEEG_X5_MINI_WIFI.h" // LPC1769 env:LPC1769
|
2018-05-23 04:20:24 +02:00
|
|
|
#elif MB(BIQU_BQ111_A4)
|
2019-04-09 06:10:45 +02:00
|
|
|
#include "pins_BIQU_BQ111_A4.h" // LPC1768 env:LPC1768
|
2018-05-23 04:20:24 +02:00
|
|
|
#elif MB(SELENA_COMPACT)
|
2019-04-09 06:10:45 +02:00
|
|
|
#include "pins_SELENA_COMPACT.h" // LPC1768 env:LPC1768
|
2018-05-23 04:20:24 +02:00
|
|
|
#elif MB(COHESION3D_REMIX)
|
2019-04-09 06:10:45 +02:00
|
|
|
#include "pins_COHESION3D_REMIX.h" // LPC1769 env:LPC1769
|
2018-05-23 04:20:24 +02:00
|
|
|
#elif MB(COHESION3D_MINI)
|
2019-04-09 06:10:45 +02:00
|
|
|
#include "pins_COHESION3D_MINI.h" // LPC1769 env:LPC1769
|
2018-08-08 02:01:56 +02:00
|
|
|
#elif MB(SMOOTHIEBOARD)
|
2019-04-09 06:10:45 +02:00
|
|
|
#include "pins_SMOOTHIEBOARD.h" // LPC1769 env:LPC1769
|
2018-12-27 17:52:35 +01:00
|
|
|
#elif MB(BIQU_SKR_V1_1)
|
2019-04-09 06:10:45 +02:00
|
|
|
#include "pins_BIQU_SKR_V1.1.h" // LPC1768 env:LPC1768
|
2018-12-27 17:52:35 +01:00
|
|
|
#elif MB(BIQU_B300_V1_0)
|
2019-04-09 06:10:45 +02:00
|
|
|
#include "pins_BIQU_B300_V1.0.h" // LPC1768 env:LPC1768
|
2019-02-27 04:30:00 +01:00
|
|
|
#elif MB(BIGTREE_SKR_V1_3)
|
2019-04-09 06:10:45 +02:00
|
|
|
#include "pins_BIGTREE_SKR_V1.3.h" // LPC1768 env:LPC1768
|
2018-05-31 07:06:26 +02:00
|
|
|
|
2017-06-17 23:19:42 +02:00
|
|
|
//
|
|
|
|
// Other 32-bit Boards
|
2017-06-18 01:36:10 +02:00
|
|
|
//
|
|
|
|
|
|
|
|
#elif MB(DUE3DOM)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_DUE3DOM.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-18 01:36:10 +02:00
|
|
|
#elif MB(DUE3DOM_MINI)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_DUE3DOM_MINI.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-18 01:36:10 +02:00
|
|
|
#elif MB(RADDS)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RADDS.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2018-07-26 02:32:27 +02:00
|
|
|
#elif MB(RURAMPS4D_11)
|
|
|
|
#include "pins_RURAMPS4D_11.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
|
|
|
#elif MB(RURAMPS4D_13)
|
|
|
|
#include "pins_RURAMPS4D_13.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-10-06 20:27:15 +02:00
|
|
|
#elif MB(RAMPS_FD_V1)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS_FD_V1.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-18 01:36:10 +02:00
|
|
|
#elif MB(RAMPS_FD_V2)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS_FD_V2.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-18 01:36:10 +02:00
|
|
|
#elif MB(RAMPS_SMART_EFB)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS_SMART.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-18 01:36:10 +02:00
|
|
|
#elif MB(RAMPS_SMART_EEB)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS_SMART.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-18 01:36:10 +02:00
|
|
|
#elif MB(RAMPS_SMART_EFF)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS_SMART.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-18 01:36:10 +02:00
|
|
|
#elif MB(RAMPS_SMART_EEF)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS_SMART.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-18 01:36:10 +02:00
|
|
|
#elif MB(RAMPS_SMART_SF)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS_SMART.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-18 01:36:10 +02:00
|
|
|
#elif MB(RAMPS_DUO_EFB)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS_DUO.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-18 01:36:10 +02:00
|
|
|
#elif MB(RAMPS_DUO_EEB)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS_DUO.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-18 01:36:10 +02:00
|
|
|
#elif MB(RAMPS_DUO_EFF)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS_DUO.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-18 01:36:10 +02:00
|
|
|
#elif MB(RAMPS_DUO_EEF)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS_DUO.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-18 01:36:10 +02:00
|
|
|
#elif MB(RAMPS_DUO_SF)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS_DUO.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-18 01:36:10 +02:00
|
|
|
#elif MB(RAMPS4DUE_EFB)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS4DUE.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-18 01:36:10 +02:00
|
|
|
#elif MB(RAMPS4DUE_EEB)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS4DUE.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-18 01:36:10 +02:00
|
|
|
#elif MB(RAMPS4DUE_EFF)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS4DUE.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-18 01:36:10 +02:00
|
|
|
#elif MB(RAMPS4DUE_EEF)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS4DUE.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-06-18 01:36:10 +02:00
|
|
|
#elif MB(RAMPS4DUE_SF)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_RAMPS4DUE.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
|
2017-11-21 10:13:59 +01:00
|
|
|
#elif MB(ULTRATRONICS_PRO)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_ULTRATRONICS_PRO.h" // SAM3X8E env:DUE env:DUE_debug
|
2018-11-14 07:27:39 +01:00
|
|
|
#elif MB(ARCHIM1)
|
|
|
|
#include "pins_ARCHIM1.h" // SAM3X8E env:DUE env:DUE_debug
|
2017-11-03 10:48:15 +01:00
|
|
|
#elif MB(ARCHIM2)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_ARCHIM2.h" // SAM3X8E env:DUE env:DUE_debug
|
2017-06-18 01:36:10 +02:00
|
|
|
#elif MB(ALLIGATOR)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_ALLIGATOR_R2.h" // SAM3X8E env:DUE env:DUE_debug
|
2019-01-20 06:43:32 +01:00
|
|
|
#elif MB(ADSK)
|
|
|
|
#include "pins_ADSK.h" // SAM3X8E env:DUE env:DUE_debug
|
2019-02-27 04:03:13 +01:00
|
|
|
#elif MB(PRINTRBOARD_G2)
|
|
|
|
#include "pins_PRINTRBOARD_G2.h" // SAM3X8C env:DUE_USB
|
2018-05-23 04:20:24 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// STM32 ARM Cortex-M3
|
2018-05-31 07:06:26 +02:00
|
|
|
//
|
|
|
|
|
2017-09-27 07:30:23 +02:00
|
|
|
#elif MB(STM32F1R)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_STM32F1R.h" // STM32F1 env:STM32F1
|
[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-11 06:12:45 +01:00
|
|
|
#elif MB(STM3R_MINI)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_STM3R_MINI.h" // STM32F1 env:STM32F1
|
[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-11 06:12:45 +01:00
|
|
|
#elif MB(MALYAN_M200)
|
2018-05-20 00:39:26 +02:00
|
|
|
#include "pins_MALYAN_M200.h" // STM32F1 env:malyanm200
|
[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-11 06:12:45 +01:00
|
|
|
#elif MB(CHITU3D)
|
2018-04-26 09:42:06 +02:00
|
|
|
#include "pins_CHITU3D.h" // STM32F1 env:STM32F1
|
2018-05-31 07:11:38 +02:00
|
|
|
#elif MB(GTM32_PRO_VB)
|
|
|
|
#include "pins_GTM32_PRO_VB.h" // STM32F1 env:STM32F1
|
2018-08-28 04:28:03 +02:00
|
|
|
#elif MB(MORPHEUS)
|
|
|
|
#include "pins_MORPHEUS.h" // STM32F1 env:STM32F1
|
2018-12-21 00:23:27 +01:00
|
|
|
#elif MB(MKS_ROBIN)
|
2019-04-05 22:30:19 +02:00
|
|
|
#include "pins_MKS_ROBIN.h" // STM32F1 env:mks_robin
|
2018-05-31 07:06:26 +02:00
|
|
|
|
2018-05-23 04:20:24 +02:00
|
|
|
//
|
|
|
|
// STM32 ARM Cortex-M4F
|
2018-05-31 07:06:26 +02:00
|
|
|
//
|
2018-05-23 04:20:24 +02:00
|
|
|
|
2018-08-28 04:49:49 +02:00
|
|
|
#elif MB(TEENSY31_32)
|
|
|
|
#include "pins_TEENSY31_32.h" // TEENSY31_32 env:teensy31
|
2018-05-23 04:20:24 +02:00
|
|
|
#elif MB(TEENSY35_36)
|
2018-05-31 07:06:26 +02:00
|
|
|
#include "pins_TEENSY35_36.h" // TEENSY35_36 env:teensy35
|
2018-05-23 04:20:24 +02:00
|
|
|
#elif MB(BEAST)
|
|
|
|
#include "pins_BEAST.h" // STM32F4 env:STM32F4
|
2018-04-18 00:33:29 +02:00
|
|
|
#elif MB(STM32F4)
|
2018-05-23 04:20:24 +02:00
|
|
|
#include "pins_STM32F4.h" // STM32F4 env:STM32F4
|
2018-10-19 21:50:52 +02:00
|
|
|
#elif MB(ARMED)
|
|
|
|
#include "pins_ARMED.h" // STM32F4 env:ARMED
|
2019-01-11 02:34:31 +01:00
|
|
|
#elif MB(RUMBA32)
|
|
|
|
#include "pins_RUMBA32.h" // STM32F4 env:RUMBA32
|
2019-04-05 22:30:19 +02:00
|
|
|
#elif MB(BLACK_STM32F407VE)
|
|
|
|
#include "pins_BLACK_STM32F407VE.h" // STM32F4 env:black_stm32f407ve
|
2019-01-16 01:59:36 +01:00
|
|
|
#elif MB(STEVAL)
|
|
|
|
#include "pins_STEVAL.h" // STM32F4 env:STM32F4
|
2018-05-23 04:20:24 +02:00
|
|
|
|
2019-04-05 22:30:19 +02:00
|
|
|
|
|
|
|
|
2018-05-23 04:20:24 +02:00
|
|
|
//
|
|
|
|
// ARM Cortex M7
|
2018-05-31 07:06:26 +02:00
|
|
|
//
|
|
|
|
|
2018-05-23 04:20:24 +02:00
|
|
|
#elif MB(THE_BORG)
|
2018-05-31 07:06:26 +02:00
|
|
|
#include "pins_THE_BORG.h" // STM32F7 env:STM32F7
|
2018-10-03 10:26:07 +02:00
|
|
|
#elif MB(REMRAM_V1)
|
|
|
|
#include "pins_REMRAM_V1.h" // STM32F7 env:STM32F7xx
|
2018-05-31 07:06:26 +02:00
|
|
|
|
2017-10-08 18:38:10 +02:00
|
|
|
//
|
|
|
|
// Espressif ESP32
|
|
|
|
//
|
|
|
|
|
|
|
|
#elif MB(ESP32)
|
2019-05-26 06:17:00 +02:00
|
|
|
#include "pins_ESP32.h" // ESP32 env:esp32
|
2017-10-08 18:38:10 +02:00
|
|
|
|
2019-02-23 02:09:10 +01:00
|
|
|
//
|
|
|
|
// Linux Native Debug board
|
|
|
|
//
|
|
|
|
|
|
|
|
#elif MB(LINUX_RAMPS)
|
|
|
|
#include "pins_RAMPS_LINUX.h" // Linux env:linux_native
|
|
|
|
|
2011-12-12 19:34:37 +01:00
|
|
|
#else
|
2016-05-13 14:10:23 +02:00
|
|
|
#error "Unknown MOTHERBOARD value set in Configuration.h"
|
2011-12-12 19:34:37 +01:00
|
|
|
#endif
|
|
|
|
|
2016-05-08 03:41:20 +02:00
|
|
|
// Define certain undefined pins
|
|
|
|
#ifndef X_MS1_PIN
|
|
|
|
#define X_MS1_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef X_MS2_PIN
|
|
|
|
#define X_MS2_PIN -1
|
|
|
|
#endif
|
2018-10-11 07:56:26 +02:00
|
|
|
#ifndef X_MS3_PIN
|
|
|
|
#define X_MS3_PIN -1
|
|
|
|
#endif
|
2016-05-08 03:41:20 +02:00
|
|
|
#ifndef Y_MS1_PIN
|
|
|
|
#define Y_MS1_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef Y_MS2_PIN
|
|
|
|
#define Y_MS2_PIN -1
|
|
|
|
#endif
|
2018-10-11 07:56:26 +02:00
|
|
|
#ifndef Y_MS3_PIN
|
|
|
|
#define Y_MS3_PIN -1
|
|
|
|
#endif
|
2016-05-08 03:41:20 +02:00
|
|
|
#ifndef Z_MS1_PIN
|
|
|
|
#define Z_MS1_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef Z_MS2_PIN
|
|
|
|
#define Z_MS2_PIN -1
|
|
|
|
#endif
|
2018-01-22 02:43:30 +01:00
|
|
|
#ifndef Z_MS3_PIN
|
|
|
|
#define Z_MS3_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E0_MS1_PIN
|
|
|
|
#define E0_MS1_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E0_MS2_PIN
|
|
|
|
#define E0_MS2_PIN -1
|
|
|
|
#endif
|
2018-10-11 07:56:26 +02:00
|
|
|
#ifndef E0_MS3_PIN
|
|
|
|
#define E0_MS3_PIN -1
|
|
|
|
#endif
|
2018-01-22 02:43:30 +01:00
|
|
|
#ifndef E1_MS1_PIN
|
|
|
|
#define E1_MS1_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E1_MS2_PIN
|
|
|
|
#define E1_MS2_PIN -1
|
|
|
|
#endif
|
2018-10-11 07:56:26 +02:00
|
|
|
#ifndef E1_MS3_PIN
|
|
|
|
#define E1_MS3_PIN -1
|
|
|
|
#endif
|
2018-01-22 02:43:30 +01:00
|
|
|
#ifndef E2_MS1_PIN
|
|
|
|
#define E2_MS1_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E2_MS2_PIN
|
|
|
|
#define E2_MS2_PIN -1
|
|
|
|
#endif
|
2018-10-11 07:56:26 +02:00
|
|
|
#ifndef E2_MS3_PIN
|
|
|
|
#define E2_MS3_PIN -1
|
|
|
|
#endif
|
2018-01-22 02:43:30 +01:00
|
|
|
#ifndef E3_MS1_PIN
|
|
|
|
#define E3_MS1_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E3_MS2_PIN
|
|
|
|
#define E3_MS2_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E3_MS3_PIN
|
|
|
|
#define E3_MS3_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E4_MS1_PIN
|
|
|
|
#define E4_MS1_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E4_MS2_PIN
|
|
|
|
#define E4_MS2_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E4_MS3_PIN
|
|
|
|
#define E4_MS3_PIN -1
|
|
|
|
#endif
|
2018-09-13 08:35:55 +02:00
|
|
|
#ifndef E5_MS1_PIN
|
|
|
|
#define E5_MS1_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E5_MS2_PIN
|
|
|
|
#define E5_MS2_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E5_MS3_PIN
|
|
|
|
#define E5_MS3_PIN -1
|
|
|
|
#endif
|
2018-01-22 02:43:30 +01:00
|
|
|
|
2017-10-29 02:45:07 +02:00
|
|
|
#ifndef E0_STEP_PIN
|
|
|
|
#define E0_STEP_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E0_DIR_PIN
|
|
|
|
#define E0_DIR_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E0_ENABLE_PIN
|
|
|
|
#define E0_ENABLE_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E1_STEP_PIN
|
|
|
|
#define E1_STEP_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E1_DIR_PIN
|
|
|
|
#define E1_DIR_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E1_ENABLE_PIN
|
|
|
|
#define E1_ENABLE_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E2_STEP_PIN
|
|
|
|
#define E2_STEP_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E2_DIR_PIN
|
|
|
|
#define E2_DIR_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E2_ENABLE_PIN
|
|
|
|
#define E2_ENABLE_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E3_STEP_PIN
|
|
|
|
#define E3_STEP_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E3_DIR_PIN
|
|
|
|
#define E3_DIR_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E3_ENABLE_PIN
|
|
|
|
#define E3_ENABLE_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E4_STEP_PIN
|
|
|
|
#define E4_STEP_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E4_DIR_PIN
|
|
|
|
#define E4_DIR_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E4_ENABLE_PIN
|
|
|
|
#define E4_ENABLE_PIN -1
|
|
|
|
#endif
|
2018-09-13 08:35:55 +02:00
|
|
|
#ifndef E5_STEP_PIN
|
|
|
|
#define E5_STEP_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E5_DIR_PIN
|
|
|
|
#define E5_DIR_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E5_ENABLE_PIN
|
|
|
|
#define E5_ENABLE_PIN -1
|
|
|
|
#endif
|
2016-05-08 03:41:20 +02:00
|
|
|
|
2018-03-11 14:56:13 +01:00
|
|
|
#ifndef X_CS_PIN
|
|
|
|
#define X_CS_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef Y_CS_PIN
|
|
|
|
#define Y_CS_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef Z_CS_PIN
|
|
|
|
#define Z_CS_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E0_CS_PIN
|
|
|
|
#define E0_CS_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E1_CS_PIN
|
|
|
|
#define E1_CS_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E2_CS_PIN
|
|
|
|
#define E2_CS_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E3_CS_PIN
|
|
|
|
#define E3_CS_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef E4_CS_PIN
|
|
|
|
#define E4_CS_PIN -1
|
|
|
|
#endif
|
2018-09-13 08:35:55 +02:00
|
|
|
#ifndef E5_CS_PIN
|
|
|
|
#define E5_CS_PIN -1
|
|
|
|
#endif
|
2018-03-11 14:56:13 +01:00
|
|
|
|
2016-05-08 03:41:20 +02:00
|
|
|
#ifndef FAN_PIN
|
|
|
|
#define FAN_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef FAN1_PIN
|
|
|
|
#define FAN1_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef FAN2_PIN
|
|
|
|
#define FAN2_PIN -1
|
|
|
|
#endif
|
2017-05-03 03:18:31 +02:00
|
|
|
#ifndef CONTROLLER_FAN_PIN
|
|
|
|
#define CONTROLLER_FAN_PIN -1
|
2016-08-07 02:16:16 +02:00
|
|
|
#endif
|
2016-05-08 03:41:20 +02:00
|
|
|
|
2017-08-15 14:48:10 +02:00
|
|
|
#ifndef FANMUX0_PIN
|
|
|
|
#define FANMUX0_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef FANMUX1_PIN
|
|
|
|
#define FANMUX1_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef FANMUX2_PIN
|
|
|
|
#define FANMUX2_PIN -1
|
|
|
|
#endif
|
|
|
|
|
2016-05-08 03:41:20 +02:00
|
|
|
#ifndef HEATER_0_PIN
|
|
|
|
#define HEATER_0_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef HEATER_1_PIN
|
|
|
|
#define HEATER_1_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef HEATER_2_PIN
|
|
|
|
#define HEATER_2_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef HEATER_3_PIN
|
|
|
|
#define HEATER_3_PIN -1
|
|
|
|
#endif
|
2016-10-05 08:49:59 +02:00
|
|
|
#ifndef HEATER_4_PIN
|
|
|
|
#define HEATER_4_PIN -1
|
|
|
|
#endif
|
2018-09-13 08:35:55 +02:00
|
|
|
#ifndef HEATER_5_PIN
|
|
|
|
#define HEATER_5_PIN -1
|
|
|
|
#endif
|
2016-05-08 03:41:20 +02:00
|
|
|
#ifndef HEATER_BED_PIN
|
|
|
|
#define HEATER_BED_PIN -1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef TEMP_0_PIN
|
|
|
|
#define TEMP_0_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef TEMP_1_PIN
|
|
|
|
#define TEMP_1_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef TEMP_2_PIN
|
|
|
|
#define TEMP_2_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef TEMP_3_PIN
|
|
|
|
#define TEMP_3_PIN -1
|
|
|
|
#endif
|
2017-04-06 23:46:30 +02:00
|
|
|
#ifndef TEMP_4_PIN
|
|
|
|
#define TEMP_4_PIN -1
|
|
|
|
#endif
|
2018-09-13 08:35:55 +02:00
|
|
|
#ifndef TEMP_5_PIN
|
|
|
|
#define TEMP_5_PIN -1
|
|
|
|
#endif
|
2016-05-08 03:41:20 +02:00
|
|
|
#ifndef TEMP_BED_PIN
|
|
|
|
#define TEMP_BED_PIN -1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef SD_DETECT_PIN
|
|
|
|
#define SD_DETECT_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef SDPOWER
|
|
|
|
#define SDPOWER -1
|
|
|
|
#endif
|
2018-02-10 21:47:23 +01:00
|
|
|
#ifndef SDSS
|
|
|
|
#define SDSS -1
|
|
|
|
#endif
|
2016-05-08 03:41:20 +02:00
|
|
|
#ifndef LED_PIN
|
|
|
|
#define LED_PIN -1
|
|
|
|
#endif
|
2018-10-11 07:58:41 +02:00
|
|
|
#if POWER_SUPPLY == 0 || !defined(PS_ON_PIN)
|
|
|
|
#undef PS_ON_PIN
|
2016-05-08 03:41:20 +02:00
|
|
|
#define PS_ON_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef KILL_PIN
|
|
|
|
#define KILL_PIN -1
|
|
|
|
#endif
|
|
|
|
#ifndef SUICIDE_PIN
|
|
|
|
#define SUICIDE_PIN -1
|
|
|
|
#endif
|
|
|
|
|
2018-09-11 23:20:12 +02:00
|
|
|
#ifndef NUM_SERVO_PLUGS
|
|
|
|
#define NUM_SERVO_PLUGS 4
|
2018-08-25 04:53:42 +02:00
|
|
|
#endif
|
|
|
|
|
2016-10-23 01:25:59 +02:00
|
|
|
//
|
|
|
|
// Assign auto fan pins if needed
|
|
|
|
//
|
2018-02-11 03:04:09 +01:00
|
|
|
#ifndef E0_AUTO_FAN_PIN
|
|
|
|
#ifdef ORIG_E0_AUTO_FAN_PIN
|
|
|
|
#define E0_AUTO_FAN_PIN ORIG_E0_AUTO_FAN_PIN
|
|
|
|
#else
|
|
|
|
#define E0_AUTO_FAN_PIN -1
|
|
|
|
#endif
|
2016-10-23 01:25:59 +02:00
|
|
|
#endif
|
2018-02-11 03:04:09 +01:00
|
|
|
#ifndef E1_AUTO_FAN_PIN
|
|
|
|
#ifdef ORIG_E1_AUTO_FAN_PIN
|
|
|
|
#define E1_AUTO_FAN_PIN ORIG_E1_AUTO_FAN_PIN
|
|
|
|
#else
|
|
|
|
#define E1_AUTO_FAN_PIN -1
|
|
|
|
#endif
|
2016-10-23 01:25:59 +02:00
|
|
|
#endif
|
2018-02-11 03:04:09 +01:00
|
|
|
#ifndef E2_AUTO_FAN_PIN
|
|
|
|
#ifdef ORIG_E2_AUTO_FAN_PIN
|
|
|
|
#define E2_AUTO_FAN_PIN ORIG_E2_AUTO_FAN_PIN
|
|
|
|
#else
|
|
|
|
#define E2_AUTO_FAN_PIN -1
|
|
|
|
#endif
|
2016-10-23 01:25:59 +02:00
|
|
|
#endif
|
2018-02-11 03:04:09 +01:00
|
|
|
#ifndef E3_AUTO_FAN_PIN
|
|
|
|
#ifdef ORIG_E3_AUTO_FAN_PIN
|
|
|
|
#define E3_AUTO_FAN_PIN ORIG_E3_AUTO_FAN_PIN
|
|
|
|
#else
|
|
|
|
#define E3_AUTO_FAN_PIN -1
|
|
|
|
#endif
|
2016-10-23 01:25:59 +02:00
|
|
|
#endif
|
2018-02-11 03:04:09 +01:00
|
|
|
#ifndef E4_AUTO_FAN_PIN
|
|
|
|
#ifdef ORIG_E4_AUTO_FAN_PIN
|
|
|
|
#define E4_AUTO_FAN_PIN ORIG_E4_AUTO_FAN_PIN
|
|
|
|
#else
|
|
|
|
#define E4_AUTO_FAN_PIN -1
|
|
|
|
#endif
|
2017-04-08 09:42:07 +02:00
|
|
|
#endif
|
2018-09-13 08:35:55 +02:00
|
|
|
#ifndef E5_AUTO_FAN_PIN
|
|
|
|
#ifdef ORIG_E5_AUTO_FAN_PIN
|
|
|
|
#define E5_AUTO_FAN_PIN ORIG_E5_AUTO_FAN_PIN
|
|
|
|
#else
|
|
|
|
#define E5_AUTO_FAN_PIN -1
|
|
|
|
#endif
|
|
|
|
#endif
|
2018-02-24 07:38:58 +01:00
|
|
|
#ifndef CHAMBER_AUTO_FAN_PIN
|
|
|
|
#ifdef ORIG_CHAMBER_AUTO_FAN_PIN
|
|
|
|
#define CHAMBER_AUTO_FAN_PIN ORIG_CHAMBER_AUTO_FAN_PIN
|
|
|
|
#else
|
|
|
|
#define CHAMBER_AUTO_FAN_PIN -1
|
|
|
|
#endif
|
|
|
|
#endif
|
2016-10-23 01:25:59 +02:00
|
|
|
|
2016-05-08 03:41:20 +02:00
|
|
|
//
|
|
|
|
// Assign endstop pins for boards with only 3 connectors
|
|
|
|
//
|
2012-12-16 21:08:55 +01:00
|
|
|
#ifdef X_STOP_PIN
|
|
|
|
#if X_HOME_DIR < 0
|
|
|
|
#define X_MIN_PIN X_STOP_PIN
|
|
|
|
#define X_MAX_PIN -1
|
|
|
|
#else
|
|
|
|
#define X_MIN_PIN -1
|
|
|
|
#define X_MAX_PIN X_STOP_PIN
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef Y_STOP_PIN
|
|
|
|
#if Y_HOME_DIR < 0
|
|
|
|
#define Y_MIN_PIN Y_STOP_PIN
|
|
|
|
#define Y_MAX_PIN -1
|
|
|
|
#else
|
|
|
|
#define Y_MIN_PIN -1
|
|
|
|
#define Y_MAX_PIN Y_STOP_PIN
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef Z_STOP_PIN
|
|
|
|
#if Z_HOME_DIR < 0
|
|
|
|
#define Z_MIN_PIN Z_STOP_PIN
|
|
|
|
#define Z_MAX_PIN -1
|
|
|
|
#else
|
|
|
|
#define Z_MIN_PIN -1
|
|
|
|
#define Z_MAX_PIN Z_STOP_PIN
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2016-05-08 03:41:20 +02:00
|
|
|
//
|
|
|
|
// Disable unused endstop / probe pins
|
|
|
|
//
|
2019-03-01 07:27:45 +01:00
|
|
|
#if !USES_Z_MIN_PROBE_ENDSTOP
|
2015-08-10 10:35:39 +02:00
|
|
|
#undef Z_MIN_PROBE_PIN
|
|
|
|
#define Z_MIN_PROBE_PIN -1
|
2015-03-28 10:31:51 +01:00
|
|
|
#endif
|
|
|
|
|
2016-03-02 11:00:34 +01:00
|
|
|
#if DISABLED(USE_XMAX_PLUG)
|
2015-03-24 18:06:44 +01:00
|
|
|
#undef X_MAX_PIN
|
|
|
|
#define X_MAX_PIN -1
|
|
|
|
#endif
|
|
|
|
|
2016-03-02 11:00:34 +01:00
|
|
|
#if DISABLED(USE_YMAX_PLUG)
|
2016-03-23 12:48:06 +01:00
|
|
|
#undef Y_MAX_PIN
|
2015-03-24 18:06:44 +01:00
|
|
|
#define Y_MAX_PIN -1
|
|
|
|
#endif
|
|
|
|
|
2016-03-02 11:00:34 +01:00
|
|
|
#if DISABLED(USE_ZMAX_PLUG)
|
2015-03-24 18:06:44 +01:00
|
|
|
#undef Z_MAX_PIN
|
|
|
|
#define Z_MAX_PIN -1
|
|
|
|
#endif
|
|
|
|
|
2016-03-02 11:00:34 +01: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 08:08:58 +02:00
|
|
|
#undef Z_MIN_PIN
|
2015-03-24 18:06:44 +01:00
|
|
|
#define Z_MIN_PIN -1
|
|
|
|
#endif
|
|
|
|
|
2017-07-07 05:47:37 +02:00
|
|
|
#ifndef LCD_PINS_D4
|
|
|
|
#define LCD_PINS_D4 -1
|
|
|
|
#endif
|
|
|
|
#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
|
|
|
|
|
2018-10-11 07:58:41 +02: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 23:56:49 +02:00
|
|
|
|
2016-02-10 05:04:07 +01:00
|
|
|
#define __EPIN(p,q) E##p##_##q##_PIN
|
|
|
|
#define _EPIN(p,q) __EPIN(p,q)
|
|
|
|
|
2016-07-11 19:19:07 +02:00
|
|
|
// The X2 axis, if any, should be the next open extruder port
|
2019-03-17 05:43:06 +01:00
|
|
|
#if EITHER(DUAL_X_CARRIAGE, X_DUAL_STEPPER_DRIVERS)
|
2016-05-17 23:56:49 +02:00
|
|
|
#ifndef X2_STEP_PIN
|
2016-06-29 00:06:56 +02:00
|
|
|
#define X2_STEP_PIN _EPIN(E_STEPPERS, STEP)
|
|
|
|
#define X2_DIR_PIN _EPIN(E_STEPPERS, DIR)
|
|
|
|
#define X2_ENABLE_PIN _EPIN(E_STEPPERS, ENABLE)
|
2018-10-11 07:56:26 +02:00
|
|
|
#if E_STEPPERS >= MAX_EXTRUDERS || !PIN_EXISTS(X2_STEP)
|
2017-05-02 22:08:16 +02:00
|
|
|
#error "No E stepper plug left for X2!"
|
|
|
|
#endif
|
2016-05-17 23:56:49 +02:00
|
|
|
#endif
|
2018-10-11 07:56:26 +02:00
|
|
|
#ifndef X2_CS_PIN
|
|
|
|
#define X2_CS_PIN _EPIN(E_STEPPERS, CS)
|
|
|
|
#endif
|
|
|
|
#ifndef X2_MS1_PIN
|
|
|
|
#define X2_MS1_PIN _EPIN(E_STEPPERS, MS1)
|
|
|
|
#endif
|
|
|
|
#ifndef X2_MS2_PIN
|
|
|
|
#define X2_MS2_PIN _EPIN(E_STEPPERS, MS2)
|
|
|
|
#endif
|
|
|
|
#ifndef X2_MS3_PIN
|
|
|
|
#define X2_MS3_PIN _EPIN(E_STEPPERS, MS3)
|
2018-03-12 13:13:50 +01:00
|
|
|
#endif
|
2016-06-29 00:06:56 +02:00
|
|
|
#define Y2_E_INDEX INCREMENT(E_STEPPERS)
|
2016-05-17 23:56:49 +02:00
|
|
|
#else
|
2016-06-29 00:06:56 +02:00
|
|
|
#define Y2_E_INDEX E_STEPPERS
|
2016-05-17 23:56:49 +02:00
|
|
|
#endif
|
|
|
|
|
2016-02-10 05:04:07 +01:00
|
|
|
// The Y2 axis, if any, should be the next open extruder port
|
2016-07-11 19:19:07 +02: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 07:56:26 +02:00
|
|
|
#if Y2_E_INDEX >= MAX_EXTRUDERS || !PIN_EXISTS(Y2_STEP)
|
2017-05-02 22:08:16 +02:00
|
|
|
#error "No E stepper plug left for Y2!"
|
|
|
|
#endif
|
2016-07-11 19:19:07 +02:00
|
|
|
#endif
|
2018-10-11 07:56:26 +02:00
|
|
|
#ifndef Y2_CS_PIN
|
|
|
|
#define Y2_CS_PIN _EPIN(Y2_E_INDEX, CS)
|
|
|
|
#endif
|
|
|
|
#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 13:13:50 +01:00
|
|
|
#endif
|
2016-07-11 19:19:07 +02:00
|
|
|
#define Z2_E_INDEX INCREMENT(Y2_E_INDEX)
|
|
|
|
#else
|
|
|
|
#define Z2_E_INDEX Y2_E_INDEX
|
2015-08-28 03:08:09 +02:00
|
|
|
#endif
|
|
|
|
|
2016-02-10 05:04:07 +01:00
|
|
|
// The Z2 axis, if any, should be the next open extruder port
|
2018-06-19 18:55:49 +02:00
|
|
|
#if Z_MULTI_STEPPER_DRIVERS
|
2016-07-11 19:19:07 +02: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 07:56:26 +02:00
|
|
|
#if Z2_E_INDEX >= MAX_EXTRUDERS || !PIN_EXISTS(Z2_STEP)
|
2017-05-02 22:08:16 +02:00
|
|
|
#error "No E stepper plug left for Z2!"
|
|
|
|
#endif
|
2016-07-11 19:19:07 +02:00
|
|
|
#endif
|
2018-10-11 07:56:26 +02:00
|
|
|
#ifndef Z2_CS_PIN
|
|
|
|
#define Z2_CS_PIN _EPIN(Z2_E_INDEX, CS)
|
|
|
|
#endif
|
|
|
|
#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 13:13:50 +01:00
|
|
|
#endif
|
2018-06-19 18:55:49 +02:00
|
|
|
#define Z3_E_INDEX INCREMENT(Z2_E_INDEX)
|
|
|
|
#else
|
|
|
|
#define Z3_E_INDEX Z2_E_INDEX
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if ENABLED(Z_TRIPLE_STEPPER_DRIVERS)
|
|
|
|
#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 07:56:26 +02:00
|
|
|
#if Z3_E_INDEX >= MAX_EXTRUDERS || !PIN_EXISTS(Z3_STEP)
|
2018-06-19 18:55:49 +02:00
|
|
|
#error "No E stepper plug left for Z3!"
|
|
|
|
#endif
|
|
|
|
#endif
|
2018-10-11 07:56:26 +02:00
|
|
|
#ifndef Z3_CS_PIN
|
|
|
|
#define Z3_CS_PIN _EPIN(Z3_E_INDEX, CS)
|
|
|
|
#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 18:55:49 +02:00
|
|
|
#endif
|
2015-08-28 03:08:09 +02:00
|
|
|
#endif
|