2019-06-26 07:40:29 +02:00
|
|
|
/**
|
|
|
|
* Marlin 3D Printer Firmware
|
2019-07-01 05:29:33 +02:00
|
|
|
* Copyright (c) 2019 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
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
2019-07-05 05:44:12 +02:00
|
|
|
#pragma once
|
2019-06-26 07:40:29 +02:00
|
|
|
|
|
|
|
#ifndef __STM32F1__
|
|
|
|
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define DEFAULT_MACHINE_NAME "3D Printer"
|
|
|
|
|
2019-07-10 04:29:14 +02:00
|
|
|
#define BOARD_NAME "FYSETC Cheetah"
|
2019-06-26 07:40:29 +02:00
|
|
|
#define BOARD_WEBSITE_URL "https://fysetc.com"
|
|
|
|
|
2019-07-10 04:35:07 +02:00
|
|
|
// Ignore temp readings during development.
|
|
|
|
//#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
|
|
|
|
|
2019-08-11 02:14:31 +02:00
|
|
|
#define FLASH_EEPROM_EMULATION
|
|
|
|
#define EEPROM_PAGE_SIZE uint16(0x800) // 2KB
|
|
|
|
#define EEPROM_START_ADDRESS uint32(0x8000000 + 256 * 1024 - 2 * EEPROM_PAGE_SIZE)
|
|
|
|
#undef E2END
|
|
|
|
#define E2END (EEPROM_PAGE_SIZE - 1) // 2KB
|
|
|
|
|
2019-06-26 07:40:29 +02:00
|
|
|
//
|
|
|
|
// Servos
|
|
|
|
//
|
|
|
|
#define SERVO0_PIN PA0
|
|
|
|
|
|
|
|
//
|
|
|
|
// Limit Switches
|
|
|
|
//
|
|
|
|
#define X_STOP_PIN PA1
|
|
|
|
#define Y_STOP_PIN PB4
|
|
|
|
#define Z_STOP_PIN PA15
|
|
|
|
|
|
|
|
//
|
|
|
|
// Filament runout
|
|
|
|
//
|
|
|
|
#define FIL_RUNOUT_PIN PB5
|
|
|
|
|
|
|
|
//
|
|
|
|
// Steppers
|
|
|
|
//
|
|
|
|
#define X_STEP_PIN PB8
|
|
|
|
#define X_DIR_PIN PB9
|
|
|
|
#define X_ENABLE_PIN PA8
|
|
|
|
|
|
|
|
#define Y_STEP_PIN PB2
|
|
|
|
#define Y_DIR_PIN PB3
|
|
|
|
#define Y_ENABLE_PIN PB1
|
|
|
|
|
|
|
|
#define Z_STEP_PIN PC0
|
|
|
|
#define Z_DIR_PIN PC1
|
|
|
|
#define Z_ENABLE_PIN PC2
|
|
|
|
|
|
|
|
#define E0_STEP_PIN PC15
|
|
|
|
#define E0_DIR_PIN PC14
|
|
|
|
#define E0_ENABLE_PIN PC13
|
|
|
|
|
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
|
|
|
|
//
|
|
|
|
#define HEATER_0_PIN PC6
|
|
|
|
#define HEATER_BED_PIN PC7
|
|
|
|
#ifndef FAN_PIN
|
|
|
|
#define FAN_PIN PC8
|
|
|
|
#endif
|
|
|
|
|
|
|
|
//
|
|
|
|
// Temperature Sensors
|
|
|
|
//
|
|
|
|
#define TEMP_BED_PIN PC5 // Analog Input
|
|
|
|
#define TEMP_0_PIN PC4 // Analog Input
|
|
|
|
|
|
|
|
//
|
|
|
|
// Misc. Functions
|
|
|
|
//
|
|
|
|
#define SDSS PA4
|
|
|
|
|
|
|
|
//
|
|
|
|
// LCD Pins
|
|
|
|
//
|
2019-06-28 05:14:43 +02:00
|
|
|
#if HAS_SPI_LCD
|
2019-06-26 07:40:29 +02:00
|
|
|
|
|
|
|
#define BEEPER_PIN PC9
|
|
|
|
|
|
|
|
#if HAS_GRAPHICAL_LCD
|
|
|
|
#define DOGLCD_A0 PB14
|
|
|
|
#define DOGLCD_CS PB12
|
|
|
|
#define DOGLCD_SCK PB13
|
|
|
|
#define DOGLCD_MOSI PB15
|
|
|
|
//#define LCD_SCREEN_ROT_90
|
|
|
|
//#define LCD_SCREEN_ROT_180
|
|
|
|
//#define LCD_SCREEN_ROT_270
|
|
|
|
|
|
|
|
#if ENABLED(FYSETC_MINI_12864) || ENABLED(U8GLIB_ST7920)
|
|
|
|
#define FORCE_SOFT_SPI
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define LCD_PINS_RS PB12 // CS -- SOFT SPI for ENDER3 LCD
|
|
|
|
#define LCD_PINS_D4 PB13 // SCLK
|
|
|
|
#define LCD_PINS_ENABLE PB15 // DATA MOSI
|
|
|
|
|
|
|
|
// not connected to a pin
|
|
|
|
#define SD_DETECT_PIN PC3
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
|
|
|
//#define LCD_CONTRAST 190
|
|
|
|
|
|
|
|
#if ENABLED(NEWPANEL)
|
|
|
|
#define BTN_EN1 PC11
|
|
|
|
#define BTN_EN2 PC10
|
|
|
|
#define BTN_ENC PC12
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|