First commit for Ender-3V3 SE
First commit for Ender-3V3 SE
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2021 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 <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#if NOT_TARGET(__STM32F1__)
|
||||
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
|
||||
#endif
|
||||
@@ -0,0 +1,157 @@
|
||||
/**
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
/**
|
||||
* 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_WIRED_LCD
|
||||
|
||||
#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
|
||||
#error "REPRAPWORLD_GRAPHICAL_LCD is not supported."
|
||||
#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 !IS_NEWPANEL
|
||||
#error "Non-NEWPANEL LCD is not supported."
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if IS_NEWPANEL
|
||||
#if IS_RRD_SC
|
||||
#error "RRD Smart Controller is not supported."
|
||||
#elif ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
|
||||
#error "REPRAPWORLD_GRAPHICAL_LCD is not supported."
|
||||
#elif ENABLED(LCD_I2C_PANELOLU2)
|
||||
#error "LCD_I2C_PANELOLU2 is not supported."
|
||||
#elif ENABLED(LCD_I2C_VIKI)
|
||||
#error "LCD_I2C_VIKI is not supported."
|
||||
#elif ANY(VIKI2, miniVIKI)
|
||||
#error "VIKI2 / miniVIKI is not supported."
|
||||
#elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
|
||||
#error "ELB_FULL_GRAPHIC_CONTROLLER is not supported."
|
||||
#elif ENABLED(MINIPANEL)
|
||||
#error "MINIPANEL is not supported."
|
||||
#else
|
||||
#error "Other generic NEWPANEL LCD is not supported."
|
||||
#endif
|
||||
#endif // IS_NEWPANEL
|
||||
|
||||
#endif // HAS_WIRED_LCD
|
||||
@@ -0,0 +1,237 @@
|
||||
/**
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Creality S1 (STM32F103RET6) board pin assignments
|
||||
*/
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 1 || E_STEPPERS > 1
|
||||
#error "Creality S1 only supports one hotend / E-stepper. Comment out this line to continue."
|
||||
#endif
|
||||
|
||||
#ifndef BOARD_INFO_NAME
|
||||
#define BOARD_INFO_NAME "CR-FDM-V24S1-301"
|
||||
#endif
|
||||
#ifndef DEFAULT_MACHINE_NAME
|
||||
#define DEFAULT_MACHINE_NAME "Ender 3 S1"
|
||||
#endif
|
||||
|
||||
#define BOARD_NO_NATIVE_USB
|
||||
|
||||
//
|
||||
// EEPROM
|
||||
//
|
||||
//#if NO_EEPROM_SELECTED
|
||||
#define IIC_BL24CXX_EEPROM // EEPROM on I2C-0
|
||||
//#define SDCARD_EEPROM_EMULATION
|
||||
//#endif
|
||||
|
||||
#if ENABLED(IIC_BL24CXX_EEPROM)
|
||||
#define IIC_EEPROM_SDA PA11
|
||||
#define IIC_EEPROM_SCL PA12
|
||||
#define MARLIN_EEPROM_SIZE 0x800 // 2Kb (24C16)
|
||||
#elif ENABLED(SDCARD_EEPROM_EMULATION)
|
||||
#define MARLIN_EEPROM_SIZE 0x800 // 2Kb
|
||||
#endif
|
||||
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN PA5
|
||||
#define Y_STOP_PIN PA6
|
||||
#ifdef BLTOUCH
|
||||
#define Z_STOP_PIN PC14 // BLTouch IN PIN 原理图TOUCH的管脚已经变-----zy
|
||||
#define SERVO0_PIN PC13 // BLTouch PWM-OUT PIN 原理图TOUCH的管脚已经变-----zy
|
||||
#define Z_STOP_PIN_NADD PA15 //Added z-axis limit switch rock_20210816
|
||||
#else
|
||||
#define Z_STOP_PIN PA15 //Z轴限位开关
|
||||
// #define Z_STOP_PIN ONE
|
||||
#endif
|
||||
|
||||
//#define one (c14 || a15)
|
||||
|
||||
#ifndef Z_MIN_PROBE_PIN
|
||||
#define Z_MIN_PROBE_PIN PC14 // BLTouch IN
|
||||
#endif
|
||||
|
||||
//
|
||||
// Filament Runout Sensor
|
||||
//
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN PC15 // "Pulled-high"
|
||||
#endif
|
||||
|
||||
#define HAS_CHECKFILAMENT
|
||||
/* CHECKFILAMENT */
|
||||
#if ENABLED(HAS_CHECKFILAMENT)
|
||||
#define CHECKFILAMENT_PIN PC15
|
||||
#endif
|
||||
|
||||
//Backpower
|
||||
#ifndef BACKPOWER_CTRL_PIN
|
||||
#define BACKPOWER_CTRL_PIN PA4 //上电拉低,当ADC检测到24V供电低于20V时,先保存续打数据,然后PA4=1。 //---------zy
|
||||
#endif
|
||||
|
||||
#ifndef CHECK_24V_PIN
|
||||
#define POWER_DETECTION_PIN PB0 //检测24V电源的ADC输入脚
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_ENABLE_PIN PC3
|
||||
#ifndef X_STEP_PIN
|
||||
#define X_STEP_PIN PC2
|
||||
#endif
|
||||
#ifndef X_DIR_PIN
|
||||
#define X_DIR_PIN PB9
|
||||
#endif
|
||||
|
||||
#define Y_ENABLE_PIN PC3
|
||||
#ifndef Y_STEP_PIN
|
||||
#define Y_STEP_PIN PB8
|
||||
#endif
|
||||
#ifndef Y_DIR_PIN
|
||||
#define Y_DIR_PIN PB7
|
||||
#endif
|
||||
|
||||
#define Z_ENABLE_PIN PC3
|
||||
#ifndef Z_STEP_PIN
|
||||
#define Z_STEP_PIN PB6
|
||||
#endif
|
||||
#ifndef Z_DIR_PIN
|
||||
#define Z_DIR_PIN PB5
|
||||
#endif
|
||||
|
||||
#define E0_ENABLE_PIN PC3
|
||||
#ifndef E0_STEP_PIN
|
||||
#define E0_STEP_PIN PB4
|
||||
#endif
|
||||
#ifndef E0_DIR_PIN
|
||||
#define E0_DIR_PIN PB3
|
||||
#endif
|
||||
|
||||
//
|
||||
// Release PB4 (Y_ENABLE_PIN) from JTAG NRST role
|
||||
//
|
||||
#define DISABLE_DEBUG
|
||||
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN PC5 // TH1
|
||||
#define TEMP_BED_PIN PC4 // TB1
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN PA1 // HEATER1
|
||||
#define HEATER_BED_PIN PA7 //PA15 // HOT BED
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN PA0 // FAN
|
||||
#endif
|
||||
#if PIN_EXISTS(FAN)
|
||||
#define FAN_SOFT_PWM
|
||||
#endif
|
||||
|
||||
//
|
||||
// SD Card
|
||||
//
|
||||
#define SD_DETECT_PIN PC7
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
#define ONBOARD_SPI_DEVICE 1
|
||||
#define ONBOARD_SD_CS_PIN PA4 // SDSS
|
||||
#define SDIO_SUPPORT
|
||||
#define NO_SD_HOST_DRIVE // This board's SD is only seen by the printer
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY) && NONE(RET6_12864_LCD, VET6_12864_LCD)
|
||||
#error "Define RET6_12864_LCD or VET6_12864_LCD to select pins for CR10_STOCKDISPLAY with the Creality V4 controller."
|
||||
#endif
|
||||
|
||||
#if ENABLED(RET6_12864_LCD)
|
||||
|
||||
// RET6 12864 LCD
|
||||
#define LCD_PINS_RS PB12
|
||||
#define LCD_PINS_ENABLE PB15
|
||||
#define LCD_PINS_D4 PB13
|
||||
|
||||
#define BTN_ENC PB2
|
||||
#define BTN_EN1 PB10
|
||||
#define BTN_EN2 PB14
|
||||
|
||||
#ifndef HAS_PIN_27_BOARD
|
||||
#define BEEPER_PIN PC6
|
||||
#endif
|
||||
|
||||
#elif ENABLED(VET6_12864_LCD)
|
||||
|
||||
// VET6 12864 LCD
|
||||
#define LCD_PINS_RS PA4
|
||||
//#define LCD_PINS_ENABLE PA7
|
||||
#define LCD_PINS_D4 PA5
|
||||
|
||||
#define BTN_ENC PC5
|
||||
#define BTN_EN1 PB10
|
||||
#define BTN_EN2 PA6
|
||||
|
||||
#elif ENABLED(DWIN_CREALITY_LCD)
|
||||
|
||||
// RET6 DWIN ENCODER LCD
|
||||
#define BTN_ENC PB14
|
||||
#define BTN_EN1 PB15
|
||||
#define BTN_EN2 PB12
|
||||
|
||||
//#define LCD_LED_PIN PB2
|
||||
#ifndef BEEPER_PIN
|
||||
#define BEEPER_PIN PB13
|
||||
#undef SPEAKER
|
||||
#endif
|
||||
|
||||
#elif ENABLED(DWIN_VET6_CREALITY_LCD)
|
||||
|
||||
// VET6 DWIN ENCODER LCD
|
||||
#define BTN_ENC PA6
|
||||
//#define BTN_EN1 PA7
|
||||
#define BTN_EN2 PA4
|
||||
|
||||
#define BEEPER_PIN PA5
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// M3/M4/M5 - Spindle/Laser Control
|
||||
//
|
||||
#if HAS_CUTTER
|
||||
// #undef HEATER_0_PIN
|
||||
// #undef HEATER_BED_PIN
|
||||
// #undef FAN_PIN
|
||||
// #define SPINDLE_LASER_ENA_PIN PC0 // FET 1
|
||||
// #define SPINDLE_LASER_PWM_PIN PC0 // Bed FET
|
||||
// #define SPINDLE_DIR_PIN PC0 // FET 4
|
||||
#define SPINDLE_LASER_ENA_PIN PC0 // FET 1
|
||||
#define SPINDLE_LASER_PWM_PIN PC0 // Bed FET
|
||||
#define SPINDLE_DIR_PIN PC0 // FET 4
|
||||
|
||||
#define LASER_SOFT_PWM_PIN PC0 //激光软PWM引脚
|
||||
#endif
|
||||
@@ -0,0 +1,261 @@
|
||||
/**
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Creality V3 (GD303RET6) board pin assignments
|
||||
*/
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 1 || E_STEPPERS > 1
|
||||
#error "Creality V3 only supports one hotend / E-stepper. Comment out this line to continue."
|
||||
#endif
|
||||
|
||||
#ifndef BOARD_INFO_NAME
|
||||
#define BOARD_INFO_NAME "CR4NS200320C13"
|
||||
#endif
|
||||
#ifndef DEFAULT_MACHINE_NAME
|
||||
#define DEFAULT_MACHINE_NAME "Ender 3 V3 SE"
|
||||
#endif
|
||||
|
||||
#define BOARD_NO_NATIVE_USB
|
||||
|
||||
//
|
||||
// EEPROM
|
||||
//
|
||||
//#if NO_EEPROM_SELECTED
|
||||
#define IIC_BL24CXX_EEPROM // EEPROM on I2C-0
|
||||
// #define SDCARD_EEPROM_EMULATION
|
||||
//#endif
|
||||
|
||||
#if ENABLED(IIC_BL24CXX_EEPROM)
|
||||
#define IIC_EEPROM_SDA PA7
|
||||
#define IIC_EEPROM_SCL PA8
|
||||
#define MARLIN_EEPROM_SIZE 0x800 // 2Kb (24C16)
|
||||
#elif ENABLED(SDCARD_EEPROM_EMULATION)
|
||||
#define MARLIN_EEPROM_SIZE 0x800 // 2Kb
|
||||
#endif
|
||||
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN PA5
|
||||
#define Y_STOP_PIN PA6
|
||||
|
||||
#if ENABLED(BLTOUCH)
|
||||
#define Z_STOP_PIN PC14 // BLTouch IN
|
||||
#define SERVO0_PIN PC13 // BLTouch OUT
|
||||
#elif ENABLED(PROBE_TARE)
|
||||
#define Z_STOP_PIN PC14
|
||||
#define PROBE_TARE_PIN PC13
|
||||
// #define PROBE_ACTIVATION_SWITCH_PIN PB2
|
||||
#else
|
||||
#define Z_STOP_PIN PA15
|
||||
#endif
|
||||
|
||||
//
|
||||
// Filament Runout Sensor
|
||||
//
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN PC15 // "Pulled-high"
|
||||
#endif
|
||||
|
||||
// Filament check pins
|
||||
#define HAS_CHECKFILAMENT
|
||||
#if ENABLED(HAS_CHECKFILAMENT)
|
||||
#define CHECKFILAMENT_PIN PC15
|
||||
#endif
|
||||
|
||||
// HX711 corresponding clock interface, this GPIO port do not parallel capacitor,
|
||||
// And should be as short wire as possible (if too long, use shield wire).
|
||||
#define HX711_SCK_PIN PA4
|
||||
// HX711 corresponding data interface, this GPIO port should not parallel capacitor,
|
||||
// And should be as short as possible wire (if too long, use shield wire).
|
||||
#define HX711_SDO_PIN PC6
|
||||
|
||||
#ifndef CHECK_24V_PIN
|
||||
#define POWER_DETECTION_PIN PB0 // Detect the ADC input pin of 24V power supply
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#ifndef X_STEP_PIN
|
||||
#define X_STEP_PIN PC2
|
||||
#endif
|
||||
#ifndef X_DIR_PIN
|
||||
#define X_DIR_PIN PB9
|
||||
#endif
|
||||
#define X_ENABLE_PIN PC3
|
||||
|
||||
#ifndef Y_STEP_PIN
|
||||
#define Y_STEP_PIN PB8
|
||||
#endif
|
||||
#ifndef Y_DIR_PIN
|
||||
#define Y_DIR_PIN PB7
|
||||
#endif
|
||||
#define Y_ENABLE_PIN PC3
|
||||
|
||||
#ifndef Z_STEP_PIN
|
||||
#define Z_STEP_PIN PB6
|
||||
#endif
|
||||
#ifndef Z_DIR_PIN
|
||||
#define Z_DIR_PIN PB5
|
||||
#endif
|
||||
#define Z_ENABLE_PIN PC3
|
||||
|
||||
#ifndef E0_STEP_PIN
|
||||
#define E0_STEP_PIN PB4
|
||||
#endif
|
||||
#ifndef E0_DIR_PIN
|
||||
#define E0_DIR_PIN PB3
|
||||
#endif
|
||||
#define E0_ENABLE_PIN PC3
|
||||
|
||||
#if HAS_TMC_UART
|
||||
|
||||
#define X_SERIAL_TX_PIN PB12
|
||||
#define X_SERIAL_RX_PIN PB12
|
||||
|
||||
//#define Y_SERIAL_TX_PIN X_SERIAL_TX_PIN
|
||||
//#define Y_SERIAL_RX_PIN X_SERIAL_RX_PIN
|
||||
#define Y_SERIAL_TX_PIN PB13
|
||||
#define Y_SERIAL_RX_PIN PB13
|
||||
|
||||
//#define Z_SERIAL_TX_PIN X_SERIAL_TX_PIN
|
||||
//#define Z_SERIAL_RX_PIN X_SERIAL_RX_PIN
|
||||
#define Z_SERIAL_TX_PIN PB14
|
||||
#define Z_SERIAL_RX_PIN PB14
|
||||
|
||||
//#define E0_SERIAL_TX_PIN X_SERIAL_TX_PIN
|
||||
//#define E0_SERIAL_RX_PIN X_SERIAL_RX_PIN
|
||||
#define E0_SERIAL_TX_PIN PB15
|
||||
#define E0_SERIAL_RX_PIN PB15
|
||||
|
||||
#define X_DIAG_PIN PB10
|
||||
#define Y_DIAG_PIN PB11
|
||||
//#define Z_DIAG_PIN PB14
|
||||
//#define E0_DIAG_PIN PB15
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200 // 9600
|
||||
#endif
|
||||
|
||||
// SPI 2
|
||||
// #define W25QXX_CS_PIN -1 // PB12
|
||||
// The current MOSI, MISO, SCK of HAL/STM32 are not defined by the following pins,
|
||||
// Needs to be in buildroot\share\PlatformIO\variants\CREALITY_F107\variant.h modification
|
||||
// #define W25QXX_MOSI_PIN PB15
|
||||
// #define W25QXX_MISO_PIN PB14
|
||||
// #define W25QXX_SCK_PIN -1 // PB13
|
||||
|
||||
//
|
||||
// Release PB4 (Y_ENABLE_PIN) from JTAG NRST role
|
||||
//
|
||||
#define DISABLE_DEBUG
|
||||
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN PC5 // TH1
|
||||
#define TEMP_BED_PIN PC4 // TB1
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN PA1 // HEATER1
|
||||
#define HEATER_BED_PIN PB2 // HOT BED
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN PA0 // FAN
|
||||
#endif
|
||||
#if PIN_EXISTS(FAN)
|
||||
#define FAN_SOFT_PWM
|
||||
#endif
|
||||
|
||||
//
|
||||
// SD Card
|
||||
//
|
||||
#define SD_DETECT_PIN PC7
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
#define ONBOARD_SPI_DEVICE 1
|
||||
#define ONBOARD_SD_CS_PIN PA4 // SDSS
|
||||
#define SDIO_SUPPORT
|
||||
#define NO_SD_HOST_DRIVE // This board's SD is only seen by the printer
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY) && NONE(RET6_12864_LCD, VET6_12864_LCD)
|
||||
#error "Define RET6_12864_LCD or VET6_12864_LCD to select pins for CR10_STOCKDISPLAY with the Creality V4 controller."
|
||||
#endif
|
||||
|
||||
#if ENABLED(RET6_12864_LCD)
|
||||
|
||||
// RET6 12864 LCD
|
||||
#define LCD_PINS_RS PB12
|
||||
#define LCD_PINS_ENABLE PB15
|
||||
#define LCD_PINS_D4 PB13
|
||||
|
||||
#define BTN_ENC PB2
|
||||
#define BTN_EN1 PB10
|
||||
#define BTN_EN2 PB14
|
||||
|
||||
#ifndef HAS_PIN_27_BOARD
|
||||
#define BEEPER_PIN PC6
|
||||
#endif
|
||||
|
||||
#elif ENABLED(VET6_12864_LCD)
|
||||
|
||||
// VET6 12864 LCD
|
||||
#define LCD_PINS_RS PA4
|
||||
//#define LCD_PINS_ENABLE PA7
|
||||
#define LCD_PINS_D4 PA5
|
||||
|
||||
#define BTN_ENC PC5
|
||||
#define BTN_EN1 PB10
|
||||
#define BTN_EN2 PA6
|
||||
|
||||
#elif ENABLED(DWIN_CREALITY_LCD)
|
||||
|
||||
// RET6 DWIN ENCODER LCD
|
||||
#define BTN_ENC PB1
|
||||
#define BTN_EN1 PA11
|
||||
#define BTN_EN2 PA12
|
||||
|
||||
// //#define LCD_LED_PIN PB2
|
||||
// // #if ENABLED(SPEAKER)
|
||||
// #define BEEPER_PIN PB13
|
||||
// // #undef SPEAKER
|
||||
// // #endif
|
||||
|
||||
#ifndef BEEPER_PIN
|
||||
#define BEEPER_PIN PB0//PB13
|
||||
#undef SPEAKER
|
||||
#endif
|
||||
|
||||
#elif ENABLED(DWIN_VET6_CREALITY_LCD)
|
||||
|
||||
// VET6 DWIN ENCODER LCD
|
||||
#define BTN_ENC PA6
|
||||
//#define BTN_EN1 PA7
|
||||
#define BTN_EN2 PA4
|
||||
|
||||
#define BEEPER_PIN PA5
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,214 @@
|
||||
/**
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Creality 4.2.x (STM32F103RET6) board pin assignments
|
||||
*/
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 1 || E_STEPPERS > 1
|
||||
#error "Creality V4 only supports one hotend / E-stepper. Comment out this line to continue."
|
||||
#endif
|
||||
|
||||
#ifndef BOARD_INFO_NAME
|
||||
#define BOARD_INFO_NAME "Creality V4"
|
||||
#endif
|
||||
#ifndef DEFAULT_MACHINE_NAME
|
||||
#define DEFAULT_MACHINE_NAME "Ender 3 V3"
|
||||
#endif
|
||||
|
||||
#define BOARD_NO_NATIVE_USB
|
||||
|
||||
//
|
||||
// EEPROM
|
||||
//
|
||||
#if NO_EEPROM_SELECTED
|
||||
#define IIC_BL24CXX_EEPROM // EEPROM on I2C-0
|
||||
//#define SDCARD_EEPROM_EMULATION
|
||||
#endif
|
||||
|
||||
#if ENABLED(IIC_BL24CXX_EEPROM)
|
||||
#define IIC_EEPROM_SDA PA11
|
||||
#define IIC_EEPROM_SCL PA12
|
||||
#define MARLIN_EEPROM_SIZE 0x800 // 2Kb (24C16)
|
||||
#elif ENABLED(SDCARD_EEPROM_EMULATION)
|
||||
#define MARLIN_EEPROM_SIZE 0x800 // 2Kb
|
||||
#endif
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#ifndef SERVO0_PIN
|
||||
#ifndef HAS_PIN_27_BOARD
|
||||
#define SERVO0_PIN PB0 // BLTouch OUT
|
||||
#else
|
||||
#define SERVO0_PIN PC6
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN PA5
|
||||
#define Y_STOP_PIN PA6
|
||||
#define Z_STOP_PIN PA7
|
||||
|
||||
#ifndef Z_MIN_PROBE_PIN
|
||||
#define Z_MIN_PROBE_PIN PB1 // BLTouch IN
|
||||
#endif
|
||||
|
||||
//
|
||||
// Filament Runout Sensor
|
||||
//
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN PA4 // "Pulled-high"
|
||||
#endif
|
||||
|
||||
// Filament check pins
|
||||
#define HAS_CHECKFILAMENT
|
||||
#if ENABLED(HAS_CHECKFILAMENT)
|
||||
#define CHECKFILAMENT_PIN PA4
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_ENABLE_PIN PC3
|
||||
#ifndef X_STEP_PIN
|
||||
#define X_STEP_PIN PC2
|
||||
#endif
|
||||
#ifndef X_DIR_PIN
|
||||
#define X_DIR_PIN PB9
|
||||
#endif
|
||||
|
||||
#define Y_ENABLE_PIN PC3
|
||||
#ifndef Y_STEP_PIN
|
||||
#define Y_STEP_PIN PB8
|
||||
#endif
|
||||
#ifndef Y_DIR_PIN
|
||||
#define Y_DIR_PIN PB7
|
||||
#endif
|
||||
|
||||
#define Z_ENABLE_PIN PC3
|
||||
#ifndef Z_STEP_PIN
|
||||
#define Z_STEP_PIN PB6
|
||||
#endif
|
||||
#ifndef Z_DIR_PIN
|
||||
#define Z_DIR_PIN PB5
|
||||
#endif
|
||||
|
||||
#define E0_ENABLE_PIN PC3
|
||||
#ifndef E0_STEP_PIN
|
||||
#define E0_STEP_PIN PB4
|
||||
#endif
|
||||
#ifndef E0_DIR_PIN
|
||||
#define E0_DIR_PIN PB3
|
||||
#endif
|
||||
|
||||
//
|
||||
// Release PB4 (Y_ENABLE_PIN) from JTAG NRST role
|
||||
//
|
||||
#define DISABLE_DEBUG
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN PC5 // TH1
|
||||
#define TEMP_BED_PIN PC4 // TB1
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN PA1 // HEATER1
|
||||
#define HEATER_BED_PIN PA2 // HOT BED
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN PA0 // FAN
|
||||
#endif
|
||||
#if PIN_EXISTS(FAN)
|
||||
#define FAN_SOFT_PWM
|
||||
#endif
|
||||
|
||||
//
|
||||
// SD Card
|
||||
//
|
||||
#define SD_DETECT_PIN PC7
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
#define ONBOARD_SPI_DEVICE 1
|
||||
#define ONBOARD_SD_CS_PIN PA4 // SDSS
|
||||
#define SDIO_SUPPORT
|
||||
#define NO_SD_HOST_DRIVE // This board's SD is only seen by the printer
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY) && NONE(RET6_12864_LCD, VET6_12864_LCD)
|
||||
#error "Define RET6_12864_LCD or VET6_12864_LCD to select pins for CR10_STOCKDISPLAY with the Creality V4 controller."
|
||||
#endif
|
||||
|
||||
#if ENABLED(RET6_12864_LCD)
|
||||
|
||||
// RET6 12864 LCD
|
||||
#define LCD_PINS_RS PB12
|
||||
#define LCD_PINS_ENABLE PB15
|
||||
#define LCD_PINS_D4 PB13
|
||||
|
||||
#define BTN_ENC PB2
|
||||
#define BTN_EN1 PB10
|
||||
#define BTN_EN2 PB14
|
||||
|
||||
#ifndef HAS_PIN_27_BOARD
|
||||
#define BEEPER_PIN PC6
|
||||
#endif
|
||||
|
||||
#elif ENABLED(VET6_12864_LCD)
|
||||
|
||||
// VET6 12864 LCD
|
||||
#define LCD_PINS_RS PA4
|
||||
#define LCD_PINS_ENABLE PA7
|
||||
#define LCD_PINS_D4 PA5
|
||||
|
||||
#define BTN_ENC PC5
|
||||
#define BTN_EN1 PB10
|
||||
#define BTN_EN2 PA6
|
||||
|
||||
#elif ENABLED(DWIN_CREALITY_LCD)
|
||||
|
||||
// RET6 DWIN ENCODER LCD
|
||||
#define BTN_ENC PB14
|
||||
#define BTN_EN1 PB15
|
||||
#define BTN_EN2 PB12
|
||||
|
||||
//#define LCD_LED_PIN PB2
|
||||
#ifndef BEEPER_PIN
|
||||
#define BEEPER_PIN PB13
|
||||
#undef SPEAKER
|
||||
#endif
|
||||
|
||||
#elif ENABLED(DWIN_VET6_CREALITY_LCD)
|
||||
|
||||
// VET6 DWIN ENCODER LCD
|
||||
#define BTN_ENC PA6
|
||||
#define BTN_EN1 PA7
|
||||
#define BTN_EN2 PA4
|
||||
|
||||
#define BEEPER_PIN PA5
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,208 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* CREALITY 4.2.10 (STM32F103) board pin assignments
|
||||
*/
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 1 || E_STEPPERS > 1
|
||||
#error "CREALITY supports up to 1 hotends / E-steppers. Comment out this line to continue."
|
||||
#endif
|
||||
|
||||
#ifndef BOARD_INFO_NAME
|
||||
#define BOARD_INFO_NAME "Creality V4.2.10"
|
||||
#endif
|
||||
#ifndef DEFAULT_MACHINE_NAME
|
||||
#define DEFAULT_MACHINE_NAME "3DPrintMill"
|
||||
#endif
|
||||
|
||||
#define BOARD_NO_NATIVE_USB
|
||||
|
||||
//
|
||||
// EEPROM
|
||||
//
|
||||
#if NO_EEPROM_SELECTED
|
||||
// FLASH
|
||||
//#define FLASH_EEPROM_EMULATION
|
||||
|
||||
// I2C
|
||||
#define IIC_BL24CXX_EEPROM // EEPROM on I2C-0 used only for display settings
|
||||
#if ENABLED(IIC_BL24CXX_EEPROM)
|
||||
#define IIC_EEPROM_SDA PA11
|
||||
#define IIC_EEPROM_SCL PA12
|
||||
#define MARLIN_EEPROM_SIZE 0x800 // 2Kb (24C16)
|
||||
#else
|
||||
#define SDCARD_EEPROM_EMULATION // SD EEPROM until all EEPROM is BL24CXX
|
||||
#define MARLIN_EEPROM_SIZE 0x800 // 2Kb
|
||||
#endif
|
||||
|
||||
// SPI
|
||||
//#define SPI_EEPROM // EEPROM on SPI-0
|
||||
//#define SPI_CHAN_EEPROM1 ?
|
||||
//#define SPI_EEPROM1_CS ?
|
||||
|
||||
// 2K EEPROM
|
||||
//#define SPI_EEPROM2_CS ?
|
||||
|
||||
// 32Mb FLASH
|
||||
//#define SPI_FLASH_CS ?
|
||||
#endif
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN PB0 // BLTouch OUT
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN PA3
|
||||
#define Y_STOP_PIN PA7
|
||||
#define Z_STOP_PIN PA5
|
||||
|
||||
#define Z_MIN_PROBE_PIN PA5 // BLTouch IN
|
||||
|
||||
//
|
||||
// Filament Runout Sensor
|
||||
//
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN PA6 // "Pulled-high"
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_ENABLE_PIN PC3
|
||||
#ifndef X_STEP_PIN
|
||||
#define X_STEP_PIN PC2
|
||||
#endif
|
||||
#ifndef X_DIR_PIN
|
||||
#define X_DIR_PIN PB9
|
||||
#endif
|
||||
|
||||
#define Y_ENABLE_PIN PC3
|
||||
#ifndef Y_STEP_PIN
|
||||
#define Y_STEP_PIN PB8
|
||||
#endif
|
||||
#ifndef Y_DIR_PIN
|
||||
#define Y_DIR_PIN PB7
|
||||
#endif
|
||||
|
||||
#define Z_ENABLE_PIN PC3
|
||||
#ifndef Z_STEP_PIN
|
||||
#define Z_STEP_PIN PB6
|
||||
#endif
|
||||
#ifndef Z_DIR_PIN
|
||||
#define Z_DIR_PIN PB5
|
||||
#endif
|
||||
|
||||
#define E0_ENABLE_PIN PC3
|
||||
#ifndef E0_STEP_PIN
|
||||
#define E0_STEP_PIN PB4
|
||||
#endif
|
||||
#ifndef E0_DIR_PIN
|
||||
#define E0_DIR_PIN PB3
|
||||
#endif
|
||||
|
||||
//
|
||||
// Release PB4 (Y_ENABLE_PIN) from JTAG NRST role
|
||||
//
|
||||
#define DISABLE_DEBUG
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN PC5 // TH1
|
||||
#define TEMP_BED_PIN PC4 // TB1
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN PA0 // HEATER1
|
||||
#define HEATER_BED_PIN PA1 // HOT BED
|
||||
|
||||
#define FAN_PIN PA2 // FAN
|
||||
#define FAN_SOFT_PWM
|
||||
|
||||
//
|
||||
// SD Card
|
||||
//
|
||||
#define SD_DETECT_PIN PC7
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
#define ONBOARD_SPI_DEVICE 1
|
||||
#define ONBOARD_SD_CS_PIN PA4 // SDSS
|
||||
#define SDIO_SUPPORT
|
||||
#define NO_SD_HOST_DRIVE // This board's SD is only seen by the printer
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY) && NONE(RET6_12864_LCD, VET6_12864_LCD)
|
||||
#error "Define RET6_12864_LCD or VET6_12864_LCD to select pins for CR10_STOCKDISPLAY with the Creality V4 controller."
|
||||
#endif
|
||||
|
||||
#if ENABLED(RET6_12864_LCD)
|
||||
|
||||
// RET6 12864 LCD
|
||||
#define LCD_PINS_RS PB12
|
||||
#define LCD_PINS_ENABLE PB15
|
||||
#define LCD_PINS_D4 PB13
|
||||
|
||||
#define BTN_ENC PB2
|
||||
#define BTN_EN1 PB10
|
||||
#define BTN_EN2 PB14
|
||||
|
||||
#define BEEPER_PIN PC6
|
||||
|
||||
#elif ENABLED(VET6_12864_LCD)
|
||||
|
||||
// VET6 12864 LCD
|
||||
#define LCD_PINS_RS PA4
|
||||
#define LCD_PINS_ENABLE PA7
|
||||
#define LCD_PINS_D4 PA5
|
||||
|
||||
#define BTN_ENC PC5
|
||||
#define BTN_EN1 PB10
|
||||
#define BTN_EN2 PA6
|
||||
|
||||
#elif ENABLED(DWIN_CREALITY_LCD)
|
||||
|
||||
// RET6 DWIN ENCODER LCD
|
||||
#define BTN_ENC PB14
|
||||
#define BTN_EN1 PB15
|
||||
#define BTN_EN2 PB12
|
||||
|
||||
//#define LCD_LED_PIN PB2
|
||||
#ifndef BEEPER_PIN
|
||||
#define BEEPER_PIN PB13
|
||||
#undef SPEAKER
|
||||
#endif
|
||||
|
||||
#elif ENABLED(DWIN_VET6_CREALITY_LCD)
|
||||
|
||||
// VET6 DWIN ENCODER LCD
|
||||
#define BTN_ENC PA6
|
||||
#define BTN_EN1 PA7
|
||||
#define BTN_EN2 PA4
|
||||
|
||||
#define BEEPER_PIN PA5
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,44 @@
|
||||
/**
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* CREALITY v4.2.7 (STM32F103) board pin assignments
|
||||
*/
|
||||
|
||||
#define BOARD_INFO_NAME "Creality v4.2.7"
|
||||
#define DEFAULT_MACHINE_NAME "Creality3D"
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN PB9
|
||||
#define X_DIR_PIN PC2
|
||||
#define Y_STEP_PIN PB7
|
||||
|
||||
#define Y_DIR_PIN PB8
|
||||
#define Z_STEP_PIN PB5
|
||||
#define Z_DIR_PIN PB6
|
||||
|
||||
#define E0_STEP_PIN PB3
|
||||
#define E0_DIR_PIN PB4
|
||||
|
||||
#include "pins_CREALITY_V4.h"
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* CREALITY v4.3.1 (STM32F103) board pin assignments
|
||||
*/
|
||||
|
||||
#define BOARD_INFO_NAME "Creality v4.3.1"
|
||||
#define DEFAULT_MACHINE_NAME "Creality3D"
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN PB8
|
||||
#define X_DIR_PIN PB7
|
||||
|
||||
#define Y_STEP_PIN PC2
|
||||
#define Y_DIR_PIN PB9
|
||||
|
||||
#include "pins_CREALITY_V4.h"
|
||||
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Creality v4.5.2 (STM32F103RET6) board pin assignments
|
||||
*/
|
||||
|
||||
#if HOTENDS > 1 || E_STEPPERS > 1
|
||||
#error "Creality v4.5.2 only supports one hotend / E-stepper. Comment out this line to continue."
|
||||
#endif
|
||||
|
||||
#define BOARD_NAME "Creality v4.5.2"
|
||||
|
||||
#define HEATER_0_PIN PA1 // HEATER1
|
||||
#define HEATER_BED_PIN PA2 // HOT BED
|
||||
#define FAN_PIN PA0 // FAN
|
||||
#define PROBE_ACTIVATION_SWITCH_PIN PC6 // Optoswitch to Enable Z Probe
|
||||
|
||||
#include "pins_CREALITY_V45x.h"
|
||||
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Creality v4.5.3 (STM32F103RET6) board pin assignments
|
||||
*/
|
||||
|
||||
#if HOTENDS > 1 || E_STEPPERS > 1
|
||||
#error "Creality v4.5.3 only supports one hotend / E-stepper. Comment out this line to continue."
|
||||
#endif
|
||||
|
||||
#define BOARD_NAME "Creality v4.5.3"
|
||||
|
||||
#define HEATER_0_PIN PB14 // HEATER1
|
||||
#define HEATER_BED_PIN PB13 // HOT BED
|
||||
#define FAN_PIN PB15 // FAN
|
||||
#define PROBE_ACTIVATION_SWITCH_PIN PB2 // Optoswitch to Enable Z Probe
|
||||
|
||||
#include "pins_CREALITY_V45x.h"
|
||||
@@ -0,0 +1,111 @@
|
||||
/**
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Creality v4.5.2 and v4.5.3 (STM32F103RET6) board pin assignments
|
||||
*/
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
#define DEFAULT_MACHINE_NAME "Creality3D"
|
||||
|
||||
//
|
||||
// Release PB4 (Z_STEP_PIN) from JTAG NRST role
|
||||
//
|
||||
#define DISABLE_DEBUG
|
||||
|
||||
#define BOARD_NO_NATIVE_USB
|
||||
|
||||
//
|
||||
// EEPROM
|
||||
//
|
||||
#if NO_EEPROM_SELECTED
|
||||
#define IIC_BL24CXX_EEPROM // EEPROM on I2C-0
|
||||
//#define SDCARD_EEPROM_EMULATION
|
||||
#endif
|
||||
|
||||
#if ENABLED(IIC_BL24CXX_EEPROM)
|
||||
#define IIC_EEPROM_SDA PA11
|
||||
#define IIC_EEPROM_SCL PA12
|
||||
#define MARLIN_EEPROM_SIZE 0x800 // 2Kb (24C16)
|
||||
#elif ENABLED(SDCARD_EEPROM_EMULATION)
|
||||
#define MARLIN_EEPROM_SIZE 0x800 // 2Kb
|
||||
#endif
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN PC4
|
||||
#define Y_STOP_PIN PC5
|
||||
#define Z_STOP_PIN PA4
|
||||
|
||||
#define FIL_RUNOUT_PIN PA7
|
||||
|
||||
//
|
||||
// Probe
|
||||
//
|
||||
#define PROBE_TARE_PIN PA5
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_ENABLE_PIN PC3
|
||||
#define X_STEP_PIN PB8
|
||||
#define X_DIR_PIN PB7
|
||||
|
||||
#define Y_ENABLE_PIN PC3
|
||||
#define Y_STEP_PIN PB6
|
||||
#define Y_DIR_PIN PB5
|
||||
|
||||
#define Z_ENABLE_PIN PC3
|
||||
#define Z_STEP_PIN PB4
|
||||
#define Z_DIR_PIN PB3
|
||||
|
||||
#define E0_ENABLE_PIN PC3
|
||||
#define E0_STEP_PIN PC2
|
||||
#define E0_DIR_PIN PB9
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN PB1 // TH1
|
||||
#define TEMP_BED_PIN PB0 // TB1
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
|
||||
#define FAN_SOFT_PWM
|
||||
|
||||
//
|
||||
// SD Card
|
||||
//
|
||||
#define SD_DETECT_PIN PC7
|
||||
#define NO_SD_HOST_DRIVE // SD is only seen by the printer
|
||||
|
||||
#define SDIO_SUPPORT // Extra added by Creality
|
||||
#define SDIO_CLOCK 6000000 // In original source code overridden by Creality in sdio.h
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define CASE_LIGHT_PIN PA6
|
||||
@@ -0,0 +1,138 @@
|
||||
/**
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
/**
|
||||
* 21017 Victor Perez Marlin for stm32f1 test
|
||||
*/
|
||||
|
||||
#define BOARD_INFO_NAME "Misc. STM32F1R"
|
||||
#define DEFAULT_MACHINE_NAME "STM32F103RET6"
|
||||
|
||||
// Ignore temp readings during development.
|
||||
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN PB3
|
||||
#define Y_STOP_PIN PB4
|
||||
#define Z_STOP_PIN PB5
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN PC0
|
||||
#define X_DIR_PIN PC1
|
||||
#define X_ENABLE_PIN PA8
|
||||
|
||||
#define Y_STEP_PIN PC2
|
||||
#define Y_DIR_PIN PC3
|
||||
#define Y_ENABLE_PIN PA8
|
||||
|
||||
#define Z_STEP_PIN PC4
|
||||
#define Z_DIR_PIN PC5
|
||||
#define Z_ENABLE_PIN PA8
|
||||
|
||||
#define E0_STEP_PIN PC6
|
||||
#define E0_DIR_PIN PC7
|
||||
#define E0_ENABLE_PIN PA8
|
||||
|
||||
/**
|
||||
* TODO: Currently using same Enable pin to all steppers.
|
||||
*/
|
||||
|
||||
#define E1_STEP_PIN PC8
|
||||
#define E1_DIR_PIN PC9
|
||||
#define E1_ENABLE_PIN PA8
|
||||
|
||||
#define E2_STEP_PIN PC10
|
||||
#define E2_DIR_PIN PC11
|
||||
#define E2_ENABLE_PIN PA8
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define SDSS PA4
|
||||
#define LED_PIN PD2
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN PB0 // EXTRUDER 1
|
||||
#define HEATER_1_PIN PB1
|
||||
|
||||
#define HEATER_BED_PIN PA3 // BED
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_BED_PIN PA0 // Analog Input
|
||||
#define TEMP_0_PIN PA1 // Analog Input
|
||||
#define TEMP_1_PIN PA2 // Analog Input
|
||||
|
||||
//
|
||||
// LCD Pins
|
||||
//
|
||||
#if HAS_WIRED_LCD
|
||||
|
||||
#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
|
||||
#error "REPRAPWORLD_GRAPHICAL_LCD is not supported."
|
||||
#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 !IS_NEWPANEL
|
||||
#error "Non-NEWPANEL LCD is not supported."
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if IS_NEWPANEL
|
||||
#if IS_RRD_SC
|
||||
#error "RRD Smart Controller is not supported."
|
||||
#elif ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
|
||||
#error "REPRAPWORLD_GRAPHICAL_LCD is not supported."
|
||||
#elif ENABLED(LCD_I2C_PANELOLU2)
|
||||
#error "LCD_I2C_PANELOLU2 is not supported."
|
||||
#elif ENABLED(LCD_I2C_VIKI)
|
||||
#error "LCD_I2C_VIKI is not supported."
|
||||
#elif ANY(VIKI2, miniVIKI)
|
||||
#error "VIKI2 / miniVIKI is not supported."
|
||||
#elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
|
||||
#error "ELB_FULL_GRAPHIC_CONTROLLER is not supported."
|
||||
#elif ENABLED(MINIPANEL)
|
||||
#error "MINIPANEL is not supported."
|
||||
#else
|
||||
#error "Other generic NEWPANEL LCD is not supported."
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
|
||||
#endif
|
||||
|
||||
#endif // HAS_WIRED_LCD
|
||||
@@ -0,0 +1,199 @@
|
||||
/**
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* ANYCUBIC Trigorilla Pro (STM32F130ZET6) board pin assignments.
|
||||
* It is the same used by the Tronxy X5SA thanks to ftoz1 for sharing it
|
||||
* https://github.com/MarlinFirmware/Marlin/issues/14655
|
||||
* https://github.com/MarlinFirmware/Marlin/files/3401484/x5sa-main_board-2.pdf
|
||||
*/
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "Trigorilla Pro supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "Trigorilla Pro"
|
||||
|
||||
#define BOARD_NO_NATIVE_USB
|
||||
|
||||
#define DISABLE_JTAG
|
||||
|
||||
//#define SWAPPED_Z_PLUGS
|
||||
|
||||
//
|
||||
// EEPROM
|
||||
//
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
#if ENABLED(FLASH_EEPROM_EMULATION)
|
||||
// SoC Flash (framework-arduinoststm32-maple/STM32F1/libraries/EEPROM/EEPROM.h)
|
||||
#define EEPROM_START_ADDRESS (0x8000000UL + (512 * 1024) - 2 * EEPROM_PAGE_SIZE)
|
||||
#define EEPROM_PAGE_SIZE (0x800U) // 2KB, but will use 2x more (4KB)
|
||||
#define MARLIN_EEPROM_SIZE EEPROM_PAGE_SIZE
|
||||
#else
|
||||
#define MARLIN_EEPROM_SIZE (0x800U) // On SD, Limit to 2KB, require this amount of RAM
|
||||
#endif
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN PG10
|
||||
#define Y_STOP_PIN PA12
|
||||
#ifndef Z_MIN_PIN
|
||||
#ifdef SWAPPED_Z_PLUGS
|
||||
#define Z_MIN_PIN PA14
|
||||
#else
|
||||
#define Z_MIN_PIN PA13
|
||||
#endif
|
||||
#endif
|
||||
#ifndef Z_MAX_PIN
|
||||
#ifdef SWAPPED_Z_PLUGS
|
||||
#define Z_MAX_PIN PA13
|
||||
#else
|
||||
#define Z_MAX_PIN PA14
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_ENABLE_PIN PC13
|
||||
#define X_STEP_PIN PE5
|
||||
#define X_DIR_PIN PE6
|
||||
|
||||
#define Y_ENABLE_PIN PE4
|
||||
#define Y_STEP_PIN PE2
|
||||
#define Y_DIR_PIN PE3
|
||||
|
||||
#define Z_ENABLE_PIN PE1
|
||||
#define Z_STEP_PIN PB9
|
||||
#define Z_DIR_PIN PE0
|
||||
|
||||
#define E0_ENABLE_PIN PB8
|
||||
#define E0_STEP_PIN PB4
|
||||
#define E0_DIR_PIN PB5
|
||||
|
||||
#define E1_ENABLE_PIN PG8
|
||||
#define E1_STEP_PIN PC7
|
||||
#define E1_DIR_PIN PC6
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN PA1 // TH1
|
||||
#define TEMP_BED_PIN PA0 // TB1
|
||||
|
||||
//
|
||||
// Heaters
|
||||
//
|
||||
#define HEATER_0_PIN PG12 // HEATER1
|
||||
#define HEATER_BED_PIN PG11 // HOT BED
|
||||
#define HEATER_BED_INVERTING true
|
||||
|
||||
//
|
||||
// Fans
|
||||
//
|
||||
#define CONTROLLER_FAN_PIN PD6 // FAN
|
||||
#define FAN_PIN PG13 // FAN
|
||||
#define FAN1_PIN PG14 // FAN
|
||||
|
||||
//
|
||||
// Misc
|
||||
//
|
||||
#define BEEPER_PIN PB0
|
||||
#define LED_PIN PD3
|
||||
//#define POWER_LOSS_PIN PG2 // PG4 PW_DET
|
||||
#define FIL_RUNOUT_PIN PA15 // MT_DET
|
||||
|
||||
/**
|
||||
* Note: MKS Robin TFT screens use various TFT controllers
|
||||
* Supported screens are based on the ILI9341, ST7789V and ILI9328 (320x240)
|
||||
* ILI9488 is not supported.
|
||||
* Define init sequences for other screens in u8g_dev_tft_320x240_upscale_from_128x64.cpp
|
||||
*
|
||||
* If the screen stays white, disable 'LCD_RESET_PIN' to let the bootloader init the screen.
|
||||
*
|
||||
* Setting an 'LCD_RESET_PIN' may cause a flicker when entering the LCD menu
|
||||
* because Marlin uses the reset as a failsafe to revive a glitchy LCD.
|
||||
*/
|
||||
#if HAS_FSMC_TFT
|
||||
#define TFT_RESET_PIN PF11
|
||||
#define TFT_BACKLIGHT_PIN PD13
|
||||
#define FSMC_CS_PIN PD7 // NE4
|
||||
#define FSMC_RS_PIN PD11 // A0
|
||||
|
||||
#define LCD_USE_DMA_FSMC // Use DMA transfers to send data to the TFT
|
||||
#define FSMC_DMA_DEV DMA2
|
||||
#define FSMC_DMA_CHANNEL DMA_CH5
|
||||
|
||||
#define ANYCUBIC_TFT35
|
||||
#else
|
||||
#define LCD_RESET_PIN PF11
|
||||
#define LCD_BACKLIGHT_PIN PD13
|
||||
#endif
|
||||
|
||||
// XPT2046 Touch Screen calibration
|
||||
#if ANY(TFT_COLOR_UI, TFT_LVGL_UI, TFT_CLASSIC_UI)
|
||||
#ifndef TOUCH_CALIBRATION_X
|
||||
#define TOUCH_CALIBRATION_X -17181
|
||||
#endif
|
||||
#ifndef TOUCH_CALIBRATION_Y
|
||||
#define TOUCH_CALIBRATION_Y 11434
|
||||
#endif
|
||||
#ifndef TOUCH_OFFSET_X
|
||||
#define TOUCH_OFFSET_X 501
|
||||
#endif
|
||||
#ifndef TOUCH_OFFSET_Y
|
||||
#define TOUCH_OFFSET_Y -9
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if NEED_TOUCH_PINS
|
||||
#define TOUCH_CS_PIN PB7 // SPI2_NSS
|
||||
#define TOUCH_SCK_PIN PA5 // SPI2_SCK
|
||||
#define TOUCH_MISO_PIN PA6 // SPI2_MISO
|
||||
#define TOUCH_MOSI_PIN PA7 // SPI2_MOSI
|
||||
#endif
|
||||
|
||||
// SPI1(PA7) & SPI3(PB5) not available
|
||||
#define SPI_DEVICE 2
|
||||
|
||||
#if ENABLED(SDIO_SUPPORT)
|
||||
#define SD_SCK_PIN PB13 // SPI2 ok
|
||||
#define SD_MISO_PIN PB14 // SPI2 ok
|
||||
#define SD_MOSI_PIN PB15 // SPI2 ok
|
||||
#define SD_SS_PIN PC11 // PB12 is X- ok
|
||||
#define SD_DETECT_PIN -1 // SD_CD ok
|
||||
#else
|
||||
// SD as custom software SPI (SDIO pins)
|
||||
#define SD_SCK_PIN PC12
|
||||
#define SD_MISO_PIN PC8
|
||||
#define SD_MOSI_PIN PD2
|
||||
#define SD_SS_PIN -1
|
||||
#define ONBOARD_SD_CS_PIN PC11
|
||||
#define SDSS PD2
|
||||
#define SD_DETECT_PIN -1
|
||||
#endif
|
||||
|
||||
#undef SWAPPED_Z_PLUGS
|
||||
Reference in New Issue
Block a user