2018-08-28 04:28:03 +02:00
|
|
|
/**
|
|
|
|
* Marlin 3D Printer Firmware
|
2020-02-03 15:00:57 +01:00
|
|
|
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
2018-08-28 04:28:03 +02:00
|
|
|
*
|
|
|
|
* Based on Sprinter and grbl.
|
2019-06-28 06:57:50 +02:00
|
|
|
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
2018-08-28 04:28:03 +02: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-23 05:20:14 +02:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2018-08-28 04:28:03 +02:00
|
|
|
*
|
|
|
|
*/
|
2019-07-05 05:44:12 +02:00
|
|
|
#pragma once
|
2018-08-28 04:28:03 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 2017 Victor Perez Marlin for stm32f1 test
|
|
|
|
* 2018 Modified by Pablo Crespo for Morpheus Board (https://github.com/pscrespo/Morpheus-STM32)
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* MORPHEUS Board pin assignments
|
|
|
|
*/
|
|
|
|
|
2020-09-23 22:06:36 +02:00
|
|
|
#if NOT_TARGET(__STM32F1__)
|
2018-11-09 04:57:15 +01:00
|
|
|
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
|
2018-08-28 04:28:03 +02:00
|
|
|
#endif
|
|
|
|
|
2019-08-21 02:08:58 +02:00
|
|
|
#define BOARD_INFO_NAME "Bluepill based board"
|
2018-08-28 04:28:03 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// Limit Switches
|
|
|
|
//
|
2020-03-22 03:13:19 +01:00
|
|
|
#define X_MIN_PIN PB14
|
|
|
|
#define Y_MIN_PIN PB13
|
|
|
|
#define Z_MIN_PIN PB12
|
2018-08-28 04:28:03 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// Z Probe (when not Z_MIN_PIN)
|
|
|
|
//
|
|
|
|
#ifndef Z_MIN_PROBE_PIN
|
2020-03-22 03:13:19 +01:00
|
|
|
#define Z_MIN_PROBE_PIN PB9
|
2018-08-28 04:28:03 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
//
|
|
|
|
// Steppers
|
|
|
|
//
|
|
|
|
// X & Y enable are the same
|
2020-03-22 03:13:19 +01:00
|
|
|
#define X_STEP_PIN PB7
|
|
|
|
#define X_DIR_PIN PB6
|
|
|
|
#define X_ENABLE_PIN PB8
|
2018-08-28 04:28:03 +02:00
|
|
|
|
2020-03-22 03:13:19 +01:00
|
|
|
#define Y_STEP_PIN PB5
|
|
|
|
#define Y_DIR_PIN PB4
|
|
|
|
#define Y_ENABLE_PIN PB8
|
2018-08-28 04:28:03 +02:00
|
|
|
|
2020-03-22 03:13:19 +01:00
|
|
|
#define Z_STEP_PIN PA15
|
|
|
|
#define Z_DIR_PIN PA10
|
|
|
|
#define Z_ENABLE_PIN PB3
|
2018-08-28 04:28:03 +02:00
|
|
|
|
2020-03-22 03:13:19 +01:00
|
|
|
#define E0_STEP_PIN PA8
|
|
|
|
#define E0_DIR_PIN PB15
|
|
|
|
#define E0_ENABLE_PIN PA9
|
2018-08-28 04:28:03 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// Temperature Sensors
|
|
|
|
//
|
2020-03-22 03:13:19 +01:00
|
|
|
#define TEMP_0_PIN PB1 // Analog Input (HOTEND thermistor)
|
|
|
|
#define TEMP_BED_PIN PB0 // Analog Input (BED thermistor)
|
2018-08-28 04:28:03 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// Heaters / Fans
|
|
|
|
//
|
2020-03-22 03:13:19 +01:00
|
|
|
#define HEATER_0_PIN PA2 // HOTEND MOSFET
|
|
|
|
#define HEATER_BED_PIN PA0 // BED MOSFET
|
2018-08-28 04:28:03 +02:00
|
|
|
|
2020-03-22 03:13:19 +01:00
|
|
|
#define FAN_PIN PA1 // FAN1 header on board - PRINT FAN
|
2018-08-28 04:28:03 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// Misc.
|
|
|
|
//
|
2020-03-22 03:13:19 +01:00
|
|
|
#define LED_PIN PC13
|
|
|
|
#define SDSS PA3
|
2020-10-10 12:01:46 +02:00
|
|
|
#define TFTGLCD_CS PA4
|