2018-01-11 22:29:08 +01:00
|
|
|
/**
|
|
|
|
* Marlin 3D Printer Firmware
|
|
|
|
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
|
|
|
*
|
|
|
|
* Based on Sprinter and grbl.
|
|
|
|
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#if !defined(STM32F7)
|
2018-03-28 19:51:59 +02:00
|
|
|
#error "Oops! Make sure you have an STM32F7 board selected from the 'Tools -> Boards' menu."
|
2018-01-11 22:29:08 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#define DEFAULT_MACHINE_NAME "The-Borge"
|
|
|
|
#define BOARD_NAME "The-Borge"
|
|
|
|
|
2018-03-28 19:51:59 +02:00
|
|
|
#define E2END 0xFFF // EEPROM end address
|
2018-01-11 22:29:08 +01:00
|
|
|
|
|
|
|
// Ignore temp readings during develpment.
|
|
|
|
#define BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE
|
|
|
|
|
2018-10-19 01:48:12 +02:00
|
|
|
#if HOTENDS > 3 || E_STEPPERS > 3
|
2018-01-11 22:29:08 +01:00
|
|
|
#error "The-Borg supports up to 3 hotends / E-steppers."
|
|
|
|
#endif
|
|
|
|
|
|
|
|
//
|
|
|
|
// Limit Switches
|
|
|
|
//
|
2018-04-20 21:54:35 +02:00
|
|
|
#define X_MIN_PIN PE9
|
|
|
|
#define X_MAX_PIN PE10
|
|
|
|
#define Y_MIN_PIN PE7
|
|
|
|
#define Y_MAX_PIN PE8
|
|
|
|
#define Z_MIN_PIN PF15
|
|
|
|
#define Z_MAX_PIN PG0
|
|
|
|
#define E_MIN_PIN PE2
|
|
|
|
#define E_MAX_PIN PE3
|
2018-02-11 03:04:09 +01:00
|
|
|
|
2018-01-11 22:29:08 +01:00
|
|
|
//
|
|
|
|
// Z Probe (when not Z_MIN_PIN)
|
|
|
|
//
|
|
|
|
#ifndef Z_MIN_PROBE_PIN
|
2018-04-20 21:54:35 +02:00
|
|
|
#define Z_MIN_PROBE_PIN PA4
|
2018-01-11 22:29:08 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
//
|
|
|
|
// Steppers
|
|
|
|
//
|
2018-04-20 21:54:35 +02:00
|
|
|
#define STEPPER_ENABLE_PIN PE0
|
2018-01-11 22:29:08 +01:00
|
|
|
|
2018-04-20 21:54:35 +02:00
|
|
|
#define X_STEP_PIN PC6 // 96, 39 in Arduino
|
|
|
|
#define X_DIR_PIN PC7
|
|
|
|
#define X_ENABLE_PIN PC8
|
2018-01-11 22:29:08 +01:00
|
|
|
|
|
|
|
|
2018-04-20 21:54:35 +02:00
|
|
|
#define Y_STEP_PIN PD9
|
|
|
|
#define Y_DIR_PIN PD10
|
|
|
|
#define Y_ENABLE_PIN PD11
|
2018-01-11 22:29:08 +01:00
|
|
|
|
2018-04-20 21:54:35 +02:00
|
|
|
#define Z_STEP_PIN PE15
|
|
|
|
#define Z_DIR_PIN PG1
|
|
|
|
#define Z_ENABLE_PIN PD8
|
2018-01-11 22:29:08 +01:00
|
|
|
|
|
|
|
|
2018-04-20 21:54:35 +02:00
|
|
|
#define E0_STEP_PIN PB1
|
|
|
|
#define E0_DIR_PIN PB2
|
|
|
|
#define E0_ENABLE_PIN PE11
|
2018-01-11 22:29:08 +01:00
|
|
|
|
|
|
|
|
2018-04-20 21:54:35 +02:00
|
|
|
#define E1_STEP_PIN PC4
|
|
|
|
#define E1_DIR_PIN PC5
|
|
|
|
#define E1_ENABLE_PIN PB0
|
2018-01-11 22:29:08 +01:00
|
|
|
|
|
|
|
|
2018-04-20 21:54:35 +02:00
|
|
|
#define E2_STEP_PIN PC13
|
|
|
|
#define E2_DIR_PIN PC14
|
|
|
|
#define E2_ENABLE_PIN PC15
|
2018-01-11 22:29:08 +01:00
|
|
|
|
2018-04-20 21:54:35 +02:00
|
|
|
#define Z2_STEP_PIN PC13
|
|
|
|
#define Z2_DIR_PIN PC14
|
|
|
|
#define Z2_ENABLE_PIN PC15
|
2018-01-11 22:29:08 +01:00
|
|
|
|
|
|
|
|
2018-04-20 21:54:35 +02:00
|
|
|
#define SCK_PIN PA5
|
|
|
|
#define MISO_PIN PA6
|
|
|
|
#define MOSI_PIN PA7
|
2018-01-11 22:29:08 +01:00
|
|
|
|
2018-04-20 21:54:35 +02:00
|
|
|
#define SPI1_SCK_PIN PA5
|
|
|
|
#define SPI1_MISO_PIN PA6
|
|
|
|
#define SPI1_MOSI_PIN PA7
|
2018-01-11 22:29:08 +01:00
|
|
|
|
2018-04-20 21:54:35 +02:00
|
|
|
#define SPI6_SCK_PIN PG13
|
|
|
|
#define SPI6_MISO_PIN PG12
|
|
|
|
#define SPI6_MOSI_PIN PG14
|
2018-01-11 22:29:08 +01:00
|
|
|
|
|
|
|
//
|
|
|
|
// Temperature Sensors
|
|
|
|
//
|
|
|
|
|
2018-04-20 21:54:35 +02:00
|
|
|
#define TEMP_0_PIN PC3 // Analog Input
|
|
|
|
#define TEMP_1_PIN PC2 // Analog Input
|
|
|
|
#define TEMP_2_PIN PC1 // Analog Input
|
|
|
|
#define TEMP_3_PIN PC0 // Analog Input
|
2018-01-11 22:29:08 +01:00
|
|
|
|
2018-04-20 21:54:35 +02:00
|
|
|
#define TEMP_BED_PIN PF10 // Analog Input
|
2018-01-11 22:29:08 +01:00
|
|
|
|
2018-04-20 21:54:35 +02:00
|
|
|
#define TEMP_5_PIN PE12 // Analog Input, Probe temp
|
2018-01-11 22:29:08 +01:00
|
|
|
|
|
|
|
//
|
|
|
|
// Heaters / Fans
|
|
|
|
//
|
2018-04-20 21:54:35 +02:00
|
|
|
#define HEATER_0_PIN PD15
|
|
|
|
#define HEATER_1_PIN PD14
|
|
|
|
#define HEATER_BED_PIN PF6
|
2018-01-11 22:29:08 +01:00
|
|
|
|
2018-06-07 23:46:13 +02:00
|
|
|
#ifndef FAN_PIN
|
|
|
|
#define FAN_PIN PD13
|
|
|
|
#endif
|
2018-04-20 21:54:35 +02:00
|
|
|
#define FAN1_PIN PA0
|
|
|
|
#define FAN2_PIN PA1
|
2018-01-11 22:29:08 +01:00
|
|
|
|
2018-04-20 21:54:35 +02:00
|
|
|
#define ORIG_E0_AUTO_FAN_PIN PA1 // Use this by NOT overriding E0_AUTO_FAN_PIN
|
2018-01-11 22:29:08 +01:00
|
|
|
|
|
|
|
//
|
|
|
|
// Misc. Functions
|
|
|
|
//
|
|
|
|
|
2018-04-20 21:54:35 +02:00
|
|
|
//#define CASE_LIGHT_PIN_CI PF13
|
|
|
|
//#define CASE_LIGHT_PIN_DO PF14
|
|
|
|
//#define NEOPIXEL_PIN PF13
|
2018-01-11 22:29:08 +01:00
|
|
|
|
|
|
|
//
|
|
|
|
// Prusa i3 MK2 Multi Material Multiplexer Support
|
|
|
|
//
|
|
|
|
|
2018-04-20 21:54:35 +02:00
|
|
|
#define E_MUX0_PIN PG3
|
|
|
|
#define E_MUX1_PIN PG4
|
2018-01-11 22:29:08 +01:00
|
|
|
|
|
|
|
//
|
|
|
|
// Servos
|
|
|
|
//
|
|
|
|
|
2018-04-20 21:54:35 +02:00
|
|
|
#define SERVO0_PIN PE13
|
|
|
|
#define SERVO1_PIN PE14
|
2018-01-11 22:29:08 +01:00
|
|
|
|
|
|
|
|
2018-04-20 21:54:35 +02:00
|
|
|
#define SDSS PA8
|
|
|
|
#define SS_PIN PA8
|
|
|
|
#define LED_PIN PA2 // Alive
|
|
|
|
#define PS_ON_PIN PA3
|
|
|
|
#define KILL_PIN -1 //PD5 // EXP2-10
|
|
|
|
#define PWR_LOSS PG5 // Power loss / nAC_FAULT
|
2018-01-11 22:29:08 +01:00
|
|
|
|
|
|
|
//
|
2018-02-11 03:04:09 +01:00
|
|
|
// MAX7219_DEBUG
|
2018-01-11 22:29:08 +01:00
|
|
|
//
|
2018-04-20 21:54:35 +02:00
|
|
|
#define MAX7219_CLK_PIN PG10 // EXP1-1
|
|
|
|
#define MAX7219_DIN_PIN PD7 // EXP1-3
|
|
|
|
#define MAX7219_LOAD_PIN PD1 // EXP1-5
|
2018-01-11 22:29:08 +01:00
|
|
|
|
|
|
|
//
|
|
|
|
// LCD / Controller
|
|
|
|
//
|
2018-04-20 21:54:35 +02:00
|
|
|
//#define SD_DETECT_PIN -1 //PB6) // EXP2-4
|
|
|
|
#define BEEPER_PIN PG10 // EXP1-1
|
|
|
|
#define LCD_PINS_RS PG9 // EXP1-4
|
|
|
|
#define LCD_PINS_ENABLE PD7 // EXP1-3
|
|
|
|
#define LCD_PINS_D4 PD1 // EXP1-5
|
|
|
|
#define LCD_PINS_D5 PF0 // EXP1-6
|
|
|
|
#define LCD_PINS_D6 PD3 // EXP1-7
|
|
|
|
#define LCD_PINS_D7 PD4 // EXP1-8
|
|
|
|
#define BTN_EN1 PD6 // EXP2-5
|
|
|
|
#define BTN_EN2 PD0 // EXP2-3
|
|
|
|
#define BTN_ENC PG11 // EXP1-2
|