2019-06-26 07:40:29 +02:00
|
|
|
/**
|
|
|
|
* Marlin 3D Printer Firmware
|
2020-02-03 15:00:57 +01:00
|
|
|
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
2019-06-26 07:40:29 +02:00
|
|
|
*
|
|
|
|
* Based on Sprinter and grbl.
|
2019-06-28 06:57:50 +02:00
|
|
|
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
2019-06-26 07:40:29 +02:00
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2020-07-23 05:20:14 +02:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2019-06-26 07:40:29 +02:00
|
|
|
*
|
|
|
|
*/
|
2019-07-05 05:44:12 +02:00
|
|
|
#pragma once
|
2019-06-26 07:40:29 +02:00
|
|
|
|
2020-09-23 22:06:36 +02:00
|
|
|
#if NOT_TARGET(__STM32F1__)
|
2019-06-26 07:40:29 +02:00
|
|
|
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define DEFAULT_MACHINE_NAME "3D Printer"
|
|
|
|
|
2019-08-21 02:08:58 +02:00
|
|
|
#define BOARD_INFO_NAME "FYSETC Cheetah"
|
2019-08-23 01:17:13 +02:00
|
|
|
#define BOARD_WEBSITE_URL "fysetc.com"
|
2020-05-12 06:51:07 +02:00
|
|
|
// https://github.com/FYSETC/Cheetah
|
2019-06-26 07:40:29 +02:00
|
|
|
|
2019-07-10 04:35:07 +02:00
|
|
|
// Ignore temp readings during development.
|
2020-08-22 08:22:14 +02:00
|
|
|
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
|
2019-06-26 07:40:29 +02:00
|
|
|
|
2019-07-18 12:54:50 +02:00
|
|
|
#define DISABLE_JTAG
|
|
|
|
|
2020-04-29 21:46:33 +02:00
|
|
|
#if EITHER(NO_EEPROM_SELECTED, FLASH_EEPROM_EMULATION)
|
|
|
|
#define FLASH_EEPROM_EMULATION
|
2020-06-28 07:12:22 +02:00
|
|
|
#define EEPROM_PAGE_SIZE (0x800U) // 2KB
|
2020-04-29 21:46:33 +02:00
|
|
|
#define EEPROM_START_ADDRESS (0x8000000UL + (STM32_FLASH_SIZE) * 1024UL - (EEPROM_PAGE_SIZE) * 2UL)
|
2020-05-22 09:15:40 +02:00
|
|
|
#define MARLIN_EEPROM_SIZE EEPROM_PAGE_SIZE // 2KB
|
2020-04-29 21:46:33 +02:00
|
|
|
#endif
|
2019-08-11 02:14:31 +02:00
|
|
|
|
2019-06-26 07:40:29 +02:00
|
|
|
//
|
|
|
|
// Servos
|
|
|
|
//
|
2020-03-22 03:13:19 +01:00
|
|
|
#define SERVO0_PIN PA0
|
2019-06-26 07:40:29 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// Limit Switches
|
|
|
|
//
|
2020-03-22 03:13:19 +01:00
|
|
|
#define X_STOP_PIN PA1
|
|
|
|
#define Y_STOP_PIN PB4
|
|
|
|
#define Z_STOP_PIN PA15
|
2019-06-26 07:40:29 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// Filament runout
|
|
|
|
//
|
2020-03-22 03:13:19 +01:00
|
|
|
#define FIL_RUNOUT_PIN PB5
|
2019-06-26 07:40:29 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// Steppers
|
|
|
|
//
|
2020-03-22 03:13:19 +01:00
|
|
|
#define X_STEP_PIN PB8
|
|
|
|
#define X_DIR_PIN PB9
|
|
|
|
#define X_ENABLE_PIN PA8
|
2019-06-26 07:40:29 +02:00
|
|
|
|
2020-03-22 03:13:19 +01:00
|
|
|
#define Y_STEP_PIN PB2
|
|
|
|
#define Y_DIR_PIN PB3
|
|
|
|
#define Y_ENABLE_PIN PB1
|
2019-06-26 07:40:29 +02:00
|
|
|
|
2020-03-22 03:13:19 +01:00
|
|
|
#define Z_STEP_PIN PC0
|
|
|
|
#define Z_DIR_PIN PC1
|
|
|
|
#define Z_ENABLE_PIN PC2
|
2019-06-26 07:40:29 +02:00
|
|
|
|
2020-03-22 03:13:19 +01:00
|
|
|
#define E0_STEP_PIN PC15
|
|
|
|
#define E0_DIR_PIN PC14
|
|
|
|
#define E0_ENABLE_PIN PC13
|
2019-06-26 07:40:29 +02:00
|
|
|
|
2019-07-18 12:54:50 +02:00
|
|
|
#define X_HARDWARE_SERIAL MSerial2
|
2019-06-26 07:40:29 +02:00
|
|
|
#define Y_HARDWARE_SERIAL MSerial2
|
|
|
|
#define Z_HARDWARE_SERIAL MSerial2
|
|
|
|
#define E0_HARDWARE_SERIAL MSerial2
|
|
|
|
|
|
|
|
//
|
|
|
|
// Heaters / Fans
|
|
|
|
//
|
2020-03-22 03:13:19 +01:00
|
|
|
#define HEATER_0_PIN PC6
|
|
|
|
#define HEATER_BED_PIN PC7
|
2019-06-26 07:40:29 +02:00
|
|
|
#ifndef FAN_PIN
|
2020-03-22 03:13:19 +01:00
|
|
|
#define FAN_PIN PC8
|
2019-06-26 07:40:29 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
//
|
|
|
|
// Temperature Sensors
|
|
|
|
//
|
2020-03-22 03:13:19 +01:00
|
|
|
#define TEMP_BED_PIN PC5 // Analog Input
|
|
|
|
#define TEMP_0_PIN PC4 // Analog Input
|
2019-06-26 07:40:29 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// Misc. Functions
|
|
|
|
//
|
2020-03-22 03:13:19 +01:00
|
|
|
#define SDSS PA4
|
2020-05-12 06:51:07 +02:00
|
|
|
#define SD_DETECT_PIN PC3
|
2019-06-26 07:40:29 +02:00
|
|
|
|
2020-05-12 06:51:07 +02:00
|
|
|
#ifndef RGB_LED_R_PIN
|
|
|
|
#define RGB_LED_R_PIN PB0
|
|
|
|
#endif
|
|
|
|
#ifndef RGB_LED_G_PIN
|
|
|
|
#define RGB_LED_G_PIN PB7
|
|
|
|
#endif
|
|
|
|
#ifndef RGB_LED_B_PIN
|
|
|
|
#define RGB_LED_B_PIN PB6
|
|
|
|
#endif
|
2020-05-05 09:38:06 +02:00
|
|
|
|
2020-05-12 06:51:07 +02:00
|
|
|
/*
|
|
|
|
* EXP1 pinout for the LCD according to Fysetcs schematic for the Cheetah board
|
|
|
|
* _____
|
|
|
|
* (Beeper) PC9 | 1 2 | PC12 (BTN_ENC)
|
|
|
|
* (BTN_EN2) PC11 | 3 4 | PB14 (LCD_RS / MISO)
|
|
|
|
* (BTN_EN1) PC10 5 6 | PB13 (SCK)
|
|
|
|
* (LCD_EN) PB12 | 7 8 | PB15 (MOSI)
|
|
|
|
* GND | 9 10| 5V
|
|
|
|
* -----
|
|
|
|
* EXP1
|
|
|
|
* Note: The pin-numbers match the connector correctly and are not in reverse order like on the Ender-3 board.
|
|
|
|
* Note: Functionally the pins are assigned in the same order as on the Ender-3 board.
|
|
|
|
* Note: Pin 4 on the Cheetah board is assigned to an I/O, it is assigned to RESET on the Ender-3 board.
|
|
|
|
*/
|
2020-05-05 09:38:06 +02:00
|
|
|
|
2020-09-28 08:13:27 +02:00
|
|
|
#if HAS_WIRED_LCD
|
2020-05-12 06:51:07 +02:00
|
|
|
#define BEEPER_PIN PC9
|
2019-06-26 07:40:29 +02:00
|
|
|
|
2020-09-28 08:13:27 +02:00
|
|
|
#if HAS_MARLINUI_U8GLIB
|
2020-05-12 06:51:07 +02:00
|
|
|
#define DOGLCD_A0 PB14
|
|
|
|
#define DOGLCD_CS PB12
|
|
|
|
#define DOGLCD_SCK PB13
|
|
|
|
#define DOGLCD_MOSI PB15
|
2019-06-26 07:40:29 +02:00
|
|
|
//#define LCD_SCREEN_ROT_90
|
|
|
|
//#define LCD_SCREEN_ROT_180
|
|
|
|
//#define LCD_SCREEN_ROT_270
|
|
|
|
|
2019-09-02 06:43:38 +02:00
|
|
|
#if EITHER(FYSETC_MINI_12864, U8GLIB_ST7920)
|
2019-06-26 07:40:29 +02:00
|
|
|
#define FORCE_SOFT_SPI
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2020-05-12 06:51:07 +02:00
|
|
|
#define LCD_PINS_RS PB12 // CS -- SOFT SPI for ENDER3 LCD
|
|
|
|
#define LCD_PINS_D4 PB13 // SCLK
|
|
|
|
#define LCD_PINS_ENABLE PB15 // DATA MOSI
|
2019-06-26 07:40:29 +02:00
|
|
|
|
2020-08-22 08:22:14 +02:00
|
|
|
//#define LCD_CONTRAST_INIT 190
|
2019-06-26 07:40:29 +02:00
|
|
|
|
|
|
|
#if ENABLED(NEWPANEL)
|
2020-05-12 06:51:07 +02:00
|
|
|
#define BTN_EN1 PC10
|
|
|
|
#define BTN_EN2 PC11
|
|
|
|
#define BTN_ENC PC12
|
2019-06-26 07:40:29 +02:00
|
|
|
#endif
|
|
|
|
#endif
|
2020-05-05 09:38:06 +02:00
|
|
|
|
|
|
|
#if ENABLED(TOUCH_UI_FTDI_EVE)
|
2020-05-12 06:51:07 +02:00
|
|
|
#define BEEPER_PIN PC9
|
|
|
|
#define CLCD_MOD_RESET PC11
|
|
|
|
#define CLCD_SPI_CS PB12
|
2020-05-06 08:16:32 +02:00
|
|
|
|
2020-05-12 06:51:07 +02:00
|
|
|
//#define CLCD_USE_SOFT_SPI // the Cheetah can use hardware-SPI so we do not really need this
|
2020-05-05 09:38:06 +02:00
|
|
|
|
|
|
|
#if ENABLED(CLCD_USE_SOFT_SPI)
|
2020-05-12 06:51:07 +02:00
|
|
|
#define CLCD_SOFT_SPI_MOSI PB15
|
|
|
|
#define CLCD_SOFT_SPI_MISO PB14
|
|
|
|
#define CLCD_SOFT_SPI_SCLK PB13
|
|
|
|
#else
|
2020-08-22 08:22:14 +02:00
|
|
|
#define CLCD_SPI_BUS 2
|
2020-05-05 09:38:06 +02:00
|
|
|
#endif
|
|
|
|
#endif
|