Split up STM32 pins files (#17212)
This commit is contained in:
231
Marlin/src/pins/stm32f4/pins_ARMED.h
Normal file
231
Marlin/src/pins/stm32f4/pins_ARMED.h
Normal file
@ -0,0 +1,231 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
// https://github.com/ktand/Armed
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef STM32F4
|
||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "Arm'ed supports up to 2 hotends / E-steppers."
|
||||
#endif
|
||||
|
||||
#ifndef ARMED_V1_0
|
||||
#define ARMED_V1_1
|
||||
#endif
|
||||
|
||||
#undef BOARD_INFO_NAME // Defined on the command line by Arduino Core STM32
|
||||
#define BOARD_INFO_NAME "Arm'ed"
|
||||
#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
|
||||
|
||||
#define I2C_EEPROM
|
||||
|
||||
#undef E2END // Defined in Arduino Core STM32 to be used with EEPROM emulation. This board uses a real EEPROM.
|
||||
#define E2END 0xFFF // 4KB
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN PE0
|
||||
#define Y_STOP_PIN PE1
|
||||
#define Z_STOP_PIN PE14
|
||||
|
||||
//
|
||||
// Z Probe (when not Z_MIN_PIN)
|
||||
//
|
||||
//#ifndef Z_MIN_PROBE_PIN
|
||||
// #define Z_MIN_PROBE_PIN PA4
|
||||
//#endif
|
||||
|
||||
//
|
||||
// Filament Runout Sensor
|
||||
//
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN PA3
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
|
||||
#ifdef ARMED_SWAP_X_E1
|
||||
#define X_STEP_PIN PE4
|
||||
#define X_DIR_PIN PE2
|
||||
#define X_ENABLE_PIN PE3
|
||||
#define X_CS_PIN PE5
|
||||
#else
|
||||
#define X_STEP_PIN PD3
|
||||
#define X_DIR_PIN PD2
|
||||
#define X_ENABLE_PIN PD0
|
||||
#define X_CS_PIN PD1
|
||||
#endif
|
||||
|
||||
#define Y_STEP_PIN PE11
|
||||
#define Y_DIR_PIN PE10
|
||||
#define Y_ENABLE_PIN PE13
|
||||
#define Y_CS_PIN PE12
|
||||
|
||||
#define Z_STEP_PIN PD6
|
||||
#define Z_DIR_PIN PD7
|
||||
#define Z_ENABLE_PIN PD4
|
||||
#define Z_CS_PIN PD5
|
||||
|
||||
#define E0_STEP_PIN PB5
|
||||
#define E0_DIR_PIN PB6
|
||||
#ifdef ARMED_V1_1
|
||||
#define E0_ENABLE_PIN PC12
|
||||
#else
|
||||
#define E0_ENABLE_PIN PB3
|
||||
#endif
|
||||
#define E0_CS_PIN PB4
|
||||
|
||||
#ifdef ARMED_SWAP_X_E1
|
||||
#define E1_STEP_PIN PD3
|
||||
#define E1_DIR_PIN PD2
|
||||
#define E1_ENABLE_PIN PD0
|
||||
#define E1_CS_PIN PD1
|
||||
#else
|
||||
#define E1_STEP_PIN PE4
|
||||
#define E1_DIR_PIN PE2
|
||||
#define E1_ENABLE_PIN PE3
|
||||
#define E1_CS_PIN PE5
|
||||
#endif
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN PC0 // Analog Input
|
||||
#define TEMP_1_PIN PC1 // Analog Input
|
||||
#define TEMP_BED_PIN PC2 // Analog Input
|
||||
|
||||
#if HOTENDS == 1 && TEMP_SENSOR_PROBE
|
||||
#define TEMP_PROBE_PIN PC1
|
||||
#endif
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN PA1 // Hardware PWM
|
||||
#define HEATER_1_PIN PA2 // Hardware PWM
|
||||
#define HEATER_BED_PIN PA0 // Hardware PWM
|
||||
|
||||
#define FAN_PIN PC6 // Hardware PWM, Part cooling fan
|
||||
#define FAN1_PIN PC7 // Hardware PWM, Extruder fan
|
||||
#define FAN2_PIN PC8 // Hardware PWM, Controller fan
|
||||
|
||||
//
|
||||
// Misc functions
|
||||
//
|
||||
#define SDSS PE7
|
||||
#define LED_PIN PB7 // Heart beat
|
||||
#define PS_ON_PIN PA10
|
||||
#define KILL_PIN PA8
|
||||
#define PWR_LOSS PA4 // Power loss / nAC_FAULT
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#define SD_DETECT_PIN PA15
|
||||
#define BEEPER_PIN PC9
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
//
|
||||
// See https://wiki.fysetc.com/Mini12864_Panel/?fbclid=IwAR1FyjuNdVOOy9_xzky3qqo_WeM5h-4gpRnnWhQr_O1Ef3h0AFnFXmCehK8
|
||||
//
|
||||
#define DOGLCD_A0 PE9
|
||||
#define DOGLCD_CS PE8
|
||||
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
|
||||
#define LCD_RESET_PIN PB12 // Must be high or open for LCD to operate normally.
|
||||
|
||||
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
||||
#ifndef RGB_LED_R_PIN
|
||||
#define RGB_LED_R_PIN PB13
|
||||
#endif
|
||||
#ifndef RGB_LED_G_PIN
|
||||
#define RGB_LED_G_PIN PB14
|
||||
#endif
|
||||
#ifndef RGB_LED_B_PIN
|
||||
#define RGB_LED_B_PIN PB15
|
||||
#endif
|
||||
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
||||
#define NEOPIXEL_PIN PB13
|
||||
#endif
|
||||
#else
|
||||
#define LCD_PINS_RS PE9
|
||||
#define LCD_PINS_ENABLE PE8
|
||||
#define LCD_PINS_D4 PB12
|
||||
#define LCD_PINS_D5 PB13
|
||||
#define LCD_PINS_D6 PB14
|
||||
#define LCD_PINS_D7 PB15
|
||||
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
#define DOGLCD_CS PB13
|
||||
#define DOGLCD_A0 PB14
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define BTN_EN1 PC4
|
||||
#define BTN_EN2 PC5
|
||||
#define BTN_ENC PC3
|
||||
|
||||
//
|
||||
// Extension pins
|
||||
//
|
||||
#define EXT0_PIN PB0
|
||||
#define EXT1_PIN PB1
|
||||
#define EXT2_PIN PB2
|
||||
#define EXT3_PIN PD8
|
||||
#define EXT4_PIN PD9
|
||||
#define EXT5_PIN PD10
|
||||
#define EXT6_PIN PD11
|
||||
#define EXT7_PIN PD12
|
||||
#define EXT8_PIN PB10
|
||||
#define EXT9_PIN PB11
|
||||
|
||||
#if HAS_TMC_UART
|
||||
// TMC2208/TMC2209 stepper drivers
|
||||
//
|
||||
// Software serial
|
||||
//
|
||||
#define X_SERIAL_TX_PIN EXT0_PIN
|
||||
#define X_SERIAL_RX_PIN EXT0_PIN
|
||||
|
||||
#define Y_SERIAL_TX_PIN EXT1_PIN
|
||||
#define Y_SERIAL_RX_PIN EXT1_PIN
|
||||
|
||||
#define Z_SERIAL_TX_PIN EXT2_PIN
|
||||
#define Z_SERIAL_RX_PIN EXT2_PIN
|
||||
|
||||
#define E0_SERIAL_TX_PIN EXT3_PIN
|
||||
#define E0_SERIAL_RX_PIN EXT3_PIN
|
||||
|
||||
#define E1_SERIAL_RX_PIN EXT4_PIN
|
||||
#define E1_SERIAL_TX_PIN EXT4_PIN
|
||||
|
||||
#define Z2_SERIAL_RX_PIN EXT4_PIN
|
||||
#define Z2_SERIAL_TX_PIN EXT4_PIN
|
||||
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
285
Marlin/src/pins/stm32f4/pins_BEAST.h
Normal file
285
Marlin/src/pins/stm32f4/pins_BEAST.h
Normal file
@ -0,0 +1,285 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 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/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#if !defined(__STM32F1__) && !defined(__STM32F4__)
|
||||
#error "Oops! Select an STM32F1/4 board in 'Tools > Board.'"
|
||||
#endif
|
||||
|
||||
/**
|
||||
* 21017 Victor Perez Marlin for stm32f1 test
|
||||
*/
|
||||
|
||||
#define BOARD_INFO_NAME "Beast STM32"
|
||||
#define DEFAULT_MACHINE_NAME "STM32F103RET6"
|
||||
|
||||
// Enable I2C_EEPROM for testing
|
||||
#define I2C_EEPROM
|
||||
|
||||
// Ignore temp readings during development.
|
||||
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN PE0
|
||||
#define X_DIR_PIN PE1
|
||||
#define X_ENABLE_PIN PC0
|
||||
#define X_MIN_PIN PD5
|
||||
#define X_MAX_PIN -1
|
||||
|
||||
#define Y_STEP_PIN PE2
|
||||
#define Y_DIR_PIN PE3
|
||||
#define Y_ENABLE_PIN PC1
|
||||
#define Y_MIN_PIN PD6
|
||||
#define Y_MAX_PIN
|
||||
|
||||
#define Z_STEP_PIN PE4
|
||||
#define Z_DIR_PIN PE5
|
||||
#define Z_ENABLE_PIN PC2
|
||||
#define Z_MIN_PIN PD7
|
||||
#define Z_MAX_PIN -1
|
||||
|
||||
#define Y2_STEP_PIN -1
|
||||
#define Y2_DIR_PIN -1
|
||||
#define Y2_ENABLE_PIN -1
|
||||
|
||||
#define Z2_STEP_PIN -1
|
||||
#define Z2_DIR_PIN -1
|
||||
#define Z2_ENABLE_PIN -1
|
||||
|
||||
#define E0_STEP_PIN PE6
|
||||
#define E0_DIR_PIN PE7
|
||||
#define E0_ENABLE_PIN PC3
|
||||
|
||||
/**
|
||||
* TODO: Currently using same Enable pin to all steppers.
|
||||
*/
|
||||
|
||||
#define E1_STEP_PIN PE8
|
||||
#define E1_DIR_PIN PE9
|
||||
#define E1_ENABLE_PIN PC4
|
||||
|
||||
#define E2_STEP_PIN PE10
|
||||
#define E2_DIR_PIN PE11
|
||||
#define E2_ENABLE_PIN PC5
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define SDSS PA15
|
||||
#define LED_PIN PB2
|
||||
|
||||
#define PS_ON_PIN -1
|
||||
#define KILL_PIN -1
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN PD12 // EXTRUDER 1
|
||||
#define HEATER_1_PIN PD13
|
||||
#define HEATER_2_PIN PD14
|
||||
|
||||
#define HEATER_BED_PIN PB9 // BED
|
||||
#define HEATER_BED2_PIN -1 // BED2
|
||||
#define HEATER_BED3_PIN -1 // BED3
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN PB10
|
||||
#endif
|
||||
|
||||
#define FAN_SOFT_PWM
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_BED_PIN PA0 // Analog Input
|
||||
#define TEMP_0_PIN PA1 // Analog Input
|
||||
#define TEMP_1_PIN PA2 // Analog Input
|
||||
#define TEMP_2_PIN PA3 // Analog Input
|
||||
|
||||
//
|
||||
// LCD Pins
|
||||
//
|
||||
#if HAS_SPI_LCD
|
||||
|
||||
#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
|
||||
#define LCD_PINS_RS 49 // CS chip select /SS chip slave select
|
||||
#define LCD_PINS_ENABLE 51 // SID (MOSI)
|
||||
#define LCD_PINS_D4 52 // SCK (CLK) clock
|
||||
#elif BOTH(NEWPANEL, PANEL_ONE)
|
||||
#define LCD_PINS_RS PB8
|
||||
#define LCD_PINS_ENABLE PD2
|
||||
#define LCD_PINS_D4 PB12
|
||||
#define LCD_PINS_D5 PB13
|
||||
#define LCD_PINS_D6 PB14
|
||||
#define LCD_PINS_D7 PB15
|
||||
#else
|
||||
#define LCD_PINS_RS PB8
|
||||
#define LCD_PINS_ENABLE PD2
|
||||
#define LCD_PINS_D4 PB12
|
||||
#define LCD_PINS_D5 PB13
|
||||
#define LCD_PINS_D6 PB14
|
||||
#define LCD_PINS_D7 PB15
|
||||
#if DISABLED(NEWPANEL)
|
||||
#define BEEPER_PIN 33
|
||||
// Buttons attached to a shift register
|
||||
// Not wired yet
|
||||
//#define SHIFT_CLK 38
|
||||
//#define SHIFT_LD 42
|
||||
//#define SHIFT_OUT 40
|
||||
//#define SHIFT_EN 17
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if ENABLED(NEWPANEL)
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
|
||||
|
||||
#define BEEPER_PIN 37
|
||||
|
||||
#define BTN_EN1 31
|
||||
#define BTN_EN2 33
|
||||
#define BTN_ENC 35
|
||||
|
||||
#define SD_DETECT_PIN 49
|
||||
#define KILL_PIN 41
|
||||
|
||||
#if ENABLED(BQ_LCD_SMART_CONTROLLER)
|
||||
#define LCD_BACKLIGHT_PIN 39
|
||||
#endif
|
||||
|
||||
#elif ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
|
||||
|
||||
#define BTN_EN1 64
|
||||
#define BTN_EN2 59
|
||||
#define BTN_ENC 63
|
||||
#define SD_DETECT_PIN 42
|
||||
|
||||
#elif ENABLED(LCD_I2C_PANELOLU2)
|
||||
|
||||
#define BTN_EN1 47
|
||||
#define BTN_EN2 43
|
||||
#define BTN_ENC 32
|
||||
#define LCD_SDSS 53
|
||||
#define SD_DETECT_PIN -1
|
||||
#define KILL_PIN 41
|
||||
|
||||
#elif ENABLED(LCD_I2C_VIKI)
|
||||
|
||||
#define BTN_EN1 22 // http://files.panucatt.com/datasheets/viki_wiring_diagram.pdf explains 40/42.
|
||||
#define BTN_EN2 7 // 22/7 are unused on RAMPS_14. 22 is unused and 7 the SERVO0_PIN on RAMPS_13.
|
||||
|
||||
#define BTN_ENC -1
|
||||
#define LCD_SDSS 53
|
||||
#define SD_DETECT_PIN 49
|
||||
|
||||
#elif ANY(VIKI2, miniVIKI)
|
||||
|
||||
#define BEEPER_PIN 33
|
||||
|
||||
// Pins for DOGM SPI LCD Support
|
||||
#define DOGLCD_A0 44
|
||||
#define DOGLCD_CS 45
|
||||
#define LCD_SCREEN_ROT_180
|
||||
|
||||
#define BTN_EN1 22
|
||||
#define BTN_EN2 7
|
||||
#define BTN_ENC 39
|
||||
|
||||
#define SDSS 53
|
||||
#define SD_DETECT_PIN -1 // Pin 49 for display sd interface, 72 for easy adapter board
|
||||
|
||||
#define KILL_PIN 31
|
||||
|
||||
#define STAT_LED_RED_PIN 32
|
||||
#define STAT_LED_BLUE_PIN 35
|
||||
|
||||
#elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
|
||||
|
||||
#define BTN_EN1 35
|
||||
#define BTN_EN2 37
|
||||
#define BTN_ENC 31
|
||||
#define SD_DETECT_PIN 49
|
||||
#define LCD_SDSS 53
|
||||
#define KILL_PIN 41
|
||||
#define BEEPER_PIN 23
|
||||
#define DOGLCD_CS 29
|
||||
#define DOGLCD_A0 27
|
||||
#define LCD_BACKLIGHT_PIN 33
|
||||
|
||||
#elif ENABLED(MINIPANEL)
|
||||
|
||||
#define BEEPER_PIN 42
|
||||
// Pins for DOGM SPI LCD Support
|
||||
#define DOGLCD_A0 44
|
||||
#define DOGLCD_CS 66
|
||||
#define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
|
||||
#define SDSS 53
|
||||
|
||||
#define KILL_PIN 64
|
||||
// GLCD features
|
||||
// Uncomment screen orientation
|
||||
//#define LCD_SCREEN_ROT_90
|
||||
//#define LCD_SCREEN_ROT_180
|
||||
//#define LCD_SCREEN_ROT_270
|
||||
// The encoder and click button
|
||||
#define BTN_EN1 40
|
||||
#define BTN_EN2 63
|
||||
#define BTN_ENC 59
|
||||
// not connected to a pin
|
||||
#define SD_DETECT_PIN 49
|
||||
|
||||
#else
|
||||
|
||||
// Beeper on AUX-4
|
||||
#define BEEPER_PIN 33
|
||||
|
||||
// Buttons directly attached to AUX-2
|
||||
#if ENABLED(REPRAPWORLD_KEYPAD)
|
||||
#define BTN_EN1 64
|
||||
#define BTN_EN2 59
|
||||
#define BTN_ENC 63
|
||||
#define SHIFT_OUT 40
|
||||
#define SHIFT_CLK 44
|
||||
#define SHIFT_LD 42
|
||||
#elif ENABLED(PANEL_ONE)
|
||||
#define BTN_EN1 59 // AUX2 PIN 3
|
||||
#define BTN_EN2 63 // AUX2 PIN 4
|
||||
#define BTN_ENC 49 // AUX3 PIN 7
|
||||
#else
|
||||
#define BTN_EN1 37
|
||||
#define BTN_EN2 35
|
||||
#define BTN_ENC 31
|
||||
#endif
|
||||
|
||||
#if ENABLED(G3D_PANEL)
|
||||
#define SD_DETECT_PIN 49
|
||||
#define KILL_PIN 41
|
||||
#else
|
||||
//#define SD_DETECT_PIN -1 // Ramps doesn't use this
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif // NEWPANEL
|
||||
|
||||
#endif // HAS_SPI_LCD
|
155
Marlin/src/pins/stm32f4/pins_BLACK_STM32F407VE.h
Normal file
155
Marlin/src/pins/stm32f4/pins_BLACK_STM32F407VE.h
Normal file
@ -0,0 +1,155 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 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/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* STM32F407VET6 with RAMPS-like shield
|
||||
* 'Black' STM32F407VET6 board - http://wiki.stm32duino.com/index.php?title=STM32F407
|
||||
* Shield - https://github.com/jmz52/Hardware
|
||||
*/
|
||||
|
||||
#if !defined(STM32F4) && !defined(STM32F4xx)
|
||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "Black STM32F4VET6 supports up to 2 hotends / E-steppers."
|
||||
#endif
|
||||
|
||||
#ifndef BOARD_INFO_NAME
|
||||
#define BOARD_INFO_NAME "Black STM32F4VET6"
|
||||
#endif
|
||||
|
||||
#define DEFAULT_MACHINE_NAME "STM32F407VET6"
|
||||
|
||||
//#define I2C_EEPROM
|
||||
//#define E2END 0x1FFF // 8KB
|
||||
#define SRAM_EEPROM_EMULATION
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN PC6
|
||||
#define SERVO1_PIN PC7
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#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
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN PC4
|
||||
#define X_DIR_PIN PA4
|
||||
#define X_ENABLE_PIN PE7
|
||||
|
||||
#define Y_STEP_PIN PE5
|
||||
#define Y_DIR_PIN PE2
|
||||
#define Y_ENABLE_PIN PE6
|
||||
|
||||
#define Z_STEP_PIN PD5
|
||||
#define Z_DIR_PIN PD3
|
||||
#define Z_ENABLE_PIN PD6
|
||||
|
||||
#define E0_STEP_PIN PD7
|
||||
#define E0_DIR_PIN PD0
|
||||
#define E0_ENABLE_PIN PB9
|
||||
|
||||
#define E1_STEP_PIN PE0
|
||||
#define E1_DIR_PIN PE1
|
||||
#define E1_ENABLE_PIN PB8
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN PC0 // T0
|
||||
#define TEMP_1_PIN PC1 // T1
|
||||
#define TEMP_BED_PIN PC2 // TB
|
||||
|
||||
#ifndef TEMP_CHAMBER_PIN
|
||||
#define TEMP_CHAMBER_PIN PC3 // TC
|
||||
#endif
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN PA2 // Heater0
|
||||
#define HEATER_1_PIN PA3 // Heater1
|
||||
#define HEATER_BED_PIN PA1 // Hotbed
|
||||
|
||||
#define FAN_PIN PE9 // Fan0
|
||||
#define FAN1_PIN PE11 // Fan1
|
||||
#define FAN2_PIN PE13 // Fan2
|
||||
#define FAN3_PIN PE14 // Fan3
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define LED_PIN PA6
|
||||
//#define LED_PIN PA7
|
||||
#define KILL_PIN PB1
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
//#define SD_DETECT_PIN PC5
|
||||
//#define SD_DETECT_PIN PA8 // SDIO SD_DETECT_PIN, external SDIO card reader only
|
||||
|
||||
#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
|
||||
|
||||
#define DOGLCD_CS LCD_PINS_D5
|
||||
#define DOGLCD_A0 LCD_PINS_D6
|
||||
|
||||
//
|
||||
// Onboard SD support
|
||||
//
|
||||
#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
|
||||
|
||||
#if !defined(SDCARD_CONNECTION) || SDCARD_CONNECTION == ONBOARD
|
||||
#define SDIO_SUPPORT // Use SDIO for onboard SD
|
||||
|
||||
#ifndef SDIO_SUPPORT
|
||||
#define SOFTWARE_SPI // Use soft SPI for onboard SD
|
||||
#define SDSS SDIO_D3_PIN
|
||||
#define SCK_PIN SDIO_CK_PIN
|
||||
#define MISO_PIN SDIO_D0_PIN
|
||||
#define MOSI_PIN SDIO_CMD_PIN
|
||||
#endif
|
||||
#endif
|
253
Marlin/src/pins/stm32f4/pins_BTT_BTT002_V1_0.h
Normal file
253
Marlin/src/pins/stm32f4/pins_BTT_BTT002_V1_0.h
Normal file
@ -0,0 +1,253 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 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/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#ifndef TARGET_STM32F4
|
||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||
#elif HOTENDS > 1 || E_STEPPERS > 1
|
||||
#error "BIGTREE BTT002 V1.0 supports up to 1 hotends / E-steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "BIGTREE Btt002 1.0"
|
||||
|
||||
// Use one of these or SDCard-based Emulation will be used
|
||||
//#define SRAM_EEPROM_EMULATION // Use BackSRAM-based EEPROM emulation
|
||||
#define FLASH_EEPROM_EMULATION // Use Flash-based EEPROM emulation
|
||||
|
||||
// Ignore temp readings during development.
|
||||
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN PD3
|
||||
#define Y_STOP_PIN PD2
|
||||
#define Z_STOP_PIN PD1 // Shares J4 connector with PC3
|
||||
|
||||
//
|
||||
// Z Probe must be this pin
|
||||
//
|
||||
#ifndef Z_MIN_PROBE_PIN
|
||||
#define Z_MIN_PROBE_PIN PD1
|
||||
#endif
|
||||
|
||||
//
|
||||
// Filament Runout Sensor
|
||||
//
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN PA15
|
||||
#endif
|
||||
|
||||
//
|
||||
// Power Loss Detection
|
||||
//
|
||||
#ifndef POWER_LOSS_PIN
|
||||
#define POWER_LOSS_PIN PD4
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN PA9
|
||||
#define X_DIR_PIN PA10
|
||||
#define X_ENABLE_PIN PA8
|
||||
#ifndef X_CS_PIN
|
||||
#define X_CS_PIN PE2
|
||||
#endif
|
||||
|
||||
#define Y_STEP_PIN PC8
|
||||
#define Y_DIR_PIN PC9
|
||||
#define Y_ENABLE_PIN PC7
|
||||
#ifndef Y_CS_PIN
|
||||
#define Y_CS_PIN PE3
|
||||
#endif
|
||||
|
||||
#define Z_STEP_PIN PD15
|
||||
#define Z_DIR_PIN PC6
|
||||
#define Z_ENABLE_PIN PD14
|
||||
#ifndef Z_CS_PIN
|
||||
#define Z_CS_PIN PE4
|
||||
#endif
|
||||
|
||||
#define E0_STEP_PIN PD12
|
||||
#define E0_DIR_PIN PD13
|
||||
#define E0_ENABLE_PIN PD11
|
||||
#ifndef E0_CS_PIN
|
||||
#define E0_CS_PIN PD7
|
||||
#endif
|
||||
|
||||
//
|
||||
// Software SPI pins for TMC2130 stepper drivers
|
||||
//
|
||||
#if ENABLED(TMC_USE_SW_SPI)
|
||||
#ifndef TMC_SW_MOSI
|
||||
#define TMC_SW_MOSI PB15
|
||||
#endif
|
||||
#ifndef TMC_SW_MISO
|
||||
#define TMC_SW_MISO PB14
|
||||
#endif
|
||||
#ifndef TMC_SW_SCK
|
||||
#define TMC_SW_SCK PB13
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if HAS_TMC_UART
|
||||
/**
|
||||
* TMC2208/TMC2209 stepper drivers
|
||||
*
|
||||
* Hardware serial communication ports.
|
||||
* If undefined software serial is used according to the pins below
|
||||
*/
|
||||
//#define X_HARDWARE_SERIAL Serial1
|
||||
//#define X2_HARDWARE_SERIAL Serial1
|
||||
//#define Y_HARDWARE_SERIAL Serial1
|
||||
//#define Y2_HARDWARE_SERIAL Serial1
|
||||
//#define Z_HARDWARE_SERIAL Serial1
|
||||
//#define Z2_HARDWARE_SERIAL Serial1
|
||||
//#define E0_HARDWARE_SERIAL Serial1
|
||||
//#define E1_HARDWARE_SERIAL Serial1
|
||||
//#define E2_HARDWARE_SERIAL Serial1
|
||||
//#define E3_HARDWARE_SERIAL Serial1
|
||||
//#define E4_HARDWARE_SERIAL Serial1
|
||||
|
||||
//
|
||||
// Software serial ##
|
||||
//
|
||||
#define X_SERIAL_TX_PIN PE2
|
||||
#define X_SERIAL_RX_PIN PE2
|
||||
|
||||
#define Y_SERIAL_TX_PIN PE3
|
||||
#define Y_SERIAL_RX_PIN PE3
|
||||
|
||||
#define Z_SERIAL_TX_PIN PE4
|
||||
#define Z_SERIAL_RX_PIN PE4
|
||||
|
||||
#define E0_SERIAL_TX_PIN PD7
|
||||
#define E0_SERIAL_RX_PIN PD7
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN PA2 // T0 <-> E0
|
||||
#define TEMP_1_PIN PA0 // T1 <-> E1
|
||||
#define TEMP_BED_PIN PA1 // T2 <-> Bed
|
||||
#define TEMP_PROBE_PIN PC3 // Shares J4 connector with PD1
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN PE6 // Heater0
|
||||
#define HEATER_BED_PIN PE5 // Hotbed
|
||||
#define FAN_PIN PB8 // Fan1
|
||||
#define FAN1_PIN PB9 // Fan0
|
||||
|
||||
// HAL SPI1 pins
|
||||
#define CUSTOM_SPI_PINS
|
||||
#if ENABLED(CUSTOM_SPI_PINS)
|
||||
#define SCK_PIN PA5 // SPI1 SCLK
|
||||
#define SS_PIN PA4 // SPI1 SSEL
|
||||
#define MISO_PIN PA6 // SPI1 MISO
|
||||
#define MOSI_PIN PA7 // SPI1 MOSI
|
||||
#endif
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define SDSS PA4
|
||||
|
||||
/**
|
||||
* -------------------------------------BTT002 V1.0-----------------------------------------------
|
||||
* _____ _____ |
|
||||
* PA3 | · · | GND 5V | · · | GND |
|
||||
* NRESET | · · | PC4(SD_DET) (LCD_D7) PE13 | · · | PE12 (LCD_D6) |
|
||||
* (MOSI)PA7 | · · | PB0(BTN_EN2) (LCD_D5) PE11 | · · | PE10 (LCD_D4) |
|
||||
* (SD_SS)PA4 | · · | PC5(BTN_EN1) (LCD_RS) PE8 | · · | PE9 (LCD_EN) |
|
||||
* (SCK)PA5 | · · | PA6(MISO) (BTN_ENC) PB1 | · · | PE7 (BEEPER) |
|
||||
*  ̄ ̄  ̄ ̄ |
|
||||
* EXP2 EXP1 |
|
||||
* ---------------------------------------------------------------------------------------------
|
||||
*/
|
||||
//
|
||||
// LCDs and Controllers
|
||||
//
|
||||
#if HAS_SPI_LCD
|
||||
#define BEEPER_PIN PE7
|
||||
#define BTN_ENC PB1
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
#define LCD_PINS_RS PE12
|
||||
|
||||
#define BTN_EN1 PE9
|
||||
#define BTN_EN2 PE10
|
||||
|
||||
#define LCD_PINS_ENABLE PE13
|
||||
#define LCD_PINS_D4 PE11
|
||||
|
||||
#else
|
||||
|
||||
#define LCD_PINS_RS PE8
|
||||
|
||||
#define BTN_EN1 PC5
|
||||
#define BTN_EN2 PB0
|
||||
#define SD_DETECT_PIN PC4
|
||||
|
||||
#define LCD_SDSS PA4
|
||||
|
||||
#define LCD_PINS_ENABLE PE9
|
||||
#define LCD_PINS_D4 PE10
|
||||
|
||||
#if ENABLED(ULTIPANEL)
|
||||
#define LCD_PINS_D5 PE11
|
||||
#define LCD_PINS_D6 PE12
|
||||
#define LCD_PINS_D7 PE13
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if HAS_GRAPHICAL_LCD
|
||||
#define BOARD_ST7920_DELAY_1 DELAY_NS(96)
|
||||
#define BOARD_ST7920_DELAY_2 DELAY_NS(48)
|
||||
#define BOARD_ST7920_DELAY_3 DELAY_NS(600)
|
||||
#endif
|
||||
|
||||
#endif // HAS_SPI_LCD
|
||||
|
||||
//
|
||||
// RGB LEDs
|
||||
//
|
||||
#ifndef RGB_LED_R_PIN
|
||||
#define RGB_LED_R_PIN PB5
|
||||
#endif
|
||||
#ifndef RGB_LED_G_PIN
|
||||
#define RGB_LED_G_PIN PB4
|
||||
#endif
|
||||
#ifndef RGB_LED_B_PIN
|
||||
#define RGB_LED_B_PIN PB3
|
||||
#endif
|
||||
#ifndef RGB_LED_W_PIN
|
||||
#define RGB_LED_W_PIN -1
|
||||
#endif
|
391
Marlin/src/pins/stm32f4/pins_BTT_GTR_V1_0.h
Normal file
391
Marlin/src/pins/stm32f4/pins_BTT_GTR_V1_0.h
Normal file
@ -0,0 +1,391 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 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/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#ifndef TARGET_STM32F4
|
||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||
#elif HOTENDS > 8 || E_STEPPERS > 8
|
||||
#error "BIGTREE GTR V1.0 supports up to 8 hotends / E-steppers."
|
||||
#elif HOTENDS > MAX_EXTRUDERS || E_STEPPERS > MAX_EXTRUDERS
|
||||
#error "Marlin extruder/hotends limit! Increase MAX_EXTRUDERS to continue."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "BIGTREE GTR 1.0"
|
||||
|
||||
// Use one of these or SDCard-based Emulation will be used
|
||||
//#define I2C_EEPROM
|
||||
//#define SRAM_EEPROM_EMULATION // Use BackSRAM-based EEPROM emulation
|
||||
//#define FLASH_EEPROM_EMULATION // Use Flash-based EEPROM emulation
|
||||
|
||||
#define TP // Enable to define servo and probe pins
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#if ENABLED(TP)
|
||||
#define SERVO0_PIN PB11
|
||||
#endif
|
||||
|
||||
#define PS_ON_PIN PH6
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_MIN_PIN PF2
|
||||
#define X_MAX_PIN PG14
|
||||
#define Y_MIN_PIN PC13
|
||||
#define Y_MAX_PIN PG9
|
||||
#define Z_MIN_PIN PE0
|
||||
#define Z_MAX_PIN PD3
|
||||
|
||||
//
|
||||
// Pins on the extender
|
||||
//
|
||||
//#define X_MIN_PIN PI4
|
||||
//#define X2_MIN_PIN PF12
|
||||
//#define Y_MIN_PIN PF4
|
||||
//#define Y2_MIN_PIN PI7
|
||||
//#define Z_MIN_PIN PF6
|
||||
|
||||
#if ENABLED(TP) && !defined(Z_MIN_PROBE_PIN)
|
||||
#define Z_MIN_PROBE_PIN PH11 // Z Probe must be PH11
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN PC15
|
||||
#define X_DIR_PIN PF0
|
||||
#define X_ENABLE_PIN PF1
|
||||
#ifndef X_CS_PIN
|
||||
#define X_CS_PIN PC14
|
||||
#endif
|
||||
|
||||
#define Y_STEP_PIN PE3
|
||||
#define Y_DIR_PIN PE2
|
||||
#define Y_ENABLE_PIN PE4
|
||||
#ifndef Y_CS_PIN
|
||||
#define Y_CS_PIN PE1
|
||||
#endif
|
||||
|
||||
#define Z_STEP_PIN PB8
|
||||
#define Z_DIR_PIN PB7 // PB7
|
||||
#define Z_ENABLE_PIN PB9
|
||||
#ifndef Z_CS_PIN
|
||||
#define Z_CS_PIN PB5
|
||||
#endif
|
||||
|
||||
#define E0_STEP_PIN PG12
|
||||
#define E0_DIR_PIN PG11
|
||||
#define E0_ENABLE_PIN PG13
|
||||
#ifndef E0_CS_PIN
|
||||
#define E0_CS_PIN PG10
|
||||
#endif
|
||||
|
||||
#define E1_STEP_PIN PD6
|
||||
#define E1_DIR_PIN PD5
|
||||
#define E1_ENABLE_PIN PD7
|
||||
#ifndef E1_CS_PIN
|
||||
#define E1_CS_PIN PD4
|
||||
#endif
|
||||
|
||||
#define E2_STEP_PIN PD1
|
||||
#define E2_DIR_PIN PD0
|
||||
#define E2_ENABLE_PIN PD2
|
||||
#ifndef E2_CS_PIN
|
||||
#define E2_CS_PIN PC12
|
||||
#endif
|
||||
|
||||
#define E3_STEP_PIN PF3
|
||||
#define E3_DIR_PIN PG3
|
||||
#define E3_ENABLE_PIN PF8
|
||||
#ifndef E3_CS_PIN
|
||||
#define E3_CS_PIN PG4
|
||||
#endif
|
||||
|
||||
#define E4_STEP_PIN PD14
|
||||
#define E4_DIR_PIN PD11
|
||||
#define E4_ENABLE_PIN PG2
|
||||
#ifndef E4_CS_PIN
|
||||
#define E4_CS_PIN PE15
|
||||
#endif
|
||||
|
||||
#define E5_STEP_PIN PE12
|
||||
#define E5_DIR_PIN PE10
|
||||
#define E5_ENABLE_PIN PF14
|
||||
#ifndef E5_CS_PIN
|
||||
#define E5_CS_PIN PE7
|
||||
#endif
|
||||
|
||||
#define E6_STEP_PIN PG0
|
||||
#define E6_DIR_PIN PG1
|
||||
#define E6_ENABLE_PIN PE8
|
||||
#ifndef E6_CS_PIN
|
||||
#define E6_CS_PIN PF15
|
||||
#endif
|
||||
|
||||
#define E7_STEP_PIN PH12
|
||||
#define E7_DIR_PIN PH15
|
||||
#define E7_ENABLE_PIN PI0
|
||||
#ifndef E7_CS_PIN
|
||||
#define E7_CS_PIN PH14
|
||||
#endif
|
||||
|
||||
//
|
||||
// Software SPI pins for TMC2130 stepper drivers
|
||||
//
|
||||
#if ENABLED(TMC_USE_SW_SPI)
|
||||
#ifndef TMC_SW_MOSI
|
||||
#define TMC_SW_MOSI PG15
|
||||
#endif
|
||||
#ifndef TMC_SW_MISO
|
||||
#define TMC_SW_MISO PB6
|
||||
#endif
|
||||
#ifndef TMC_SW_SCK
|
||||
#define TMC_SW_SCK PB3
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if HAS_TMC_UART
|
||||
/**
|
||||
* TMC2208/TMC2209 stepper drivers
|
||||
*
|
||||
* Hardware serial communication ports.
|
||||
* If undefined software serial is used according to the pins below
|
||||
*/
|
||||
//#define X_HARDWARE_SERIAL Serial
|
||||
//#define X2_HARDWARE_SERIAL Serial1
|
||||
//#define Y_HARDWARE_SERIAL Serial1
|
||||
//#define Y2_HARDWARE_SERIAL Serial1
|
||||
//#define Z_HARDWARE_SERIAL Serial1
|
||||
//#define Z2_HARDWARE_SERIAL Serial1
|
||||
//#define E0_HARDWARE_SERIAL Serial1
|
||||
//#define E1_HARDWARE_SERIAL Serial1
|
||||
//#define E2_HARDWARE_SERIAL Serial1
|
||||
//#define E3_HARDWARE_SERIAL Serial1
|
||||
//#define E4_HARDWARE_SERIAL Serial1
|
||||
//#define E5_HARDWARE_SERIAL Serial1
|
||||
//#define E6_HARDWARE_SERIAL Serial1
|
||||
//#define E7_HARDWARE_SERIAL Serial1
|
||||
|
||||
//
|
||||
// Software serial
|
||||
//
|
||||
#define X_SERIAL_TX_PIN PC14
|
||||
#define X_SERIAL_RX_PIN PC14
|
||||
|
||||
#define Y_SERIAL_TX_PIN PE1
|
||||
#define Y_SERIAL_RX_PIN PE1
|
||||
|
||||
#define Z_SERIAL_TX_PIN PB5
|
||||
#define Z_SERIAL_RX_PIN PB5
|
||||
|
||||
#define E0_SERIAL_TX_PIN PG10
|
||||
#define E0_SERIAL_RX_PIN PG10
|
||||
|
||||
#define E1_SERIAL_TX_PIN PD4
|
||||
#define E1_SERIAL_RX_PIN PD4
|
||||
|
||||
#define E2_SERIAL_TX_PIN PC12
|
||||
#define E2_SERIAL_RX_PIN PC12
|
||||
|
||||
#define E3_SERIAL_TX_PIN PG4
|
||||
#define E3_SERIAL_RX_PIN PG4
|
||||
|
||||
#define E4_SERIAL_TX_PIN PE15
|
||||
#define E4_SERIAL_RX_PIN PE15
|
||||
|
||||
#define E5_SERIAL_TX_PIN PE7
|
||||
#define E5_SERIAL_RX_PIN PE7
|
||||
|
||||
#define E6_SERIAL_TX_PIN PF15
|
||||
#define E6_SERIAL_RX_PIN PF15
|
||||
|
||||
#define E7_SERIAL_TX_PIN PH14
|
||||
#define E7_SERIAL_RX_PIN PH14
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN PC1 // T1 <-> E0
|
||||
#define TEMP_1_PIN PC2 // T2 <-> E1
|
||||
#define TEMP_2_PIN PC3 // T3 <-> E2
|
||||
|
||||
#define TEMP_3_PIN PA3 // T4 <-> E3
|
||||
#define TEMP_4_PIN PF9 // T5 <-> E4
|
||||
#define TEMP_5_PIN PF10 // T6 <-> E5
|
||||
#define TEMP_6_PIN PF7 // T7 <-> E6
|
||||
#define TEMP_7_PIN PF5 // T8 <-> E7
|
||||
|
||||
#define TEMP_BED_PIN PC0 // T0 <-> Bed
|
||||
|
||||
// SPI for Max6675 or Max31855 Thermocouple
|
||||
// Uses a separate SPI bus
|
||||
// If you have a two-way thermocouple, you can customize two THERMO_CSx_PIN pins (x:1~2)
|
||||
|
||||
#define THERMO_SCK_PIN PI1 // SCK
|
||||
#define THERMO_DO_PIN PI2 // MISO
|
||||
#define THERMO_CS1_PIN PH9 // CS1
|
||||
#define THERMO_CS2_PIN PH2 // CS2
|
||||
|
||||
#define MAX6675_SS_PIN THERMO_CS1_PIN
|
||||
#define MAX6675_SS2_PIN THERMO_CS2_PIN
|
||||
#define MAX6675_SCK_PIN THERMO_SCK_PIN
|
||||
#define MAX6675_DO_PIN THERMO_DO_PIN
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN PB1 // Heater0
|
||||
#define HEATER_1_PIN PA1 // Heater1
|
||||
#define HEATER_2_PIN PB0 // Heater2
|
||||
|
||||
#define HEATER_3_PIN PD15 // Heater3
|
||||
#define HEATER_4_PIN PD13 // Heater4
|
||||
#define HEATER_5_PIN PD12 // Heater5
|
||||
#define HEATER_6_PIN PE13 // Heater6
|
||||
#define HEATER_7_PIN PI6 // Heater7
|
||||
|
||||
#define HEATER_BED_PIN PA2 // Hotbed
|
||||
|
||||
#define FAN_PIN PE5 // Fan0
|
||||
#define FAN1_PIN PE6 // Fan1
|
||||
#define FAN2_PIN PC8 // Fan2
|
||||
|
||||
#define FAN3_PIN PI5 // Fan3
|
||||
#define FAN4_PIN PE9 // Fan4
|
||||
#define FAN5_PIN PE11 // Fan5
|
||||
//#define FAN6_PIN PC9 // Fan6
|
||||
//#define FAN7_PIN PE14 // Fan7
|
||||
|
||||
//
|
||||
// By default the onboard SD (SPI1) is enabled
|
||||
//
|
||||
#define CUSTOM_SPI_PINS
|
||||
#if DISABLED(CUSTOM_SPI_PINS)
|
||||
#define SDSS PB12
|
||||
#endif
|
||||
|
||||
// HAL SPI1 pins group
|
||||
#if ENABLED(CUSTOM_SPI_PINS)
|
||||
#define SDSS PA4
|
||||
#define SD_DETECT_PIN PC4
|
||||
#define LCD_SDSS PA4
|
||||
|
||||
#define SCK_PIN PA5
|
||||
#define MISO_PIN PA6
|
||||
#define MOSI_PIN PA7
|
||||
#define SS_PIN PA4 // Chip select for SD card used by Marlin
|
||||
#endif
|
||||
|
||||
/**
|
||||
* _____ _____
|
||||
* NC | · · | GND 5V | · · | GND
|
||||
* RESET | · · | PB10(SD_DETECT) (LCD_D7) PG5 | · · | PG6 (LCD_D6)
|
||||
* (MOSI)PB15 | · · | PH10(BTN_EN2) (LCD_D5) PG7 | · · | PG8 (LCD_D4)
|
||||
* (SD_SS)PB12 | · · | PD10(BTN_EN1) (LCD_RS) PA8 | · · | PC10 (LCD_EN)
|
||||
* (SCK)PB13 | · · | PB14(MISO) (BTN_ENC) PA15 | · · | PC11 (BEEPER)
|
||||
*  ̄ ̄  ̄ ̄
|
||||
* EXP2 EXP1
|
||||
*/
|
||||
|
||||
//
|
||||
// LCDs and Controllers
|
||||
//
|
||||
#if HAS_SPI_LCD
|
||||
#define BEEPER_PIN PC11
|
||||
#define BTN_ENC PA15
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
|
||||
#define LCD_PINS_RS PA8
|
||||
|
||||
#define BTN_EN1 PD10
|
||||
#define BTN_EN2 PH10
|
||||
|
||||
#define LCD_PINS_ENABLE PG7
|
||||
#define LCD_PINS_D4 PG8
|
||||
|
||||
//#undef ST7920_DELAY_1
|
||||
//#undef ST7920_DELAY_2
|
||||
//#undef ST7920_DELAY_3
|
||||
|
||||
#else
|
||||
|
||||
#define LCD_PINS_RS PA8
|
||||
|
||||
#define BTN_EN1 PD10
|
||||
#define BTN_EN2 PH10
|
||||
|
||||
#if DISABLED(CUSTOM_SPI_PINS)
|
||||
#define SD_DETECT_PIN PB10
|
||||
#define LCD_SDSS PB12
|
||||
#endif
|
||||
|
||||
#define LCD_PINS_ENABLE PC10
|
||||
#define LCD_PINS_D4 PG8
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
#define DOGLCD_CS PC10
|
||||
#define DOGLCD_A0 PA8
|
||||
//#define LCD_BACKLIGHT_PIN -1
|
||||
#define LCD_RESET_PIN PG8 // Must be high or open for LCD to operate normally.
|
||||
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
||||
#ifndef RGB_LED_R_PIN
|
||||
#define RGB_LED_R_PIN PG7
|
||||
#endif
|
||||
#ifndef RGB_LED_G_PIN
|
||||
#define RGB_LED_G_PIN PG6
|
||||
#endif
|
||||
#ifndef RGB_LED_B_PIN
|
||||
#define RGB_LED_B_PIN PG5
|
||||
#endif
|
||||
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
||||
#define NEOPIXEL_PIN PF13
|
||||
#endif
|
||||
#endif // !FYSETC_MINI_12864
|
||||
|
||||
#if ENABLED(ULTIPANEL)
|
||||
#define LCD_PINS_D5 PG7
|
||||
#define LCD_PINS_D6 PG6
|
||||
#define LCD_PINS_D7 PG5
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if HAS_GRAPHICAL_LCD
|
||||
#define BOARD_ST7920_DELAY_1 DELAY_NS(96)
|
||||
#define BOARD_ST7920_DELAY_2 DELAY_NS(48)
|
||||
#define BOARD_ST7920_DELAY_3 DELAY_NS(600)
|
||||
#endif
|
||||
|
||||
//#define DOGLCD_CS PB12
|
||||
//#define DOGLCD_A0 PA8
|
||||
//#define LCD_PINS_DC PB14
|
||||
//#define DOGLCD_MOSI PB15
|
||||
|
||||
#endif // HAS_SPI_LCD
|
286
Marlin/src/pins/stm32f4/pins_BTT_SKR_PRO_V1_1.h
Normal file
286
Marlin/src/pins/stm32f4/pins_BTT_SKR_PRO_V1_1.h
Normal file
@ -0,0 +1,286 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 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/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#ifndef TARGET_STM32F4
|
||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||
#elif HOTENDS > 3 || E_STEPPERS > 3
|
||||
#error "BIGTREE SKR Pro V1.1 supports up to 3 hotends / E-steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "BIGTREE SKR Pro 1.1" // redefined?
|
||||
|
||||
// Use one of these or SDCard-based Emulation will be used
|
||||
//#define SRAM_EEPROM_EMULATION // Use BackSRAM-based EEPROM emulation
|
||||
//#define FLASH_EEPROM_EMULATION // Use Flash-based EEPROM emulation
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN PA1
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_MIN_PIN PB10
|
||||
#define X_MAX_PIN PE15
|
||||
#define Y_MIN_PIN PE12
|
||||
#define Y_MAX_PIN PE10
|
||||
#define Z_MIN_PIN PG8
|
||||
#define Z_MAX_PIN PG5
|
||||
|
||||
//
|
||||
// Z Probe must be this pins
|
||||
//
|
||||
#ifndef Z_MIN_PROBE_PIN
|
||||
#define Z_MIN_PROBE_PIN PA2
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN PE9
|
||||
#define X_DIR_PIN PF1
|
||||
#define X_ENABLE_PIN PF2
|
||||
#ifndef X_CS_PIN
|
||||
#define X_CS_PIN PA15
|
||||
#endif
|
||||
|
||||
#define Y_STEP_PIN PE11
|
||||
#define Y_DIR_PIN PE8
|
||||
#define Y_ENABLE_PIN PD7
|
||||
#ifndef Y_CS_PIN
|
||||
#define Y_CS_PIN PB8
|
||||
#endif
|
||||
|
||||
#define Z_STEP_PIN PE13
|
||||
#define Z_DIR_PIN PC2
|
||||
#define Z_ENABLE_PIN PC0
|
||||
#ifndef Z_CS_PIN
|
||||
#define Z_CS_PIN PB9
|
||||
#endif
|
||||
|
||||
#define E0_STEP_PIN PE14
|
||||
#define E0_DIR_PIN PA0
|
||||
#define E0_ENABLE_PIN PC3
|
||||
#ifndef E0_CS_PIN
|
||||
#define E0_CS_PIN PB3
|
||||
#endif
|
||||
|
||||
#define E1_STEP_PIN PD15
|
||||
#define E1_DIR_PIN PE7
|
||||
#define E1_ENABLE_PIN PA3
|
||||
#ifndef E1_CS_PIN
|
||||
#define E1_CS_PIN PG15
|
||||
#endif
|
||||
|
||||
#define E2_STEP_PIN PD13
|
||||
#define E2_DIR_PIN PG9
|
||||
#define E2_ENABLE_PIN PF0
|
||||
#ifndef E2_CS_PIN
|
||||
#define E2_CS_PIN PG12
|
||||
#endif
|
||||
|
||||
//
|
||||
// Software SPI pins for TMC2130 stepper drivers
|
||||
//
|
||||
#if ENABLED(TMC_USE_SW_SPI)
|
||||
#ifndef TMC_SW_MOSI
|
||||
#define TMC_SW_MOSI PC12
|
||||
#endif
|
||||
#ifndef TMC_SW_MISO
|
||||
#define TMC_SW_MISO PC11
|
||||
#endif
|
||||
#ifndef TMC_SW_SCK
|
||||
#define TMC_SW_SCK PC10
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if HAS_TMC_UART
|
||||
/**
|
||||
* TMC2208/TMC2209 stepper drivers
|
||||
*
|
||||
* Hardware serial communication ports.
|
||||
* If undefined software serial is used according to the pins below
|
||||
*/
|
||||
//#define X_HARDWARE_SERIAL Serial
|
||||
//#define X2_HARDWARE_SERIAL Serial1
|
||||
//#define Y_HARDWARE_SERIAL Serial1
|
||||
//#define Y2_HARDWARE_SERIAL Serial1
|
||||
//#define Z_HARDWARE_SERIAL Serial1
|
||||
//#define Z2_HARDWARE_SERIAL Serial1
|
||||
//#define E0_HARDWARE_SERIAL Serial1
|
||||
//#define E1_HARDWARE_SERIAL Serial1
|
||||
//#define E2_HARDWARE_SERIAL Serial1
|
||||
//#define E3_HARDWARE_SERIAL Serial1
|
||||
//#define E4_HARDWARE_SERIAL Serial1
|
||||
|
||||
//
|
||||
// Software serial
|
||||
//
|
||||
#define X_SERIAL_TX_PIN PC13
|
||||
#define X_SERIAL_RX_PIN PC13
|
||||
|
||||
#define Y_SERIAL_TX_PIN PE3
|
||||
#define Y_SERIAL_RX_PIN PE3
|
||||
|
||||
#define Z_SERIAL_TX_PIN PE1
|
||||
#define Z_SERIAL_RX_PIN PE1
|
||||
|
||||
#define E0_SERIAL_TX_PIN PD4
|
||||
#define E0_SERIAL_RX_PIN PD4
|
||||
|
||||
#define E1_SERIAL_TX_PIN PD1
|
||||
#define E1_SERIAL_RX_PIN PD1
|
||||
|
||||
#define E2_SERIAL_TX_PIN PD6
|
||||
#define E2_SERIAL_RX_PIN PD6
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN PF4 // T1 <-> E0
|
||||
#define TEMP_1_PIN PF5 // T2 <-> E1
|
||||
#define TEMP_2_PIN PF6 // T3 <-> E2
|
||||
#define TEMP_BED_PIN PF3 // T0 <-> Bed
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN PB1 // Heater0
|
||||
#define HEATER_1_PIN PD14 // Heater1
|
||||
#define HEATER_2_PIN PB0 // Heater1
|
||||
#define HEATER_BED_PIN PD12 // Hotbed
|
||||
#define FAN_PIN PC8 // Fan0
|
||||
#define FAN1_PIN PE5 // Fan1
|
||||
#define FAN2_PIN PE6 // Fan2
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
|
||||
#ifndef SDCARD_CONNECTION
|
||||
#define SDCARD_CONNECTION LCD
|
||||
#endif
|
||||
|
||||
//
|
||||
// Onboard SD card
|
||||
// NOT compatible with LCD
|
||||
//
|
||||
#if SDCARD_CONNECTION == ONBOARD && !HAS_SPI_LCD
|
||||
#define SOFTWARE_SPI // Use soft SPI for onboard SD
|
||||
#define SDSS PA4
|
||||
#define SCK_PIN PA5
|
||||
#define MISO_PIN PA6
|
||||
#define MOSI_PIN PB5
|
||||
#else
|
||||
#define SDSS PB12
|
||||
#endif
|
||||
|
||||
|
||||
/**
|
||||
* _____ _____
|
||||
* NC | · · | GND 5V | · · | GND
|
||||
* RESET | · · | PF12(SD_DETECT) (LCD_D7) PG7 | · · | PG6 (LCD_D6)
|
||||
* (MOSI)PB15 | · · | PF11(BTN_EN2) (LCD_D5) PG3 | · · | PG2 (LCD_D4)
|
||||
* (SD_SS)PB12 | · · | PG10(BTN_EN1) (LCD_RS) PD10 | · · | PD11 (LCD_EN)
|
||||
* (SCK)PB13 | · · | PB14(MISO) (BTN_ENC) PA8 | · · | PG4 (BEEPER)
|
||||
*  ̄ ̄  ̄ ̄
|
||||
* EXP2 EXP1
|
||||
*/
|
||||
|
||||
//
|
||||
// LCDs and Controllers
|
||||
//
|
||||
#if HAS_SPI_LCD
|
||||
#define BEEPER_PIN PG4
|
||||
#define BTN_ENC PA8
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
#define LCD_PINS_RS PG6
|
||||
|
||||
#define BTN_EN1 PD11
|
||||
#define BTN_EN2 PG2
|
||||
|
||||
#define LCD_PINS_ENABLE PG7
|
||||
#define LCD_PINS_D4 PG3
|
||||
|
||||
// CR10_Stock Display needs a different delay setting on SKR PRO v1.1, so undef it here.
|
||||
// It will be defined again at the #HAS_GRAPHICAL_LCD section below.
|
||||
#undef ST7920_DELAY_1
|
||||
#undef ST7920_DELAY_2
|
||||
#undef ST7920_DELAY_3
|
||||
|
||||
|
||||
#else
|
||||
|
||||
#define LCD_PINS_RS PD10
|
||||
|
||||
#define BTN_EN1 PG10
|
||||
#define BTN_EN2 PF11
|
||||
#define SD_DETECT_PIN PF12
|
||||
|
||||
#define LCD_SDSS PB12
|
||||
|
||||
#define LCD_PINS_ENABLE PD11
|
||||
#define LCD_PINS_D4 PG2
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
#define DOGLCD_CS PD11
|
||||
#define DOGLCD_A0 PD10
|
||||
//#define LCD_BACKLIGHT_PIN -1
|
||||
#define LCD_RESET_PIN PG2 // Must be high or open for LCD to operate normally.
|
||||
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
||||
#ifndef RGB_LED_R_PIN
|
||||
#define RGB_LED_R_PIN PG3
|
||||
#endif
|
||||
#ifndef RGB_LED_G_PIN
|
||||
#define RGB_LED_G_PIN PG6
|
||||
#endif
|
||||
#ifndef RGB_LED_B_PIN
|
||||
#define RGB_LED_B_PIN PG7
|
||||
#endif
|
||||
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
||||
#define NEOPIXEL_PIN PG3
|
||||
#endif
|
||||
#endif // !FYSETC_MINI_12864
|
||||
|
||||
#if ENABLED(ULTIPANEL)
|
||||
#define LCD_PINS_D5 PG3
|
||||
#define LCD_PINS_D6 PG6
|
||||
#define LCD_PINS_D7 PG7
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if HAS_GRAPHICAL_LCD
|
||||
#define BOARD_ST7920_DELAY_1 DELAY_NS(96)
|
||||
#define BOARD_ST7920_DELAY_2 DELAY_NS(48)
|
||||
#define BOARD_ST7920_DELAY_3 DELAY_NS(600)
|
||||
#endif
|
||||
|
||||
#endif // HAS_SPI_LCD
|
266
Marlin/src/pins/stm32f4/pins_FLYF407ZG.h
Normal file
266
Marlin/src/pins/stm32f4/pins_FLYF407ZG.h
Normal file
@ -0,0 +1,266 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 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/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#if !defined(STM32F4) && !defined(STM32F4xx)
|
||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||
#elif HOTENDS > 6 || E_STEPPERS > 6
|
||||
#error "FLYF407ZG supports up to 6 hotends / E-steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "FLYF407ZG"
|
||||
#define BOARD_WEBSITE_URL "github.com/FLYmaker/FLYF407ZG"
|
||||
#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
|
||||
|
||||
#undef E2END
|
||||
#define E2END 0xFFF // 4KB
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN PE11
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_MIN_PIN PC3
|
||||
#define X_MAX_PIN PC2
|
||||
#define Y_MIN_PIN PF2
|
||||
#define Y_MAX_PIN PF1
|
||||
#define Z_MIN_PIN PF0
|
||||
#define Z_MAX_PIN PC15
|
||||
|
||||
//
|
||||
// Z Probe (when not Z_MIN_PIN)
|
||||
//
|
||||
#define Z_MIN_PROBE_PIN PC14 // Z3_PIN
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
|
||||
#define X_STEP_PIN PB9
|
||||
#define X_DIR_PIN PE0
|
||||
#define X_ENABLE_PIN PE1
|
||||
#ifndef X_CS_PIN
|
||||
#define X_CS_PIN PG13
|
||||
#endif
|
||||
|
||||
#define Y_STEP_PIN PB8
|
||||
#define Y_DIR_PIN PG11
|
||||
#define Y_ENABLE_PIN PG12
|
||||
#ifndef Y_CS_PIN
|
||||
#define Y_CS_PIN PG10
|
||||
#endif
|
||||
|
||||
#define Z_STEP_PIN PA8
|
||||
#define Z_DIR_PIN PD6
|
||||
#define Z_ENABLE_PIN PD7
|
||||
#ifndef Z_CS_PIN
|
||||
#define Z_CS_PIN PD5
|
||||
#endif
|
||||
|
||||
#define E0_STEP_PIN PC7
|
||||
#define E0_DIR_PIN PD3
|
||||
#define E0_ENABLE_PIN PD4
|
||||
#ifndef E0_CS_PIN
|
||||
#define E0_CS_PIN PD1
|
||||
#endif
|
||||
|
||||
#define E1_STEP_PIN PC6
|
||||
#define E1_DIR_PIN PA15
|
||||
#define E1_ENABLE_PIN PD0
|
||||
#ifndef E1_CS_PIN
|
||||
#define E1_CS_PIN PA14
|
||||
#endif
|
||||
|
||||
#define E2_STEP_PIN PD15
|
||||
#define E2_DIR_PIN PG7
|
||||
#define E2_ENABLE_PIN PG8
|
||||
#ifndef E2_CS_PIN
|
||||
#define E2_CS_PIN PG6
|
||||
#endif
|
||||
|
||||
#define E3_STEP_PIN PD14
|
||||
#define E3_DIR_PIN PG4
|
||||
#define E3_ENABLE_PIN PG5
|
||||
#ifndef E3_CS_PIN
|
||||
#define E3_CS_PIN PG3
|
||||
#endif
|
||||
|
||||
#define E4_STEP_PIN PD13
|
||||
#define E4_DIR_PIN PD11
|
||||
#define E4_ENABLE_PIN PG2
|
||||
#ifndef E4_CS_PIN
|
||||
#define E4_CS_PIN PD10
|
||||
#endif
|
||||
|
||||
#define E5_STEP_PIN PD12
|
||||
#define E5_DIR_PIN PD8
|
||||
#define E5_ENABLE_PIN PD9
|
||||
#ifndef E5_CS_PIN
|
||||
#define E5_CS_PIN PB12
|
||||
#endif
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN PA0 // Analog Input
|
||||
#define TEMP_1_PIN PC1 // Analog Input
|
||||
#define TEMP_2_PIN PC0 // Analog Input
|
||||
#define TEMP_3_PIN PF10 // Analog Input
|
||||
#define TEMP_4_PIN PF5 // Analog Input
|
||||
#define TEMP_5_PIN PF4 // Analog Input
|
||||
#define TEMP_BED_PIN PF3 // Analog Input
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN PF7
|
||||
#define HEATER_1_PIN PF6
|
||||
#define HEATER_2_PIN PE6
|
||||
#define HEATER_3_PIN PE5
|
||||
#define HEATER_4_PIN PE4
|
||||
#define HEATER_5_PIN PA2
|
||||
#define HEATER_BED_PIN PE2
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN PF8
|
||||
#endif
|
||||
#define FAN1_PIN PF9
|
||||
#define FAN2_PIN PE3
|
||||
#define FAN3_PIN PA1
|
||||
#define FAN4_PIN PE13
|
||||
#define FAN5_PIN PB11
|
||||
|
||||
//
|
||||
// Onboard SD support
|
||||
//
|
||||
|
||||
#define SDIO_D0_PIN PC8
|
||||
#define SDIO_D1_PIN PC9
|
||||
//#define SD_CARD_DETECT_PIN PC13
|
||||
#define SDIO_D2_PIN PC10
|
||||
#define SDIO_D3_PIN PC11
|
||||
#define SDIO_CK_PIN PC12
|
||||
#define SDIO_CMD_PIN PD2
|
||||
|
||||
#if !defined(SDCARD_CONNECTION) || SDCARD_CONNECTION == ONBOARD
|
||||
#define SDIO_SUPPORT // Use SDIO for onboard SD
|
||||
|
||||
#ifndef SDIO_SUPPORT
|
||||
#define SOFTWARE_SPI // Use soft SPI for onboard SD
|
||||
#define SDSS SDIO_D3_PIN
|
||||
#define SCK_PIN SDIO_CK_PIN
|
||||
#define MISO_PIN SDIO_D0_PIN
|
||||
#define MOSI_PIN SDIO_CMD_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// Trinamic Software SPI
|
||||
//
|
||||
|
||||
#if ENABLED(TMC_USE_SW_SPI)
|
||||
#ifndef TMC_SW_MOSI
|
||||
#define TMC_SW_MOSI PB15
|
||||
#endif
|
||||
#ifndef TMC_SW_MISO
|
||||
#define TMC_SW_MISO PB14
|
||||
#endif
|
||||
#ifndef TMC_SW_SCK
|
||||
#define TMC_SW_SCK PB13
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// Trinamic Software Serial
|
||||
//
|
||||
|
||||
#if HAS_TMC_UART
|
||||
#define X_SERIAL_TX_PIN PG13
|
||||
#define X_SERIAL_RX_PIN PG13
|
||||
|
||||
#define Y_SERIAL_TX_PIN PG10
|
||||
#define Y_SERIAL_RX_PIN PG10
|
||||
|
||||
#define Z_SERIAL_TX_PIN PD5
|
||||
#define Z_SERIAL_RX_PIN PD5
|
||||
|
||||
#define E0_SERIAL_TX_PIN PD1
|
||||
#define E0_SERIAL_RX_PIN PD1
|
||||
|
||||
#define E1_SERIAL_TX_PIN PA14
|
||||
#define E1_SERIAL_RX_PIN PA14
|
||||
|
||||
#define E2_SERIAL_TX_PIN PG6
|
||||
#define E2_SERIAL_RX_PIN PG6
|
||||
|
||||
#define E3_SERIAL_TX_PIN PG3
|
||||
#define E3_SERIAL_RX_PIN PG3
|
||||
|
||||
#define E4_SERIAL_TX_PIN PD10
|
||||
#define E4_SERIAL_RX_PIN PD10
|
||||
|
||||
#define E5_SERIAL_TX_PIN PB12
|
||||
#define E5_SERIAL_RX_PIN PB12
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#define SCK_PIN PB13
|
||||
#define MISO_PIN PB14
|
||||
#define MOSI_PIN PB15
|
||||
#define SDSS PF11
|
||||
#define SD_DETECT_PIN PB2
|
||||
#define BEEPER_PIN PB10
|
||||
#define LCD_PINS_RS PE12
|
||||
#define LCD_PINS_ENABLE PE14
|
||||
#define LCD_PINS_D4 PE10
|
||||
#define LCD_PINS_D5 PE9
|
||||
#define LCD_PINS_D6 PE8
|
||||
#define LCD_PINS_D7 PE7
|
||||
#define BTN_EN1 PC4
|
||||
#define BTN_EN2 PC5
|
||||
#define BTN_ENC PE15
|
||||
|
||||
//
|
||||
// Filament runout
|
||||
//
|
||||
|
||||
#define FIL_RUNOUT_PIN PA3
|
||||
|
||||
//
|
||||
// ST7920 Delays
|
||||
//
|
||||
#ifndef ST7920_DELAY_1
|
||||
#define ST7920_DELAY_1 DELAY_NS(96)
|
||||
#endif
|
||||
#ifndef ST7920_DELAY_2
|
||||
#define ST7920_DELAY_2 DELAY_NS(48)
|
||||
#endif
|
||||
#ifndef ST7920_DELAY_3
|
||||
#define ST7920_DELAY_3 DELAY_NS(715)
|
||||
#endif
|
266
Marlin/src/pins/stm32f4/pins_FYSETC_S6.h
Normal file
266
Marlin/src/pins/stm32f4/pins_FYSETC_S6.h
Normal file
@ -0,0 +1,266 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 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/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#ifndef STM32F4
|
||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||
#elif HOTENDS > 3 || E_STEPPERS > 3
|
||||
#error "RUMBA32 supports up to 3 hotends / E-steppers."
|
||||
#endif
|
||||
|
||||
#ifndef BOARD_INFO_NAME
|
||||
#define BOARD_INFO_NAME "FYSETC_S6"
|
||||
#endif
|
||||
#ifndef DEFAULT_MACHINE_NAME
|
||||
#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
|
||||
#endif
|
||||
|
||||
// change the prio to 3 , 2 is for software serial
|
||||
//#define TEMP_TIMER_IRQ_PRIO 3
|
||||
|
||||
//
|
||||
// EEPROM Emulation
|
||||
//
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
#if ENABLED(FLASH_EEPROM_EMULATION)
|
||||
#define FLASH_EEPROM_LEVELING
|
||||
#endif
|
||||
//#define SRAM_EEPROM_EMULATION
|
||||
//#define I2C_EEPROM
|
||||
#ifdef I2C_EEPROM
|
||||
#undef E2END // Defined in Arduino Core STM32 to be used with EEPROM emulation. This board uses a real EEPROM.
|
||||
#define E2END 0xFFF // 4KB
|
||||
#endif
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN PA3
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_MIN_PIN PB14
|
||||
#define X_MAX_PIN PA1
|
||||
#define Y_MIN_PIN PB13
|
||||
#define Y_MAX_PIN PA2
|
||||
#define Z_MIN_PIN PA0
|
||||
#define Z_MAX_PIN PA3
|
||||
|
||||
//
|
||||
// Filament Sensor
|
||||
// share with X_MAX_PIN
|
||||
//
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN PA1
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN PE11
|
||||
#define X_DIR_PIN PE10
|
||||
#define X_ENABLE_PIN PE12
|
||||
#define X_CS_PIN PE7
|
||||
|
||||
#define Y_STEP_PIN PD8
|
||||
#define Y_DIR_PIN PB12
|
||||
#define Y_ENABLE_PIN PD9
|
||||
#define Y_CS_PIN PE15
|
||||
|
||||
#define Z_STEP_PIN PD14
|
||||
#define Z_DIR_PIN PD13
|
||||
#define Z_ENABLE_PIN PD15
|
||||
#define Z_CS_PIN PD10
|
||||
|
||||
#define E0_STEP_PIN PD5
|
||||
#define E0_DIR_PIN PD6
|
||||
#define E0_ENABLE_PIN PD4
|
||||
#define E0_CS_PIN PD7
|
||||
|
||||
#define E1_STEP_PIN PE6
|
||||
#define E1_DIR_PIN PC13
|
||||
#define E1_ENABLE_PIN PE5
|
||||
#define E1_CS_PIN PC14
|
||||
|
||||
#define E2_STEP_PIN PE2
|
||||
#define E2_DIR_PIN PE4
|
||||
#define E2_ENABLE_PIN PE3
|
||||
#define E2_CS_PIN PC15
|
||||
|
||||
#if HAS_TMC_UART
|
||||
//
|
||||
// TMC2208/TMC2209 stepper drivers
|
||||
//
|
||||
|
||||
//
|
||||
// Software serial
|
||||
//
|
||||
#define X_SERIAL_TX_PIN PE9
|
||||
#define X_SERIAL_RX_PIN PE8
|
||||
|
||||
#define Y_SERIAL_TX_PIN PE14
|
||||
#define Y_SERIAL_RX_PIN PE13
|
||||
|
||||
#define Z_SERIAL_TX_PIN PD11
|
||||
#define Z_SERIAL_RX_PIN PD12
|
||||
|
||||
#define E0_SERIAL_TX_PIN PD3
|
||||
#define E0_SERIAL_RX_PIN PA15
|
||||
|
||||
#define E1_SERIAL_TX_PIN PC4
|
||||
#define E1_SERIAL_RX_PIN PC5
|
||||
|
||||
#define E2_SERIAL_TX_PIN PE1
|
||||
#define E2_SERIAL_RX_PIN PE0
|
||||
#endif
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN PC0
|
||||
#define TEMP_1_PIN PC1
|
||||
#define TEMP_2_PIN PC2
|
||||
#define TEMP_BED_PIN PC3
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN PB3
|
||||
#define HEATER_1_PIN PB4
|
||||
#define HEATER_2_PIN PB15
|
||||
#define HEATER_BED_PIN PC8
|
||||
|
||||
#define FAN_PIN PB0
|
||||
#define FAN1_PIN PB1
|
||||
#define FAN2_PIN PB2
|
||||
|
||||
//
|
||||
// SPI
|
||||
//
|
||||
#define SCK_PIN PA5
|
||||
#define MISO_PIN PA6
|
||||
#define MOSI_PIN PA7
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
//#define LED_PIN PB14
|
||||
//#define BTN_PIN PC10
|
||||
//#define PS_ON_PIN PE11
|
||||
//#define KILL_PIN PC5
|
||||
|
||||
#define SDSS PA4
|
||||
#define SD_DETECT_PIN PB10
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if HAS_SPI_LCD
|
||||
#define BEEPER_PIN PC9
|
||||
#define BTN_ENC PA8
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
#define LCD_PINS_RS PD0
|
||||
|
||||
#define BTN_EN1 PC11
|
||||
#define BTN_EN2 PC10
|
||||
|
||||
#define LCD_PINS_ENABLE PD1
|
||||
#define LCD_PINS_D4 PC12
|
||||
|
||||
// CR10_Stock Display needs a different delay setting on SKR PRO v1.1, so undef it here.
|
||||
// It will be defined again at the #HAS_GRAPHICAL_LCD section below.
|
||||
#undef ST7920_DELAY_1
|
||||
#undef ST7920_DELAY_2
|
||||
#undef ST7920_DELAY_3
|
||||
|
||||
#else
|
||||
|
||||
#define LCD_PINS_RS PD2
|
||||
|
||||
#define BTN_EN1 PC6
|
||||
#define BTN_EN2 PC7
|
||||
|
||||
#define LCD_SDSS PA4
|
||||
|
||||
#define LCD_PINS_ENABLE PC11
|
||||
#define LCD_PINS_D4 PC10
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
// See https://wiki.fysetc.com/Mini12864_Panel
|
||||
#define DOGLCD_CS PC11
|
||||
#define DOGLCD_A0 PD2
|
||||
#if ENABLED(FYSETC_GENERIC_12864_1_1)
|
||||
#define LCD_BACKLIGHT_PIN PD0
|
||||
#endif
|
||||
#define LCD_RESET_PIN PC10 // Must be high or open for LCD to operate normally.
|
||||
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
||||
#ifndef RGB_LED_R_PIN
|
||||
#define RGB_LED_R_PIN PC12
|
||||
#endif
|
||||
#ifndef RGB_LED_G_PIN
|
||||
#define RGB_LED_G_PIN PD0
|
||||
#endif
|
||||
#ifndef RGB_LED_B_PIN
|
||||
#define RGB_LED_B_PIN PD1
|
||||
#endif
|
||||
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
||||
#define NEOPIXEL_PIN PC12
|
||||
#endif
|
||||
#endif // !FYSETC_MINI_12864
|
||||
|
||||
#if ENABLED(ULTIPANEL)
|
||||
#define LCD_PINS_D5 PC12
|
||||
#define LCD_PINS_D6 PD0
|
||||
#define LCD_PINS_D7 PD1
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if HAS_GRAPHICAL_LCD
|
||||
#ifndef ST7920_DELAY_1
|
||||
#define ST7920_DELAY_1 DELAY_NS(96)
|
||||
#endif
|
||||
#ifndef ST7920_DELAY_2
|
||||
#define ST7920_DELAY_2 DELAY_NS(48)
|
||||
#endif
|
||||
#ifndef ST7920_DELAY_3
|
||||
#define ST7920_DELAY_3 DELAY_NS(600)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif // HAS_SPI_LCD
|
||||
|
||||
#ifndef RGB_LED_R_PIN
|
||||
#define RGB_LED_R_PIN PB6
|
||||
#endif
|
||||
#ifndef RGB_LED_G_PIN
|
||||
#define RGB_LED_G_PIN PB5
|
||||
#endif
|
||||
#ifndef RGB_LED_B_PIN
|
||||
#define RGB_LED_B_PIN PB7
|
||||
#endif
|
||||
#ifndef RGB_LED_W_PIN
|
||||
#define RGB_LED_W_PIN -1
|
||||
#endif
|
190
Marlin/src/pins/stm32f4/pins_GENERIC_STM32F4.h
Normal file
190
Marlin/src/pins/stm32f4/pins_GENERIC_STM32F4.h
Normal file
@ -0,0 +1,190 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 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/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* To build with Arduino IDE use "Discovery F407VG"
|
||||
* To build with PlatformIO use environment "STM32F4"
|
||||
*/
|
||||
#if !defined(STM32F4) && !defined(STM32F4xx)
|
||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "STM32F4 supports up to 2 hotends / E-steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "Misc. STM32F4"
|
||||
#define DEFAULT_MACHINE_NAME "STM32F407VET6"
|
||||
|
||||
//#define I2C_EEPROM
|
||||
|
||||
#ifndef E2END
|
||||
#define E2END 0xFFF // 4KB
|
||||
#endif
|
||||
|
||||
// Ignore temp readings during development.
|
||||
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_MIN_PIN PE0
|
||||
#define X_MAX_PIN -1
|
||||
#define Y_MIN_PIN PE1
|
||||
#define Y_MAX_PIN -1
|
||||
#define Z_MIN_PIN PE14
|
||||
#define Z_MAX_PIN -1
|
||||
|
||||
//
|
||||
// Z Probe (when not Z_MIN_PIN)
|
||||
//
|
||||
|
||||
//#ifndef Z_MIN_PROBE_PIN
|
||||
// #define Z_MIN_PROBE_PIN PA4
|
||||
//#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
|
||||
#define X_STEP_PIN PD3
|
||||
#define X_DIR_PIN PD2
|
||||
#define X_ENABLE_PIN PD0
|
||||
//#ifndef X_CS_PIN
|
||||
// #define X_CS_PIN PD1
|
||||
//#endif
|
||||
|
||||
#define Y_STEP_PIN PE11
|
||||
#define Y_DIR_PIN PE10
|
||||
#define Y_ENABLE_PIN PE13
|
||||
//#ifndef Y_CS_PIN
|
||||
// #define Y_CS_PIN PE12
|
||||
//#endif
|
||||
|
||||
#define Z_STEP_PIN PD6
|
||||
#define Z_DIR_PIN PD7
|
||||
#define Z_ENABLE_PIN PD4
|
||||
//#ifndef Z_CS_PIN
|
||||
// #define Z_CS_PIN PD5
|
||||
//#endif
|
||||
|
||||
#define E0_STEP_PIN PB5
|
||||
#define E0_DIR_PIN PB6
|
||||
#define E0_ENABLE_PIN PB3
|
||||
//#ifndef E0_CS_PIN
|
||||
// #define E0_CS_PIN PB4
|
||||
//#endif
|
||||
|
||||
#define E1_STEP_PIN PE4
|
||||
#define E1_DIR_PIN PE2
|
||||
#define E1_ENABLE_PIN PE3
|
||||
//#ifndef E1_CS_PIN
|
||||
// #define E1_CS_PIN PE5
|
||||
//#endif
|
||||
|
||||
#define SCK_PIN PA5
|
||||
#define MISO_PIN PA6
|
||||
#define MOSI_PIN PA7
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
|
||||
#define TEMP_0_PIN PC0 // Analog Input
|
||||
#define TEMP_1_PIN PC1 // Analog Input
|
||||
#define TEMP_BED_PIN PC2 // Analog Input
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
|
||||
#define HEATER_0_PIN PA1
|
||||
#define HEATER_1_PIN PA2
|
||||
#define HEATER_BED_PIN PA0
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN PC6
|
||||
#endif
|
||||
#define FAN1_PIN PC7
|
||||
#define FAN2_PIN PC8
|
||||
|
||||
#define ORIG_E0_AUTO_FAN_PIN FAN1_PIN // Use this by NOT overriding E0_AUTO_FAN_PIN
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
|
||||
//#define CASE_LIGHT_PIN_CI PF13
|
||||
//#define CASE_LIGHT_PIN_DO PF14
|
||||
//#define NEOPIXEL_PIN PF13
|
||||
|
||||
//
|
||||
// Průša i3 MK2 Multi Material Multiplexer Support
|
||||
//
|
||||
|
||||
//#define E_MUX0_PIN PG3
|
||||
//#define E_MUX1_PIN PG4
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
|
||||
//#define SERVO0_PIN PE13
|
||||
//#define SERVO1_PIN PE14
|
||||
|
||||
|
||||
#define SDSS PE7
|
||||
#define SS_PIN PE7
|
||||
#define LED_PIN PB7 //Alive
|
||||
#define PS_ON_PIN PA10
|
||||
#define KILL_PIN PA8
|
||||
#define PWR_LOSS PA4 //Power loss / nAC_FAULT
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
|
||||
#define SD_DETECT_PIN PA15
|
||||
#define BEEPER_PIN PC9
|
||||
#define LCD_PINS_RS PE9
|
||||
#define LCD_PINS_ENABLE PE8
|
||||
#define LCD_PINS_D4 PB12
|
||||
#define LCD_PINS_D5 PB13
|
||||
#define LCD_PINS_D6 PB14
|
||||
#define LCD_PINS_D7 PB15
|
||||
#define BTN_EN1 PC4
|
||||
#define BTN_EN2 PC5
|
||||
#define BTN_ENC PC3
|
||||
|
||||
//
|
||||
// Filament runout
|
||||
//
|
||||
|
||||
#define FIL_RUNOUT_PIN PA3
|
||||
|
||||
//
|
||||
// ST7920 Delays
|
||||
//
|
||||
#if HAS_GRAPHICAL_LCD
|
||||
#define BOARD_ST7920_DELAY_1 DELAY_NS(96)
|
||||
#define BOARD_ST7920_DELAY_2 DELAY_NS(48)
|
||||
#define BOARD_ST7920_DELAY_3 DELAY_NS(715)
|
||||
#endif
|
177
Marlin/src/pins/stm32f4/pins_LERDGE_K.h
Normal file
177
Marlin/src/pins/stm32f4/pins_LERDGE_K.h
Normal file
@ -0,0 +1,177 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* 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/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#if !defined(STM32F4) && !defined(STM32F4xx)
|
||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "LERDGE K supports up to 2 hotends / E-steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "Lerdge K"
|
||||
#define DEFAULT_MACHINE_NAME "LERDGE"
|
||||
|
||||
#define I2C_EEPROM
|
||||
|
||||
// Ignore temp readings during develpment.
|
||||
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
//#define SERVO0_PIN PD12
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN PG3
|
||||
#define Y_STOP_PIN PG4
|
||||
#define Z_STOP_PIN PG5
|
||||
|
||||
//
|
||||
// Z Probe (when not Z_MIN_PIN)
|
||||
//
|
||||
//#ifndef Z_MIN_PROBE_PIN
|
||||
// #define Z_MIN_PROBE_PIN PB15
|
||||
//#endif
|
||||
|
||||
//
|
||||
// Filament runout
|
||||
//
|
||||
#define FIL_RUNOUT_PIN PE6
|
||||
#define FIL_RUNOUT2_PIN PE7
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN PG1
|
||||
#define X_DIR_PIN PB10
|
||||
#define X_ENABLE_PIN PG0
|
||||
//#ifndef X_CS_PIN
|
||||
// #define X_CS_PIN PE0
|
||||
//#endif
|
||||
|
||||
#define Y_STEP_PIN PF14
|
||||
#define Y_DIR_PIN PF15
|
||||
#define Y_ENABLE_PIN PF13
|
||||
//#ifndef Y_CS_PIN
|
||||
// #define Y_CS_PIN PE1
|
||||
//#endif
|
||||
|
||||
#define Z_STEP_PIN PF11
|
||||
#define Z_DIR_PIN PF12
|
||||
#define Z_ENABLE_PIN PC5
|
||||
//#ifndef Z_CS_PIN
|
||||
// #define Z_CS_PIN PE2
|
||||
//#endif
|
||||
|
||||
#define E0_STEP_PIN PC14
|
||||
#define E0_DIR_PIN PC13
|
||||
#define E0_ENABLE_PIN PC15
|
||||
//#ifndef E0_CS_PIN
|
||||
// #define E0_CS_PIN PE3
|
||||
//#endif
|
||||
|
||||
#define E1_STEP_PIN PF1
|
||||
#define E1_DIR_PIN PF0
|
||||
#define E1_ENABLE_PIN PF2
|
||||
//#ifndef E1_CS_PIN
|
||||
// #define E1_CS_PIN PE4
|
||||
//#endif
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN PC1 // Analog Input
|
||||
#define TEMP_1_PIN PC2 // Analog Input
|
||||
#define TEMP_BED_PIN PC0 // Analog Input
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN PA1
|
||||
#define HEATER_1_PIN PA0
|
||||
#define HEATER_BED_PIN PA2
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN PC15
|
||||
#endif
|
||||
#define FAN1_PIN PF6
|
||||
#define FAN2_PIN PF7
|
||||
|
||||
#define ORIG_E0_AUTO_FAN_PIN FAN1_PIN // Use this by NOT overriding E0_AUTO_FAN_PIN
|
||||
|
||||
//
|
||||
// LED / Lighting
|
||||
//
|
||||
//#define CASE_LIGHT_PIN_CI -1
|
||||
//#define CASE_LIGHT_PIN_DO -1
|
||||
//#define NEOPIXEL_PIN -1
|
||||
|
||||
//
|
||||
// Prusa i3 MK2 Multi-Material Multiplexer Support
|
||||
//
|
||||
//#define E_MUX0_PIN -1
|
||||
//#define E_MUX1_PIN -1
|
||||
|
||||
//
|
||||
// SD support
|
||||
//
|
||||
#define SDIO_SUPPORT
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define SDSS PC11
|
||||
#define LED_PIN PC7 // Alive
|
||||
#define PS_ON_PIN -1
|
||||
#define KILL_PIN -1
|
||||
#define POWER_LOSS_PIN -1 // Power-loss / nAC_FAULT
|
||||
|
||||
#define SCK_PIN PC12
|
||||
#define MISO_PIN PC8
|
||||
#define MOSI_PIN PD2
|
||||
#define SS_PIN PC11
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
|
||||
// TODO: Replace these with the correct FSMC pins, once known
|
||||
#define SD_DETECT_PIN -1
|
||||
#define BEEPER_PIN PD12
|
||||
#define LCD_PINS_RS -1
|
||||
#define LCD_PINS_ENABLE -1
|
||||
#define LCD_PINS_D4 -1
|
||||
#define LCD_PINS_D5 -1
|
||||
#define LCD_PINS_D6 -1
|
||||
#define LCD_PINS_D7 -1
|
||||
|
||||
#define BTN_EN1 PE3
|
||||
#define BTN_EN2 PE4
|
||||
#define BTN_ENC PE2
|
||||
|
||||
//
|
||||
// ST7920 Delays
|
||||
//
|
||||
#if HAS_GRAPHICAL_LCD
|
||||
#define BOARD_ST7920_DELAY_1 DELAY_NS(96)
|
||||
#define BOARD_ST7920_DELAY_2 DELAY_NS(48)
|
||||
#define BOARD_ST7920_DELAY_3 DELAY_NS(715)
|
||||
#endif
|
174
Marlin/src/pins/stm32f4/pins_LERDGE_X.h
Normal file
174
Marlin/src/pins/stm32f4/pins_LERDGE_X.h
Normal file
@ -0,0 +1,174 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* 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/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#if !defined(STM32F4) && !defined(STM32F4xx)
|
||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "LERDGE X supports up to 2 hotends / E-steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "Lerdge X"
|
||||
#define DEFAULT_MACHINE_NAME "LERDGE"
|
||||
|
||||
//#define I2C_EEPROM
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
//#define SERVO0_PIN PD12
|
||||
//#define SERVO1_PIN -1
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN PB12
|
||||
#define Y_STOP_PIN PB13
|
||||
#define Z_STOP_PIN PB14
|
||||
|
||||
//
|
||||
// Filament runout
|
||||
//
|
||||
#define FIL_RUNOUT_PIN PE1
|
||||
|
||||
//
|
||||
// Z Probe (when not Z_MIN_PIN)
|
||||
//
|
||||
//#ifndef Z_MIN_PROBE_PIN
|
||||
// #define Z_MIN_PROBE_PIN PB15
|
||||
//#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN PB10
|
||||
#define X_DIR_PIN PB2
|
||||
#define X_ENABLE_PIN PB11
|
||||
//#ifndef X_CS_PIN
|
||||
// #define X_CS_PIN PD1
|
||||
//#endif
|
||||
|
||||
#define Y_STEP_PIN PB0
|
||||
#define Y_DIR_PIN PC5
|
||||
#define Y_ENABLE_PIN PB1
|
||||
//#ifndef Y_CS_PIN
|
||||
// #define Y_CS_PIN PE12
|
||||
//#endif
|
||||
|
||||
#define Z_STEP_PIN PA7
|
||||
#define Z_DIR_PIN PA6
|
||||
#define Z_ENABLE_PIN PC4
|
||||
//#ifndef Z_CS_PIN
|
||||
// #define Z_CS_PIN PD5
|
||||
//#endif
|
||||
|
||||
#define E0_STEP_PIN PA4
|
||||
#define E0_DIR_PIN PA3
|
||||
#define E0_ENABLE_PIN PA5
|
||||
//#ifndef E0_CS_PIN
|
||||
// #define E0_CS_PIN PB4
|
||||
//#endif
|
||||
|
||||
#define E1_STEP_PIN -1
|
||||
#define E1_DIR_PIN -1
|
||||
#define E1_ENABLE_PIN -1
|
||||
//#ifndef E1_CS_PIN
|
||||
// #define E1_CS_PIN PE5
|
||||
//#endif
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN PC0 // Analog Input
|
||||
#define TEMP_1_PIN -1 // Analog Input
|
||||
#define TEMP_BED_PIN PC1 // Analog Input
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN PA1
|
||||
#define HEATER_1_PIN -1
|
||||
#define HEATER_BED_PIN PA2
|
||||
|
||||
#ifndef FAN_PIN
|
||||
// #define FAN_PIN PC15
|
||||
#endif
|
||||
#define FAN1_PIN PC15
|
||||
#define FAN2_PIN PA0
|
||||
|
||||
#define ORIG_E0_AUTO_FAN_PIN PC15 // Use this by NOT overriding E0_AUTO_FAN_PIN
|
||||
|
||||
//
|
||||
// Prusa i3 MK2 Multi Material Multiplexer Support
|
||||
//
|
||||
//#define E_MUX0_PIN -1
|
||||
//#define E_MUX1_PIN -1
|
||||
|
||||
//
|
||||
// LED / Lighting
|
||||
//
|
||||
//#define CASE_LIGHT_PIN_CI -1
|
||||
//#define CASE_LIGHT_PIN_DO -1
|
||||
//#define NEOPIXEL_PIN -1
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define SDSS PC11
|
||||
#define LED_PIN PC7 // Alive
|
||||
#define PS_ON_PIN -1
|
||||
#define KILL_PIN -1
|
||||
#define POWER_LOSS_PIN -1 // Power-loss / nAC_FAULT
|
||||
|
||||
#define SCK_PIN PC12
|
||||
#define MISO_PIN PC8
|
||||
#define MOSI_PIN PD2
|
||||
#define SS_PIN PC11
|
||||
|
||||
//
|
||||
// SD support
|
||||
//
|
||||
#define SDIO_SUPPORT
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
|
||||
// The LCD is initialized in FSMC mode
|
||||
#define SD_DETECT_PIN -1
|
||||
#define BEEPER_PIN PD12
|
||||
|
||||
#define BTN_EN1 PE3
|
||||
#define BTN_EN2 PE4
|
||||
#define BTN_ENC PE2
|
||||
|
||||
#define LCD_RESET_PIN PD6
|
||||
#define LCD_BACKLIGHT_PIN PD3
|
||||
#define FSMC_CS_PIN PD4
|
||||
#define FSMC_RS_PIN PD11
|
||||
#define TOUCH_CS PB6
|
||||
|
||||
//
|
||||
// ST7920 Delays
|
||||
//
|
||||
#if HAS_GRAPHICAL_LCD
|
||||
#define BOARD_ST7920_DELAY_1 DELAY_NS(96)
|
||||
#define BOARD_ST7920_DELAY_2 DELAY_NS(48)
|
||||
#define BOARD_ST7920_DELAY_3 DELAY_NS(715)
|
||||
#endif
|
102
Marlin/src/pins/stm32f4/pins_MKS_ROBIN2.h
Normal file
102
Marlin/src/pins/stm32f4/pins_MKS_ROBIN2.h
Normal file
@ -0,0 +1,102 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 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/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#ifndef STM32F4
|
||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "MKS_ROBIN2 supports up to 2 hotends / E-steppers."
|
||||
#endif
|
||||
|
||||
#ifndef BOARD_INFO_NAME
|
||||
#define BOARD_NAME "MKS_ROBIN2"
|
||||
#endif
|
||||
|
||||
#ifndef DEFAULT_MACHINE_NAME
|
||||
#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
|
||||
#endif
|
||||
|
||||
#define SRAM_EEPROM_EMULATION
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_MIN_PIN PG8
|
||||
#define X_MAX_PIN PG7
|
||||
#define Y_MIN_PIN PG6
|
||||
#define Y_MAX_PIN PG5
|
||||
#define Z_MIN_PIN PG4
|
||||
#define Z_MAX_PIN PG3
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN PB0 // XS2-5
|
||||
#define SERVO1_PIN PF7 // XS1-5
|
||||
#define SERVO2_PIN PF8 // XS1-6
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN PE6
|
||||
#define X_DIR_PIN PE5
|
||||
#define X_ENABLE_PIN PC13
|
||||
|
||||
#define Y_STEP_PIN PE3
|
||||
#define Y_DIR_PIN PE2
|
||||
#define Y_ENABLE_PIN PE4
|
||||
|
||||
#define Z_STEP_PIN PE0
|
||||
#define Z_DIR_PIN PB9
|
||||
#define Z_ENABLE_PIN PE1
|
||||
|
||||
#define E0_STEP_PIN PG10
|
||||
#define E0_DIR_PIN PG9
|
||||
#define E0_ENABLE_PIN PB8
|
||||
|
||||
#define E1_STEP_PIN PD3
|
||||
#define E1_DIR_PIN PA15
|
||||
#define E1_ENABLE_PIN PD6
|
||||
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN PC1 // T1 <-> E0
|
||||
#define TEMP_1_PIN PC2 // T2 <-> E1
|
||||
#define TEMP_BED_PIN PC0 // T0 <-> Bed
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN PF3 // Heater0
|
||||
#define HEATER_1_PIN PF2 // Heater1
|
||||
#define HEATER_BED_PIN PF4 // Hotbed
|
||||
#define FAN_PIN PA7 // Fan0
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define SDSS -1 // PB12
|
||||
|
||||
#define SD_DETECT_PIN PF9
|
||||
#define BEEPER_PIN PG2
|
42
Marlin/src/pins/stm32f4/pins_RUMBA32_AUS3D.h
Normal file
42
Marlin/src/pins/stm32f4/pins_RUMBA32_AUS3D.h
Normal file
@ -0,0 +1,42 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 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/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* Pin assignments for the MKS RUMBA32
|
||||
*
|
||||
* https://aus3d.com.au/rumba32
|
||||
* https://github.com/Aus3D/RUMBA32
|
||||
*
|
||||
* The MKS and Aus3D versions have the same pinout but the MKS version
|
||||
* has some added resistors and LEDs. The resistors needed for the
|
||||
* TMC2208/9 UART interface are among the additions. Also added were
|
||||
* connectors and resistors dedicated to the TMC2130 sensorless homing
|
||||
* interface.
|
||||
*/
|
||||
|
||||
#define BOARD_INFO_NAME "Aus3D RUMBA32"
|
||||
|
||||
#define RUMBA32_V1_0
|
||||
//#define I2C_EEPROM
|
||||
|
||||
#include "pins_RUMBA32_common.h"
|
109
Marlin/src/pins/stm32f4/pins_RUMBA32_MKS.h
Normal file
109
Marlin/src/pins/stm32f4/pins_RUMBA32_MKS.h
Normal file
@ -0,0 +1,109 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 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/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* Pin assignments for the MKS RUMBA32
|
||||
*
|
||||
* https://github.com/makerbase-mks/MKS-RUMBA32
|
||||
*
|
||||
* The MKS and Aus3D versions have the same pinout but the MKS version
|
||||
* has some added resistors and LEDs. The resistors needed for the
|
||||
* TMC2208/9 UART interface are among the additions. Also added were
|
||||
* connectors and resistors dedicated to the TMC2130 sensorless homing
|
||||
* interface.
|
||||
*/
|
||||
|
||||
#define BOARD_INFO_NAME "MKS RUMBA32"
|
||||
|
||||
#define RUMBA32_V1_0
|
||||
#define ENABLE_SPI1
|
||||
//#define I2C_EEPROM
|
||||
|
||||
#include "pins_RUMBA32_common.h"
|
||||
|
||||
//
|
||||
// Software SPI pins for TMC2130 stepper drivers
|
||||
//
|
||||
#if ENABLED(TMC_USE_SW_SPI)
|
||||
#ifndef TMC_SW_MOSI
|
||||
#define TMC_SW_MOSI PA7
|
||||
#endif
|
||||
#ifndef TMC_SW_MISO
|
||||
#define TMC_SW_MISO PA6
|
||||
#endif
|
||||
#ifndef TMC_SW_SCK
|
||||
#define TMC_SW_SCK PA5
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if HAS_TMC_UART
|
||||
/**
|
||||
* TMC2208/TMC2209 stepper drivers
|
||||
*
|
||||
* Hardware serial communication ports.
|
||||
* If undefined software serial is used according to the pins below
|
||||
*/
|
||||
//#define X_HARDWARE_SERIAL Serial
|
||||
//#define X2_HARDWARE_SERIAL Serial1
|
||||
//#define Y_HARDWARE_SERIAL Serial1
|
||||
//#define Y2_HARDWARE_SERIAL Serial1
|
||||
//#define Z_HARDWARE_SERIAL Serial1
|
||||
//#define Z2_HARDWARE_SERIAL Serial1
|
||||
//#define E0_HARDWARE_SERIAL Serial1
|
||||
//#define E1_HARDWARE_SERIAL Serial1
|
||||
//#define E2_HARDWARE_SERIAL Serial1
|
||||
//#define E3_HARDWARE_SERIAL Serial1
|
||||
//#define E4_HARDWARE_SERIAL Serial1
|
||||
|
||||
//
|
||||
// Software serial
|
||||
//
|
||||
#define X_SERIAL_TX_PIN PA3
|
||||
#define X_SERIAL_RX_PIN PC14
|
||||
|
||||
#define Y_SERIAL_TX_PIN PA4
|
||||
#define Y_SERIAL_RX_PIN PE4
|
||||
|
||||
#define Z_SERIAL_TX_PIN PD13
|
||||
#define Z_SERIAL_RX_PIN PE0
|
||||
|
||||
#define E0_SERIAL_TX_PIN PD14
|
||||
#define E0_SERIAL_RX_PIN PC13
|
||||
|
||||
#define E1_SERIAL_TX_PIN PD15
|
||||
#define E1_SERIAL_RX_PIN PD5
|
||||
|
||||
#define E2_SERIAL_TX_PIN PD12
|
||||
#define E2_SERIAL_RX_PIN PD1
|
||||
#endif
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if HAS_GRAPHICAL_LCD
|
||||
#define BOARD_ST7920_DELAY_1 DELAY_NS(96)
|
||||
#define BOARD_ST7920_DELAY_2 DELAY_NS(48)
|
||||
#define BOARD_ST7920_DELAY_3 DELAY_NS(600)
|
||||
#endif
|
149
Marlin/src/pins/stm32f4/pins_RUMBA32_common.h
Normal file
149
Marlin/src/pins/stm32f4/pins_RUMBA32_common.h
Normal file
@ -0,0 +1,149 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 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/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* Common pin assignments for all RUMBA32 boards
|
||||
*/
|
||||
|
||||
#ifndef STM32F4
|
||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||
#elif HOTENDS > 3 || E_STEPPERS > 3
|
||||
#error "RUMBA32 boards support up to 3 hotends / E-steppers."
|
||||
#endif
|
||||
|
||||
#define RUMBA32_V1_0
|
||||
#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
|
||||
|
||||
//#define I2C_EEPROM
|
||||
#ifdef E2END
|
||||
#undef E2END
|
||||
#endif
|
||||
#define E2END 0xFFF // 4KB
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_MIN_PIN PB12
|
||||
#define X_MAX_PIN PB13
|
||||
#define Y_MIN_PIN PB15
|
||||
#define Y_MAX_PIN PD8
|
||||
#define Z_MIN_PIN PD9
|
||||
#define Z_MAX_PIN PD10
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN PA0
|
||||
#define X_DIR_PIN PC15
|
||||
#define X_ENABLE_PIN PC11
|
||||
#define X_CS_PIN PC14
|
||||
|
||||
#define Y_STEP_PIN PE5
|
||||
#define Y_DIR_PIN PE6
|
||||
#define Y_ENABLE_PIN PE3
|
||||
#define Y_CS_PIN PE4
|
||||
|
||||
#define Z_STEP_PIN PE1
|
||||
#define Z_DIR_PIN PE2
|
||||
#define Z_ENABLE_PIN PB7
|
||||
#define Z_CS_PIN PE0
|
||||
|
||||
#define E0_STEP_PIN PB5
|
||||
#define E0_DIR_PIN PB6
|
||||
#define E0_ENABLE_PIN PC12
|
||||
#define E0_CS_PIN PC13
|
||||
|
||||
#define E1_STEP_PIN PD6
|
||||
#define E1_DIR_PIN PD7
|
||||
#define E1_ENABLE_PIN PD4
|
||||
#define E1_CS_PIN PD5
|
||||
|
||||
#define E2_STEP_PIN PD2
|
||||
#define E2_DIR_PIN PD3
|
||||
#define E2_ENABLE_PIN PD0
|
||||
#define E2_CS_PIN PD1
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN PC4
|
||||
#define TEMP_1_PIN PC3
|
||||
#define TEMP_2_PIN PC2
|
||||
#define TEMP_3_PIN PC1
|
||||
#define TEMP_BED_PIN PC0
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN PC6
|
||||
#define HEATER_1_PIN PC7
|
||||
#define HEATER_2_PIN PC8
|
||||
#define HEATER_BED_PIN PA1
|
||||
|
||||
#define FAN_PIN PC9
|
||||
#define FAN1_PIN PA8
|
||||
|
||||
//
|
||||
// I2C
|
||||
//
|
||||
#define SCK_PIN PA5
|
||||
#define MISO_PIN PA6
|
||||
#define MOSI_PIN PA7
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define LED_PIN PB14
|
||||
#define BTN_PIN PC10
|
||||
#define PS_ON_PIN PE11
|
||||
#define KILL_PIN PC5
|
||||
|
||||
#define SDSS PA2
|
||||
#define SD_DETECT_PIN PB0
|
||||
#define BEEPER_PIN PE8
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if HAS_SPI_LCD
|
||||
|
||||
#define BTN_EN1 PB2
|
||||
#define BTN_EN2 PB1
|
||||
#define BTN_ENC PE7
|
||||
|
||||
#define LCD_PINS_RS PE10
|
||||
#define LCD_PINS_ENABLE PE9
|
||||
#define LCD_PINS_D4 PE12
|
||||
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
#define DOGLCD_CS PE13
|
||||
#define DOGLCD_A0 PE14
|
||||
#endif
|
||||
|
||||
#if ENABLED(ULTIPANEL)
|
||||
#define LCD_PINS_D5 PE13
|
||||
#define LCD_PINS_D6 PE14
|
||||
#define LCD_PINS_D7 PE15
|
||||
#endif
|
||||
|
||||
#endif
|
359
Marlin/src/pins/stm32f4/pins_STEVAL_3DP001V1.h
Normal file
359
Marlin/src/pins/stm32f4/pins_STEVAL_3DP001V1.h
Normal file
@ -0,0 +1,359 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
// Source: https://github.com/stm32duino/Arduino_Core_STM32/blob/master/variants/ST3DP001_EVAL/variant.cpp
|
||||
|
||||
/**
|
||||
* HOW TO COMPILE
|
||||
*
|
||||
* PlatformIO - Use the STM32F401VE_STEVAL environment (or the "Auto Build Marlin" extension).
|
||||
*
|
||||
* Arduino - Tested with 1.8.10
|
||||
* Install library per https://github.com/stm32duino/Arduino_Core_STM32
|
||||
* Make the following selections under the TOOL menu in the Arduino IDE
|
||||
* Board: "3D printer boards"
|
||||
* Board part number: "STEVAL-3DP001V1"
|
||||
* U(S)ART support: "Enabled (generic "Serial")"
|
||||
* USB support (if available): "CDC (no generic "Serial")"
|
||||
* Optimize: "Smallest (-Os default)"
|
||||
* C Runtime Library: "newlib Nano (default)"
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef STM32F4
|
||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||
#endif
|
||||
|
||||
#ifndef MACHINE_NAME
|
||||
#define MACHINE_NAME "STEVAL-3DP001V1"
|
||||
#endif
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_MIN_PIN 39 // PD8 X_STOP
|
||||
#define Y_MIN_PIN 40 // PD9 Y_STOP
|
||||
#define Z_MIN_PIN 41 // PD10 Z_STOP
|
||||
|
||||
#define X_MAX_PIN 44 // PD0 W_STOP
|
||||
#define Y_MAX_PIN 43 // PA8 V_STOP
|
||||
#define Z_MAX_PIN 42 // PD11 U_STOP
|
||||
|
||||
//
|
||||
// Z Probe (when not Z_MIN_PIN)
|
||||
//
|
||||
//#ifndef Z_MIN_PROBE_PIN
|
||||
// #define Z_MIN_PROBE_PIN 16 // PA4
|
||||
//#endif
|
||||
|
||||
//
|
||||
// Filament runout
|
||||
//
|
||||
//#define FIL_RUNOUT_PIN 53 // PA3 BED_THE
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
|
||||
#define X_STEP_PIN 61 // PE14 X_PWM
|
||||
#define X_DIR_PIN 62 // PE15 X_DIR
|
||||
#define X_ENABLE_PIN 60 // PE13 X_RES
|
||||
#define X_CS_PIN 16 // PA4 SPI_CS
|
||||
|
||||
#define Y_STEP_PIN 64 // PB10 Y_PWM
|
||||
#define Y_DIR_PIN 65 // PE9 Y_DIR
|
||||
#define Y_ENABLE_PIN 63 // PE10 Y_RES
|
||||
#define Y_CS_PIN 16 // PA4 SPI_CS
|
||||
|
||||
#define Z_STEP_PIN 67 // PC6 Z_PWM
|
||||
#define Z_DIR_PIN 68 // PC0 Z_DIR
|
||||
#define Z_ENABLE_PIN 66 // PC15 Z_RES
|
||||
#define Z_CS_PIN 16 // PA4 SPI_CS
|
||||
|
||||
#define E0_STEP_PIN 71 // PD12 E1_PW
|
||||
#define E0_DIR_PIN 70 // PC13 E1_DIR
|
||||
#define E0_ENABLE_PIN 69 // PC14 E1_RE
|
||||
#define E0_CS_PIN 16 // PA4 SPI_CS
|
||||
|
||||
#define E1_STEP_PIN 73 // PE5 E2_PWM
|
||||
#define E1_DIR_PIN 74 // PE6 E2_DIR
|
||||
#define E1_ENABLE_PIN 72 // PE4 E2_RESE
|
||||
#define E1_CS_PIN 16 // PA4 SPI_CS
|
||||
|
||||
#define E2_STEP_PIN 77 // PB8 E3_PWM
|
||||
#define E2_DIR_PIN 76 // PE2 E3_DIR
|
||||
#define E2_ENABLE_PIN 75 // PE3 E3_RESE
|
||||
#define E2_CS_PIN 16 // PA4 SPI_CS
|
||||
|
||||
// needed to pass a sanity check
|
||||
#define X2_CS_PIN 16 // PA4 SPI_CS
|
||||
#define Y2_CS_PIN 16 // PA4 SPI_CS
|
||||
#define Z2_CS_PIN 16 // PA4 SPI_CS
|
||||
#define Z3_CS_PIN 16 // PA4 SPI_CS
|
||||
#define E3_CS_PIN 16 // PA4 SPI_CS
|
||||
#define E4_CS_PIN 16 // PA4 SPI_CS
|
||||
#define E5_CS_PIN 16 // PA4 SPI_CS
|
||||
|
||||
#if HAS_L64XX
|
||||
#define L6470_CHAIN_SCK_PIN 17 // PA5
|
||||
#define L6470_CHAIN_MISO_PIN 18 // PA6
|
||||
#define L6470_CHAIN_MOSI_PIN 19 // PA7
|
||||
#define L6470_CHAIN_SS_PIN 16 // PA4
|
||||
|
||||
//#define SCK_PIN L6470_CHAIN_SCK_PIN
|
||||
//#define MISO_PIN L6470_CHAIN_MISO_PIN
|
||||
//#define MOSI_PIN L6470_CHAIN_MOSI_PIN
|
||||
#else
|
||||
//#define SCK_PIN 13 // PB13 SPI_S
|
||||
//#define MISO_PIN 12 // PB14 SPI_M
|
||||
//#define MOSI_PIN 11 // PB15 SPI_M
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Macro to reset/enable L6474 stepper drivers
|
||||
*
|
||||
* IMPORTANT - To disable (bypass) L6474s, install the corresponding
|
||||
* resistors (R11 - R17) and change the "V" to "0" for the
|
||||
* corresponding pins here:
|
||||
*/
|
||||
#define ENABLE_RESET_L64XX_CHIPS(V) do{ OUT_WRITE(X_ENABLE_PIN, V); \
|
||||
OUT_WRITE(Y_ENABLE_PIN, V); \
|
||||
OUT_WRITE(Z_ENABLE_PIN, V); \
|
||||
OUT_WRITE(E0_ENABLE_PIN,V); \
|
||||
OUT_WRITE(E1_ENABLE_PIN,V); \
|
||||
OUT_WRITE(E2_ENABLE_PIN,V); \
|
||||
}while(0)
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN 3 // Analog input 3, digital pin 54 PA0 E1_THERMISTOR
|
||||
#define TEMP_1_PIN 4 // Analog input 4, digital pin 55 PA1 E2_THERMISTOR
|
||||
#define TEMP_2_PIN 5 // Analog input 5, digital pin 56 PA2 E3_THERMISTOR
|
||||
#define TEMP_BED_PIN 0 // Analog input 0, digital pin 51 PC2 BED_THERMISTOR_1
|
||||
#define TEMP_BED_1_PIN 1 // Analog input 1, digital pin 52 PC3 BED_THERMISTOR_2
|
||||
#define TEMP_BED_2_PIN 2 // Analog input 2, digital pin 53 PA3 BED_THERMISTOR_3
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 48 // PC7 E1_HEAT_PWM
|
||||
#define HEATER_1_PIN 49 // PB0 E2_HEAT_PWM
|
||||
#define HEATER_2_PIN 50 // PB1 E3_HEAT_PWM
|
||||
#define HEATER_BED_PIN 46 // PD14 (BED_HEAT_1 FET
|
||||
#define HEATER_BED_1_PIN 45 // PD13 (BED_HEAT_2 FET
|
||||
#define HEATER_BED_2_PIN 47 // PD15 (BED_HEAT_3 FET
|
||||
|
||||
#define FAN_PIN 57 // PC4 E1_FAN PWM pin, Part cooling fan FET
|
||||
#define FAN1_PIN 58 // PC5 E2_FAN PWM pin, Extruder fan FET
|
||||
#define ORIG_E0_AUTO_FAN_PIN FAN1_PIN
|
||||
#define FAN2_PIN 59 // PE8 E3_FAN PWM pin, Controller fan FET
|
||||
|
||||
//
|
||||
// Misc functions
|
||||
//
|
||||
#define SDSS 16 // PA4 SPI_CS
|
||||
#define LED_PIN -1 // 9 // PE1 green LED Heart beat
|
||||
#define PS_ON_PIN -1
|
||||
#define KILL_PIN -1
|
||||
#define POWER_LOSS_PIN -1 // PWR_LOSS / nAC_FAULT
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
//#define SD_DETECT_PIN 66 // PA15 SD_CA
|
||||
//#define BEEPER_PIN 24 // PC9 SDIO_D1
|
||||
//#define LCD_PINS_RS 65 // PE9 Y_DIR
|
||||
//#define LCD_PINS_ENABLE 59 // PE8 E3_FAN
|
||||
//#define LCD_PINS_D4 10 // PB12 SPI_C
|
||||
//#define LCD_PINS_D5 13 // PB13 SPI_S
|
||||
//#define LCD_PINS_D6 12 // PB14 SPI_M
|
||||
//#define LCD_PINS_D7 11 // PB15 SPI_M
|
||||
//#define BTN_EN1 57 // PC4 E1_FAN
|
||||
//#define BTN_EN2 58 // PC5 E2_FAN
|
||||
//#define BTN_ENC 52 // PC3 BED_THE
|
||||
|
||||
//
|
||||
// Extension pins
|
||||
//
|
||||
//#define EXT0_PIN 49 // PB0 E2_HEAT
|
||||
//#define EXT1_PIN 50 // PB1 E3_HEAT
|
||||
//#define EXT2_PIN // PB2 not used (tied to ground
|
||||
//#define EXT3_PIN 39 // PD8 X_STOP
|
||||
//#define EXT4_PIN 40 // PD9 Y_STOP
|
||||
//#define EXT5_PIN 41 // PD10 Z_STOP
|
||||
//#define EXT6_PIN 42 // PD11
|
||||
//#define EXT7_PIN 71 // PD12 E1_PW
|
||||
//#define EXT8_PIN 64 // PB10 Y_PWM
|
||||
|
||||
// WIFI
|
||||
// 2 // PD3 CTS
|
||||
// 3 // PD4 RTS
|
||||
// 4 // PD5 TX
|
||||
// 5 // PD6 RX
|
||||
// 6 // PB5 WIFI_WAKEUP
|
||||
// 7 // PE11 WIFI_RESET
|
||||
// 8 // PE12 WIFI_BOOT
|
||||
|
||||
|
||||
// I2C USER
|
||||
// 14 // PB7 SDA
|
||||
// 15 // PB6 SCL
|
||||
|
||||
// JTAG
|
||||
// 20 // PA13 JTAG_TMS/SWDIO
|
||||
// 21 // PA14 JTAG_TCK/SWCLK
|
||||
// 22 // PB3 JTAG_TDO/SWO
|
||||
|
||||
//
|
||||
// Onboard SD support
|
||||
//
|
||||
#define SDIO_D0_PIN 23 // PC8 SDIO_D0
|
||||
#define SDIO_D1_PIN 24 // PC9 SDIO_D1
|
||||
//#define SD_CARD_DETECT_PIN 25 // PA15 SD_CARD_DETECT
|
||||
#define SDIO_D2_PIN 26 // PC10 SDIO_D2
|
||||
#define SDIO_D3_PIN 27 // PC11 SDIO_D3
|
||||
#define SDIO_CK_PIN 28 // PC12 SDIO_CK
|
||||
#define SDIO_CMD_PIN 29 // PD2 SDIO_CMD
|
||||
|
||||
#ifndef SDCARD_CONNECTION
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
#endif
|
||||
|
||||
#if SDCARD_CONNECTION == ONBOARD
|
||||
#define SDIO_SUPPORT // Use SDIO for onboard SD
|
||||
|
||||
#ifndef SDIO_SUPPORT
|
||||
#define SOFTWARE_SPI // Use soft SPI for onboard SD
|
||||
#define SDSS SDIO_D3_PIN
|
||||
#define SCK_PIN SDIO_CK_PIN
|
||||
#define MISO_PIN SDIO_D0_PIN
|
||||
#define MOSI_PIN SDIO_CMD_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// OTG
|
||||
// 30 // PA11 OTG_DM
|
||||
// 31 // PA12 OTG_DP
|
||||
|
||||
// USER_PINS
|
||||
// 34 // PD7 USER3
|
||||
// 35 // PB9 USER1
|
||||
// 36 // PE0 USER2
|
||||
// 37 // PB4 USER4
|
||||
|
||||
// USERKET
|
||||
// 38 // PE7 USER_BUTTON
|
||||
|
||||
|
||||
// 0 // PA9 TX
|
||||
// 1 // PA10 RX
|
||||
|
||||
|
||||
// IR/PROBE
|
||||
// 32 // PD1 IR_OUT
|
||||
// 33 // PC1 IR_ON
|
||||
|
||||
|
||||
/**
|
||||
* Logical pin vs. port/pin cross reference
|
||||
*
|
||||
* PA0 54 // E1_THERMISTOR PA9 0 // TX
|
||||
* PA1 55 // E2_THERMISTOR PA10 1 // RX
|
||||
* PA2 56 // E3_THERMISTOR PD3 2 // CTS
|
||||
* PA3 53 // BED_THERMISTOR_3 PD4 3 // RTS
|
||||
* PA4 16 // SPI_CS PD5 4 // TX
|
||||
* PA5 17 // SPI_SCK PD6 5 // RX
|
||||
* PA6 18 // SPI_MISO PB5 6 // WIFI_WAKEUP
|
||||
* PA7 19 // SPI_MOSI PE11 7 // WIFI_RESET
|
||||
* PA8 43 // V_STOP PE12 8 // WIFI_BOOT
|
||||
* PA9 0 // TX PE1 9 // STATUS_LED
|
||||
* PA10 1 // RX PB12 10 // SPI_CS
|
||||
* PA11 30 // OTG_DM PB15 11 // SPI_MOSI
|
||||
* PA12 31 // OTG_DP PB14 12 // SPI_MISO
|
||||
* PA13 20 // JTAG_TMS/SWDIO PB13 13 // SPI_SCK
|
||||
* PA14 21 // JTAG_TCK/SWCLK PB7 14 // SDA
|
||||
* PA15 25 // SD_CARD_DETECT PB6 15 // SCL
|
||||
* PB0 49 // E2_HEAT_PWM PA4 16 // SPI_CS
|
||||
* PB1 50 // E3_HEAT_PWM PA5 17 // SPI_SCK
|
||||
* PB3 22 // JTAG_TDO/SWO PA6 18 // SPI_MISO
|
||||
* PB4 37 // USER4 PA7 19 // SPI_MOSI
|
||||
* PB5 6 // WIFI_WAKEUP PA13 20 // JTAG_TMS/SWDIO
|
||||
* PB6 15 // SCL PA14 21 // JTAG_TCK/SWCLK
|
||||
* PB7 14 // SDA PB3 22 // JTAG_TDO/SWO
|
||||
* PB8 77 // E3_PWM PC8 23 // SDIO_D0
|
||||
* PB9 35 // USER1 PC9 24 // SDIO_D1
|
||||
* PB10 64 // Y_PWM PA15 25 // SD_CARD_DETECT
|
||||
* PB12 10 // SPI_CS PC10 26 // SDIO_D2
|
||||
* PB13 13 // SPI_SCK PC11 27 // SDIO_D3
|
||||
* PB14 12 // SPI_MISO PC12 28 // SDIO_CK
|
||||
* PB15 11 // SPI_MOSI PD2 29 // SDIO_CMD
|
||||
* PC0 68 // Z_DIR PA11 30 // OTG_DM
|
||||
* PC1 33 // IR_ON PA12 31 // OTG_DP
|
||||
* PC2 51 // BED_THERMISTOR_1 PD1 32 // IR_OUT
|
||||
* PC3 52 // BED_THERMISTOR_2 PC1 33 // IR_ON
|
||||
* PC4 57 // E1_FAN PD7 34 // USER3
|
||||
* PC5 58 // E2_FAN PB9 35 // USER1
|
||||
* PC6 67 // Z_PWM PE0 36 // USER2
|
||||
* PC7 48 // E1_HEAT_PWM PB4 37 // USER4
|
||||
* PC8 23 // SDIO_D0 PE7 38 // USER_BUTTON
|
||||
* PC9 24 // SDIO_D1 PD8 39 // X_STOP
|
||||
* PC10 26 // SDIO_D2 PD9 40 // Y_STOP
|
||||
* PC11 27 // SDIO_D3 PD10 41 // Z_STOP
|
||||
* PC12 28 // SDIO_CK PD11 42 // U_STOP
|
||||
* PC13 70 // E1_DIR PA8 43 // V_STOP
|
||||
* PC14 69 // E1_RESET PD0 44 // W_STOP
|
||||
* PC15 66 // Z_RESET PD13 45 // BED_HEAT_2
|
||||
* PD0 44 // W_STOP PD14 46 // BED_HEAT_1
|
||||
* PD1 32 // IR_OUT PD15 47 // BED_HEAT_3
|
||||
* PD2 29 // SDIO_CMD PC7 48 // E1_HEAT_PWM
|
||||
* PD3 2 // CTS PB0 49 // E2_HEAT_PWM
|
||||
* PD4 3 // RTS PB1 50 // E3_HEAT_PWM
|
||||
* PD5 4 // TX PC2 51 // BED_THERMISTOR_1
|
||||
* PD6 5 // RX PC3 52 // BED_THERMISTOR_2
|
||||
* PD7 34 // USER3 PA3 53 // BED_THERMISTOR_3
|
||||
* PD8 39 // X_STOP PA0 54 // E1_THERMISTOR
|
||||
* PD9 40 // Y_STOP PA1 55 // E2_THERMISTOR
|
||||
* PD10 41 // Z_STOP PA2 56 // E3_THERMISTOR
|
||||
* PD11 42 // U_STOP PC4 57 // E1_FAN
|
||||
* PD12 71 // E1_PWM PC5 58 // E2_FAN
|
||||
* PD13 45 // BED_HEAT_2 PE8 59 // E3_FAN
|
||||
* PD14 46 // BED_HEAT_1 PE13 60 // X_RESET
|
||||
* PD15 47 // BED_HEAT_3 PE14 61 // X_PWM
|
||||
* PE0 36 // USER2 PE15 62 // X_DIR
|
||||
* PE1 9 // STATUS_LED PE10 63 // Y_RESET
|
||||
* PE2 76 // E3_DIR PB10 64 // Y_PWM
|
||||
* PE3 75 // E3_RESET PE9 65 // Y_DIR
|
||||
* PE4 72 // E2_RESET PC15 66 // Z_RESET
|
||||
* PE5 73 // E2_PWM PC6 67 // Z_PWM
|
||||
* PE6 74 // E2_DIR PC0 68 // Z_DIR
|
||||
* PE7 38 // USER_BUTTON PC14 69 // E1_RESET
|
||||
* PE8 59 // E3_FAN PC13 70 // E1_DIR
|
||||
* PE9 65 // Y_DIR PD12 71 // E1_PWM
|
||||
* PE10 63 // Y_RESET PE4 72 // E2_RESET
|
||||
* PE11 7 // WIFI_RESET PE5 73 // E2_PWM
|
||||
* PE12 8 // WIFI_BOOT PE6 74 // E2_DIR
|
||||
* PE13 60 // X_RESET PE3 75 // E3_RESET
|
||||
* PE14 61 // X_PWM PE2 76 // E3_DIR
|
||||
* PE15 62 // X_DIR PB8 77 // E3_PWM
|
||||
*/
|
194
Marlin/src/pins/stm32f4/pins_VAKE403D.h
Normal file
194
Marlin/src/pins/stm32f4/pins_VAKE403D.h
Normal file
@ -0,0 +1,194 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 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/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#if !defined(STM32F4) && !defined(STM32F4xx)
|
||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "STM32F4 supports up to 2 hotends / E-steppers."
|
||||
#endif
|
||||
|
||||
#define DEFAULT_MACHINE_NAME "STM32F446VET6"
|
||||
#define BOARD_NAME "STM32F4 VAkE"
|
||||
|
||||
//#define I2C_EEPROM
|
||||
|
||||
#define E2END 0xFFF // EEPROM end address (4kB)
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
//#define SERVO0_PIN PE13
|
||||
//#define SERVO1_PIN PE14
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN PE10
|
||||
#define Y_STOP_PIN PE9
|
||||
#define Z_STOP_PIN PE8
|
||||
|
||||
//
|
||||
// Z Probe (when not Z_MIN_PIN)
|
||||
//
|
||||
#ifndef Z_MIN_PROBE_PIN
|
||||
#define Z_MIN_PROBE_PIN PA4
|
||||
#endif
|
||||
|
||||
//
|
||||
// Filament runout
|
||||
//
|
||||
#define FIL_RUNOUT_PIN PA3
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
|
||||
#define STEPPER_ENABLE_PIN PB2
|
||||
|
||||
#define X_STEP_PIN PC6 // X_STEP
|
||||
#define X_DIR_PIN PC7 // X_DIR
|
||||
#define X_ENABLE_PIN PB2 //
|
||||
#ifndef X_CS_PIN
|
||||
#define X_CS_PIN PC8 // X_CS
|
||||
#endif
|
||||
|
||||
#define Y_STEP_PIN PD9 // Y_STEP
|
||||
#define Y_DIR_PIN PD10 // Y_DIR
|
||||
#define Y_ENABLE_PIN PB2 //
|
||||
#ifndef Y_CS_PIN
|
||||
#define Y_CS_PIN PD11 // Y_CS
|
||||
#endif
|
||||
|
||||
#define Z_STEP_PIN PE15 // Z_STEP
|
||||
#define Z_DIR_PIN PB10 // Z_DIR
|
||||
#define Z_ENABLE_PIN PB2
|
||||
#ifndef Z_CS_PIN
|
||||
#define Z_CS_PIN PD8
|
||||
#endif
|
||||
|
||||
#define E0_STEP_PIN PB1
|
||||
#define E0_DIR_PIN PB13
|
||||
#define E0_ENABLE_PIN PB2
|
||||
#ifndef E0_CS_PIN
|
||||
#define E0_CS_PIN PE11
|
||||
#endif
|
||||
|
||||
#define E1_STEP_PIN PC4
|
||||
#define E1_DIR_PIN PC5
|
||||
#define E1_ENABLE_PIN PB2
|
||||
#ifndef E1_CS_PIN
|
||||
#define E1_CS_PIN PB0
|
||||
#endif
|
||||
|
||||
#define SCK_PIN PE12 // PA5 // SPI1 for SD card
|
||||
#define MISO_PIN PE13 // PA6
|
||||
#define MOSI_PIN PE14 // PA7
|
||||
|
||||
// added for SD card : optional or not ???
|
||||
//#define SD_CHIP_SELECT_PIN SDSS // The default chip select pin for the SD card is SS.
|
||||
// The following three pins must not be redefined for hardware SPI.
|
||||
//#define SPI_MOSI_PIN MOSI_PIN // SPI Master Out Slave In pin
|
||||
//#define SPI_MISO_PIN MISO_PIN // SPI Master In Slave Out pin
|
||||
//#define SPI_SCK_PIN SCK_PIN // SPI Clock pin
|
||||
|
||||
//
|
||||
// Temperature Sensors (Analog inputs)
|
||||
//
|
||||
|
||||
#define TEMP_0_PIN PC0 // Analog Input
|
||||
#define TEMP_1_PIN PC1 // Analog Input
|
||||
#define TEMP_2_PIN PC2 // Analog Input
|
||||
#define TEMP_3_PIN PC3 // Analog Input
|
||||
#define TEMP_BED_PIN PC3 // Analog Input
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
|
||||
#define HEATER_0_PIN PD15
|
||||
#define HEATER_1_PIN PD14
|
||||
#define HEATER_BED_PIN PD12
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN PD13
|
||||
#endif
|
||||
#define FAN1_PIN PB5 // PA0
|
||||
#define FAN2_PIN PB4 // PA1
|
||||
|
||||
#define ORIG_E0_AUTO_FAN_PIN PD13 // Use this by NOT overriding E0_AUTO_FAN_PIN
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
|
||||
//#define CASE_LIGHT_PIN_CI PF13
|
||||
//#define CASE_LIGHT_PIN_DO PF14
|
||||
//#define NEOPIXEL_PIN PF13
|
||||
|
||||
//
|
||||
// Prusa i3 MK2 Multi Material Multiplexer Support
|
||||
//
|
||||
//#define E_MUX0_PIN PG3
|
||||
//#define E_MUX1_PIN PG4
|
||||
|
||||
#define LED_PIN PB14 // Alive
|
||||
#define PS_ON_PIN PE0
|
||||
#define KILL_PIN PD5
|
||||
#define POWER_LOSS_PIN PA4 // ?? Power loss / nAC_FAULT
|
||||
|
||||
#if ENABLED(SDSUPPORT)
|
||||
#define SD_DETECT_PIN PB7
|
||||
#define SS_PIN PB_15 // USD_CS -> CS for onboard SD
|
||||
#endif
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if HAS_SPI_LCD
|
||||
#if ENABLED(SDSUPPORT)
|
||||
#define SDSS PB6 // CS for SD card in LCD
|
||||
#endif
|
||||
#define BEEPER_PIN PC9
|
||||
#define LCD_PINS_RS PC12
|
||||
#define LCD_PINS_ENABLE PD7
|
||||
#define LCD_PINS_D4 PD1
|
||||
#define LCD_PINS_D5 PD2
|
||||
#define LCD_PINS_D6 PD3
|
||||
#define LCD_PINS_D7 PD4
|
||||
#define BTN_EN1 PD6
|
||||
#define BTN_EN2 PD0
|
||||
#define BTN_ENC PB12
|
||||
#endif
|
||||
|
||||
//
|
||||
// ST7920 Delays
|
||||
//
|
||||
#ifndef ST7920_DELAY_1
|
||||
#define ST7920_DELAY_1 DELAY_NS(96)
|
||||
#endif
|
||||
#ifndef ST7920_DELAY_2
|
||||
#define ST7920_DELAY_2 DELAY_NS(48)
|
||||
#endif
|
||||
#ifndef ST7920_DELAY_3
|
||||
#define ST7920_DELAY_3 DELAY_NS(715)
|
||||
#endif
|
Reference in New Issue
Block a user