Skip to content

Commit

Permalink
Add more FLY motherboards
Browse files Browse the repository at this point in the history
add FLY_D5,  FLY_DP5,  FLY_D7,  FLY_D8_PRO,  FLY_SUPER8_PRO,  FLY_CDY_3 BOARD
  • Loading branch information
FLYmaker committed Dec 21, 2024
1 parent 852e197 commit 1e0f1d7
Show file tree
Hide file tree
Showing 44 changed files with 7,955 additions and 10 deletions.
8 changes: 7 additions & 1 deletion Marlin/src/core/boards.h
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@
#define BOARD_ADSK 3101 // Arduino DUE Shield Kit (ADSK)

//
// STM32 ARM Cortex-M0+
// STM32 ARM Cortex-M0/+
//

#define BOARD_BTT_EBB42_V1_1 4000 // BigTreeTech EBB42 V1.1 (STM32G0B1CB)
Expand All @@ -329,6 +329,9 @@
#define BOARD_BTT_MANTA_M8P_V1_0 4005 // BigTreeTech Manta M8P V1.0 (STM32G0B1VE)
#define BOARD_BTT_MANTA_M8P_V1_1 4006 // BigTreeTech Manta M8P V1.1 (STM32G0B1VE)
#define BOARD_BTT_SKRAT_V1_0 4007 // BigTreeTech SKRat V1.0 (STM32G0B1VE)
#define BOARD_FLY_D5 4008 // FLY_D5 (STM32F072RB)
#define BOARD_FLY_DP5 4009 // FLY_DP5 (STM32F072RB)
#define BOARD_FLY_D7 4010 // FLY_D7 (STM32F072RB)

//
// STM32 ARM Cortex-M3
Expand Down Expand Up @@ -475,6 +478,7 @@
#define BOARD_FLY_RRF_E3_V1 5253 // Fly RRF E3 V1.0 (STM32F407VG)
#define BOARD_FLY_SUPER8 5254 // Fly SUPER8 (STM32F407ZGT6)
#define BOARD_FLY_D8 5255 // FLY D8 (STM32F407VG)
#define BOARD_FLY_CDY_V3 5256 // FLY CDY V3 (STM32F407VGT6)

//
// Other ARM Cortex-M4
Expand All @@ -498,6 +502,8 @@
#define BOARD_BTT_KRAKEN_V1_0 6010 // BigTreeTech Kraken v1.0 (STM32H723ZG)
#define BOARD_TEENSY41 6011 // Teensy 4.1
#define BOARD_T41U5XBB 6012 // T41U5XBB Teensy 4.1 breakout board
#define BOARD_FLY_D8_PRO 6013 // FLY_D8_PRO (STM32H723VG)
#define BOARD_FLY_SUPER8_PRO 6014 // FLY SUPER8 PRO (STM32H723ZG)

//
// Espressif ESP32 WiFi
Expand Down
14 changes: 13 additions & 1 deletion Marlin/src/pins/pins.h
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,12 @@
#include "stm32f0/pins_MALYAN_M200_V2.h" // STM32F0 env:STM32F070RB_malyan env:STM32F070CB_malyan
#elif MB(MALYAN_M300)
#include "stm32f0/pins_MALYAN_M300.h" // STM32F0 env:malyan_M300
#elif MB(FLY_D5)
#include "stm32f0/pins_FLY_D5.h" // STM32F0 env:FLY_D5
#elif MB(FLY_DP5)
#include "stm32f0/pins_FLY_DP5.h" // STM32F0 env:FLY_D5
#elif MB(FLY_D7)
#include "stm32f0/pins_FLY_D7.h" // STM32F0 env:FLY_D7

//
// STM32 ARM Cortex-M3
Expand Down Expand Up @@ -846,9 +852,11 @@
#elif MB(FLY_RRF_E3_V1)
#include "stm32f4/pins_FLY_RRF_E3_V1.h" // STM32F4 env:FLY_RRF_E3_V1
#elif MB(FLY_SUPER8)
#include "stm32f4/pins_FLY_SUPER8.h" // STM32F4 env:SUPER8
#include "stm32f4/pins_FLY_SUPER8.h" // STM32F4 env:FLY_SUPER8
#elif MB(FLY_D8)
#include "stm32f4/pins_FLY_D8.h" // STM32F4 env:FLY_D8
#elif MB(FLY_CDY_V3)
#include "stm32f4/pins_FLY_CDY_V3.h" // STM32F4 env:FLY_CDY_V3

//
// Other ARM Cortex-M4
Expand Down Expand Up @@ -887,6 +895,10 @@
#include "teensy4/pins_TEENSY41.h" // Teensy-4.x env:teensy41
#elif MB(T41U5XBB)
#include "teensy4/pins_T41U5XBB.h" // Teensy-4.x env:teensy41
#elif MB(FLY_D8_PRO)
#include "stm32h7/pins_FLY_D8_PRO.h" // STM32H7 env:FLY_D8_PRO
#elif MB(FLY_SUPER8_PRO)
#include "stm32h7/pins_FLY_SUPER8_PRO.h" // STM32H7 env:FLY_SUPER8_PRO

//
// Espressif ESP32
Expand Down
199 changes: 199 additions & 0 deletions Marlin/src/pins/stm32f0/pins_FLY_D5.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2024 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__, STM32F1xx, STM32F0xx)
// #error "Oops! Select a 'Malyan M300' board in 'Tools > Board.'"
// #endif

#define BOARD_INFO_NAME "FLY_D5"

//
// EEPROM Emulation
//
#if NO_EEPROM_SELECTED
#define FLASH_EEPROM_EMULATION
#ifndef MARLIN_EEPROM_SIZE
#define MARLIN_EEPROM_SIZE 0x800U // 2K
#endif
#endif


//
// Timers
//
#define STEP_TIMER 6
#define TEMP_TIMER 7

//
// Limit Switches
//
#define X_STOP_PIN PB4
#define Y_STOP_PIN PB3
#define Z_STOP_PIN PD2
//
// Steppers
//
#define X_STEP_PIN PC15
#define X_DIR_PIN PC14
#define X_ENABLE_PIN PC2
#ifndef X_CS_PIN
#define X_CS_PIN PC13
#endif

#define Y_STEP_PIN PA1
#define Y_DIR_PIN PA0
#define Y_ENABLE_PIN PA2
#ifndef Y_CS_PIN
#define Y_CS_PIN PC3
#endif

#define Z_STEP_PIN PA5
#define Z_DIR_PIN PA4
#define Z_ENABLE_PIN PA6
#ifndef Z_CS_PIN
#define Z_CS_PIN PA3
#endif

#define E0_STEP_PIN PC5
#define E0_DIR_PIN PC4
#define E0_ENABLE_PIN PB0
#ifndef E0_CS_PIN
#define E0_CS_PIN PA7
#endif

#define E1_STEP_PIN PB10
#define E1_DIR_PIN PB2
#define E1_ENABLE_PIN PB11
#ifndef E1_CS_PIN
#define E1_CS_PIN PB1
#endif
//
// Trinamic SPI
//
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK EXP2_02_PIN
#endif
#ifndef TMC_SPI_MISO
#define TMC_SPI_MISO EXP2_01_PIN
#endif
#ifndef TMC_SPI_MOSI
#define TMC_SPI_MOSI EXP2_06_PIN
#endif

//
// Trinamic Software Serial
//

#if HAS_TMC_UART
#define X_SERIAL_TX_PIN PC13
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN

#define Y_SERIAL_TX_PIN PC3
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN

#define Z_SERIAL_TX_PIN PA3
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN

#define E0_SERIAL_TX_PIN PA7
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN

#define E1_SERIAL_TX_PIN PB1
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
#endif

//
// Temperature Sensors
//
#define TEMP_0_PIN PC1 // Analog Input (HOTEND0 thermistor)
#define TEMP_BED_PIN PC0 // Analog Input (BED thermistor)

//
// Heaters / Fans
//
#define HEATER_0_PIN PC6 // HOTEND0 MOSFET
#define HEATER_BED_PIN PC7 // BED MOSFET

#ifndef FAN0_PIN
#define FAN0_PIN PC8
#endif
#define FAN1_PIN PC9


/**
* ------ ------
* NC | 1 2 | PA15 PB14 | 1 2 | PB13
* PC11 | 3 4 | PA14 PC12 | 3 4 | PB12
* PC10 | 5 6 | PA13 PB6 | 5 6 | PB15
* NC | 7 8 | NC PB7 | 7 8 | RESET
* GND | 9 10 | 5V GND | 9 10 | --
* ------ ------
* EXP1 EXP2
*/
#define EXP1_01_PIN NC
#define EXP1_02_PIN PA15
#define EXP1_03_PIN PC11
#define EXP1_04_PIN PA14
#define EXP1_05_PIN PC10
#define EXP1_06_PIN PA13
#define EXP1_07_PIN NC
#define EXP1_08_PIN NC

#define EXP2_01_PIN PB14
#define EXP2_02_PIN PB13
#define EXP2_03_PIN PC12
#define EXP2_04_PIN PB12
#define EXP2_05_PIN PB6
#define EXP2_06_PIN PB15
#define EXP2_07_PIN PB7
#define EXP2_08_PIN -1 // RESET


//
// Onboard SD support
//
#ifndef SDCARD_CONNECTION
#define SDCARD_CONNECTION ONBOARD
#endif

#if ENABLED(SDSUPPORT)

#define SD_SCK_PIN EXP2_02_PIN
#define SD_MISO_PIN EXP2_01_PIN
#define SD_MOSI_PIN EXP2_06_PIN
#define SDSS EXP2_04_PIN
#define SD_DETECT_PIN EXP2_07_PIN

#endif

//
// Filament runout
//

#define FIL_RUNOUT_PIN PA3

// Alter timing for graphical display
#if IS_U8GLIB_ST7920
#define BOARD_ST7920_DELAY_1 96
#define BOARD_ST7920_DELAY_2 48
#define BOARD_ST7920_DELAY_3 715
#endif
Loading

0 comments on commit 1e0f1d7

Please sign in to comment.