2019-04-05 20:30:19 +00:00
|
|
|
/**
|
|
|
|
* Marlin 3D Printer Firmware
|
2020-02-03 14:00:57 +00:00
|
|
|
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
2019-04-05 20:30:19 +00:00
|
|
|
*
|
|
|
|
* Based on Sprinter and grbl.
|
2019-06-28 04:57:50 +00:00
|
|
|
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
2019-04-05 20:30:19 +00: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 03:20:14 +00:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2019-04-05 20:30:19 +00:00
|
|
|
*
|
|
|
|
*/
|
2019-07-05 03:44:12 +00:00
|
|
|
#pragma once
|
2019-04-05 20:30:19 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* STM32F407VET6 with RAMPS-like shield
|
2020-07-24 01:46:11 +00:00
|
|
|
* 'Black' STM32F407VET6 board - https://www.stm32duino.com/viewtopic.php?t=485
|
2019-04-05 20:30:19 +00:00
|
|
|
* Shield - https://github.com/jmz52/Hardware
|
|
|
|
*/
|
|
|
|
|
2020-09-23 20:06:36 +00:00
|
|
|
#if NOT_TARGET(STM32F4, STM32F4xx)
|
2019-04-05 20:30:19 +00:00
|
|
|
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
2019-07-14 20:34:01 +00:00
|
|
|
#elif HOTENDS > 2 || E_STEPPERS > 2
|
|
|
|
#error "Black STM32F4VET6 supports up to 2 hotends / E-steppers."
|
2019-04-05 20:30:19 +00:00
|
|
|
#endif
|
|
|
|
|
2019-08-21 00:08:58 +00:00
|
|
|
#ifndef BOARD_INFO_NAME
|
|
|
|
#define BOARD_INFO_NAME "Black STM32F4VET6"
|
2019-07-10 02:29:14 +00:00
|
|
|
#endif
|
|
|
|
|
2019-04-05 20:30:19 +00:00
|
|
|
#define DEFAULT_MACHINE_NAME "STM32F407VET6"
|
|
|
|
|
|
|
|
//#define I2C_EEPROM
|
2019-07-10 02:30:07 +00:00
|
|
|
#define SRAM_EEPROM_EMULATION
|
2020-08-22 06:22:14 +00:00
|
|
|
#define MARLIN_EEPROM_SIZE 0x2000 // 8KB
|
2019-04-05 20:30:19 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Servos
|
|
|
|
//
|
2020-03-22 02:13:19 +00:00
|
|
|
#define SERVO0_PIN PC6
|
|
|
|
#define SERVO1_PIN PC7
|
2019-04-05 20:30:19 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Limit Switches
|
|
|
|
//
|
2020-03-22 02:13:19 +00:00
|
|
|
#define X_MIN_PIN PC13
|
|
|
|
#define X_MAX_PIN PA15
|
|
|
|
#define Y_MIN_PIN PA5
|
|
|
|
#define Y_MAX_PIN PD12
|
|
|
|
#define Z_MIN_PIN PD14
|
|
|
|
#define Z_MAX_PIN PD15
|
2019-04-05 20:30:19 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Steppers
|
|
|
|
//
|
2020-03-22 02:13:19 +00:00
|
|
|
#define X_STEP_PIN PC4
|
|
|
|
#define X_DIR_PIN PA4
|
|
|
|
#define X_ENABLE_PIN PE7
|
2019-04-05 20:30:19 +00:00
|
|
|
|
2020-03-22 02:13:19 +00:00
|
|
|
#define Y_STEP_PIN PE5
|
|
|
|
#define Y_DIR_PIN PE2
|
|
|
|
#define Y_ENABLE_PIN PE6
|
2019-04-05 20:30:19 +00:00
|
|
|
|
2020-03-22 02:13:19 +00:00
|
|
|
#define Z_STEP_PIN PD5
|
|
|
|
#define Z_DIR_PIN PD3
|
|
|
|
#define Z_ENABLE_PIN PD6
|
2019-04-05 20:30:19 +00:00
|
|
|
|
2020-03-22 02:13:19 +00:00
|
|
|
#define E0_STEP_PIN PD7
|
|
|
|
#define E0_DIR_PIN PD0
|
|
|
|
#define E0_ENABLE_PIN PB9
|
2019-04-05 20:30:19 +00:00
|
|
|
|
2020-03-22 02:13:19 +00:00
|
|
|
#define E1_STEP_PIN PE0
|
|
|
|
#define E1_DIR_PIN PE1
|
|
|
|
#define E1_ENABLE_PIN PB8
|
2019-04-05 20:30:19 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Temperature Sensors
|
|
|
|
//
|
2020-03-22 02:13:19 +00:00
|
|
|
#define TEMP_0_PIN PC0 // T0
|
|
|
|
#define TEMP_1_PIN PC1 // T1
|
|
|
|
#define TEMP_BED_PIN PC2 // TB
|
2019-09-13 22:48:32 +00:00
|
|
|
|
|
|
|
#ifndef TEMP_CHAMBER_PIN
|
2020-03-22 02:13:19 +00:00
|
|
|
#define TEMP_CHAMBER_PIN PC3 // TC
|
2019-09-13 22:48:32 +00:00
|
|
|
#endif
|
2019-04-05 20:30:19 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Heaters / Fans
|
|
|
|
//
|
2020-03-22 02:13:19 +00:00
|
|
|
#define HEATER_0_PIN PA2 // Heater0
|
|
|
|
#define HEATER_1_PIN PA3 // Heater1
|
|
|
|
#define HEATER_BED_PIN PA1 // Hotbed
|
2019-04-05 20:30:19 +00:00
|
|
|
|
2020-03-22 02:13:19 +00:00
|
|
|
#define FAN_PIN PE9 // Fan0
|
|
|
|
#define FAN1_PIN PE11 // Fan1
|
|
|
|
#define FAN2_PIN PE13 // Fan2
|
|
|
|
#define FAN3_PIN PE14 // Fan3
|
2019-04-05 20:30:19 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Misc. Functions
|
|
|
|
//
|
2020-03-22 02:13:19 +00:00
|
|
|
#define LED_PIN PA6
|
|
|
|
//#define LED_PIN PA7
|
|
|
|
#define KILL_PIN PB1
|
2019-04-05 20:30:19 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// LCD / Controller
|
|
|
|
//
|
2020-03-22 02:13:19 +00:00
|
|
|
//#define SD_DETECT_PIN PC5
|
|
|
|
//#define SD_DETECT_PIN PA8 // SDIO SD_DETECT_PIN, external SDIO card reader only
|
2019-04-05 20:30:19 +00:00
|
|
|
|
2020-03-22 02:13:19 +00:00
|
|
|
#define BEEPER_PIN PD10
|
|
|
|
#define LCD_PINS_RS PE15
|
|
|
|
#define LCD_PINS_ENABLE PD8
|
|
|
|
#define LCD_PINS_D4 PE10
|
|
|
|
#define LCD_PINS_D5 PE12
|
|
|
|
#define LCD_PINS_D6 PD1
|
|
|
|
#define LCD_PINS_D7 PE8
|
|
|
|
#define BTN_ENC PD9
|
|
|
|
#define BTN_EN1 PD4
|
|
|
|
#define BTN_EN2 PD13
|
2019-04-05 20:30:19 +00:00
|
|
|
|
2020-03-22 02:13:19 +00:00
|
|
|
#define DOGLCD_CS LCD_PINS_D5
|
|
|
|
#define DOGLCD_A0 LCD_PINS_D6
|
2020-02-04 07:24:11 +00:00
|
|
|
|
2020-11-21 07:47:04 +00:00
|
|
|
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
|
|
|
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
|
|
|
|
#endif
|
|
|
|
|
2020-02-04 07:24:11 +00:00
|
|
|
//
|
|
|
|
// Onboard SD support
|
|
|
|
//
|
2020-03-22 02:13:19 +00:00
|
|
|
#define SDIO_D0_PIN PC8
|
|
|
|
#define SDIO_D1_PIN PC9
|
|
|
|
#define SDIO_D2_PIN PC10
|
|
|
|
#define SDIO_D3_PIN PC11
|
|
|
|
#define SDIO_CK_PIN PC12
|
|
|
|
#define SDIO_CMD_PIN PD2
|
2020-02-04 07:24:11 +00:00
|
|
|
|
2020-04-16 08:55:33 +00:00
|
|
|
#ifndef SDCARD_CONNECTION
|
|
|
|
#define SDCARD_CONNECTION ONBOARD
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if SD_CONNECTION_IS(ONBOARD)
|
2020-03-22 02:13:19 +00:00
|
|
|
#define SDIO_SUPPORT // Use SDIO for onboard SD
|
2020-02-04 07:24:11 +00:00
|
|
|
|
|
|
|
#ifndef SDIO_SUPPORT
|
2020-03-22 02:13:19 +00:00
|
|
|
#define SOFTWARE_SPI // Use soft SPI for onboard SD
|
|
|
|
#define SDSS SDIO_D3_PIN
|
2021-01-01 20:31:15 +00:00
|
|
|
#define SD_SCK_PIN SDIO_CK_PIN
|
|
|
|
#define SD_MISO_PIN SDIO_D0_PIN
|
|
|
|
#define SD_MOSI_PIN SDIO_CMD_PIN
|
2020-02-04 07:24:11 +00:00
|
|
|
#endif
|
|
|
|
#endif
|