2019-06-26 00:40:29 -05:00
|
|
|
/**
|
|
|
|
* Marlin 3D Printer Firmware
|
2020-02-03 08:00:57 -06:00
|
|
|
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
2019-06-26 00:40:29 -05:00
|
|
|
*
|
|
|
|
* Based on Sprinter and grbl.
|
2019-06-27 23:57:50 -05:00
|
|
|
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
2019-06-26 00:40:29 -05: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-22 22:20:14 -05:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2019-06-26 00:40:29 -05:00
|
|
|
*
|
|
|
|
*/
|
2019-07-04 22:44:12 -05:00
|
|
|
#pragma once
|
2019-06-26 00:40:29 -05:00
|
|
|
|
2020-09-23 15:06:36 -05:00
|
|
|
#if NOT_TARGET(__STM32F1__)
|
2019-06-26 00:40:29 -05:00
|
|
|
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
|
|
|
|
#endif
|
|
|
|
|
2019-08-20 19:08:58 -05:00
|
|
|
#define BOARD_INFO_NAME "FYSETC AIO II"
|
2019-08-22 18:17:13 -05:00
|
|
|
#define BOARD_WEBSITE_URL "fysetc.com"
|
2019-06-26 00:40:29 -05:00
|
|
|
|
2019-07-18 05:54:50 -05:00
|
|
|
#define DISABLE_JTAG
|
|
|
|
|
2020-06-28 00:12:22 -05:00
|
|
|
#define pins_v2_20190128 // new pins define
|
2019-06-26 00:40:29 -05:00
|
|
|
|
2019-07-09 21:35:07 -05:00
|
|
|
// Ignore temp readings during development.
|
2020-08-22 01:22:14 -05:00
|
|
|
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
|
2019-06-26 00:40:29 -05:00
|
|
|
|
2019-09-04 13:06:23 -05:00
|
|
|
//
|
|
|
|
// Flash EEPROM Emulation
|
2019-09-04 21:40:40 -05:00
|
|
|
//
|
2020-04-29 14:46:33 -05:00
|
|
|
#if EITHER(NO_EEPROM_SELECTED, FLASH_EEPROM_EMULATION)
|
|
|
|
#define FLASH_EEPROM_EMULATION
|
2020-06-28 00:12:22 -05:00
|
|
|
#define EEPROM_PAGE_SIZE (0x800U) // 2KB
|
2020-04-29 14:46:33 -05:00
|
|
|
#define EEPROM_START_ADDRESS (0x8000000UL + (STM32_FLASH_SIZE) * 1024UL - (EEPROM_PAGE_SIZE) * 2UL)
|
2020-05-22 02:15:40 -05:00
|
|
|
#define MARLIN_EEPROM_SIZE EEPROM_PAGE_SIZE // 2KB
|
2020-04-29 14:46:33 -05:00
|
|
|
#endif
|
2020-04-16 15:34:44 -05:00
|
|
|
|
2019-06-26 00:40:29 -05:00
|
|
|
//
|
|
|
|
// Limit Switches
|
|
|
|
//
|
2020-03-21 21:13:19 -05:00
|
|
|
#define X_STOP_PIN PA1
|
|
|
|
#define Y_STOP_PIN PA0
|
|
|
|
#define Z_STOP_PIN PB14
|
2019-06-26 00:40:29 -05:00
|
|
|
|
|
|
|
//
|
|
|
|
// Filament runout
|
|
|
|
//
|
|
|
|
#ifdef pins_v2_20190128
|
2020-03-21 21:13:19 -05:00
|
|
|
#define FIL_RUNOUT_PIN PB15
|
2019-06-26 00:40:29 -05:00
|
|
|
#else
|
2020-03-21 21:13:19 -05:00
|
|
|
#define FIL_RUNOUT_PIN PB5
|
2019-06-26 00:40:29 -05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
//
|
|
|
|
// Steppers
|
|
|
|
//
|
2020-03-21 21:13:19 -05:00
|
|
|
#define X_STEP_PIN PB8
|
|
|
|
#define X_DIR_PIN PB9
|
|
|
|
#define X_ENABLE_PIN PA8
|
2019-06-26 00:40:29 -05:00
|
|
|
|
2020-03-21 21:13:19 -05:00
|
|
|
#define Y_STEP_PIN PB2
|
2019-06-26 00:40:29 -05:00
|
|
|
#ifdef pins_v2_20190128
|
2020-03-21 21:13:19 -05:00
|
|
|
#define Y_DIR_PIN PB3
|
2019-06-26 00:40:29 -05:00
|
|
|
#else
|
2020-03-21 21:13:19 -05:00
|
|
|
#define Y_DIR_PIN PB0
|
2019-06-26 00:40:29 -05:00
|
|
|
#endif
|
2020-03-21 21:13:19 -05:00
|
|
|
#define Y_ENABLE_PIN PB1
|
2019-06-26 00:40:29 -05:00
|
|
|
|
2020-03-21 21:13:19 -05:00
|
|
|
#define Z_STEP_PIN PC0
|
|
|
|
#define Z_DIR_PIN PC1
|
|
|
|
#define Z_ENABLE_PIN PC2
|
2019-06-26 00:40:29 -05:00
|
|
|
|
2020-03-21 21:13:19 -05:00
|
|
|
#define E0_STEP_PIN PC15
|
|
|
|
#define E0_DIR_PIN PC14
|
|
|
|
#define E0_ENABLE_PIN PC13
|
2019-06-26 00:40:29 -05:00
|
|
|
|
2020-07-23 20:01:50 -05:00
|
|
|
#if HAS_TMC_UART
|
2020-05-25 15:48:33 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* TMC2208/TMC2209 stepper drivers
|
|
|
|
*/
|
|
|
|
|
|
|
|
//
|
|
|
|
// Hardware serial with switch
|
|
|
|
//
|
2020-09-23 19:45:33 -05:00
|
|
|
#define X_HARDWARE_SERIAL MSerial1
|
|
|
|
#define Y_HARDWARE_SERIAL MSerial1
|
|
|
|
#define Z_HARDWARE_SERIAL MSerial1
|
|
|
|
#define E0_HARDWARE_SERIAL MSerial1
|
2020-07-23 20:01:50 -05:00
|
|
|
|
|
|
|
// The 4xTMC2209 module doesn't have a serial multiplexer and
|
|
|
|
// needs to set *_SLAVE_ADDRESS in Configuration_adv.h for X,Y,Z,E0
|
|
|
|
#if HAS_DRIVER(TMC2208)
|
|
|
|
#define TMC_SERIAL_MULTIPLEXER
|
|
|
|
#define SERIAL_MUL_PIN1 PB13
|
|
|
|
#define SERIAL_MUL_PIN2 PB12
|
|
|
|
#endif
|
2020-05-25 15:48:33 -05:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2019-06-26 00:40:29 -05:00
|
|
|
//
|
|
|
|
// Stepper current PWM
|
|
|
|
//
|
|
|
|
#ifndef MOTOR_CURRENT_PWM_RANGE
|
2020-08-22 01:22:14 -05:00
|
|
|
#define MOTOR_CURRENT_PWM_RANGE 1500 // origin:2000
|
2019-06-26 00:40:29 -05:00
|
|
|
#endif
|
2020-05-25 15:48:33 -05:00
|
|
|
#define DEFAULT_PWM_MOTOR_CURRENT { 500, 500, 400 } // origin: {1300,1300,1250}
|
2019-06-26 00:40:29 -05:00
|
|
|
|
|
|
|
//
|
|
|
|
// Heaters / Fans
|
|
|
|
//
|
2020-03-21 21:13:19 -05:00
|
|
|
#define HEATER_0_PIN PC7
|
|
|
|
#define HEATER_BED_PIN PC6
|
2019-06-26 00:40:29 -05:00
|
|
|
#ifndef FAN_PIN
|
2020-03-21 21:13:19 -05:00
|
|
|
#define FAN_PIN PC8
|
2019-06-26 00:40:29 -05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
//
|
|
|
|
// Temperature Sensors
|
|
|
|
//
|
2020-03-21 21:13:19 -05:00
|
|
|
#define TEMP_BED_PIN PC5 // Analog Input
|
|
|
|
#define TEMP_0_PIN PC4 // Analog Input
|
2019-06-26 00:40:29 -05:00
|
|
|
|
|
|
|
//
|
|
|
|
// Misc. Functions
|
|
|
|
//
|
2020-03-21 21:13:19 -05:00
|
|
|
#define SDSS PA4
|
2019-06-26 00:40:29 -05:00
|
|
|
|
|
|
|
//
|
|
|
|
// LCD Pins
|
|
|
|
//
|
2020-09-28 01:13:27 -05:00
|
|
|
#if HAS_WIRED_LCD
|
2019-06-26 00:40:29 -05:00
|
|
|
|
2020-03-21 21:13:19 -05:00
|
|
|
#define BEEPER_PIN PC9
|
2019-06-26 00:40:29 -05:00
|
|
|
|
2020-09-28 01:13:27 -05:00
|
|
|
#if HAS_MARLINUI_U8GLIB
|
2019-06-26 00:40:29 -05:00
|
|
|
|
2020-03-21 21:13:19 -05:00
|
|
|
#define DOGLCD_A0 PA15
|
2019-06-26 00:40:29 -05:00
|
|
|
#ifdef pins_v2_20190128
|
2020-03-21 21:13:19 -05:00
|
|
|
#define DOGLCD_CS PB5
|
2019-06-26 00:40:29 -05:00
|
|
|
#else
|
2020-03-21 21:13:19 -05:00
|
|
|
#define DOGLCD_CS PB7
|
2019-06-26 00:40:29 -05:00
|
|
|
#endif
|
|
|
|
|
2020-08-22 01:22:14 -05:00
|
|
|
//#define LCD_CONTRAST_INIT 190
|
2019-06-26 00:40:29 -05:00
|
|
|
//#define LCD_SCREEN_ROT_90
|
|
|
|
//#define LCD_SCREEN_ROT_180
|
|
|
|
//#define LCD_SCREEN_ROT_270
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// not connected to a pin
|
2020-03-21 21:13:19 -05:00
|
|
|
#define SD_DETECT_PIN PC3
|
2019-06-26 00:40:29 -05:00
|
|
|
|
2020-10-15 03:00:27 -05:00
|
|
|
#if IS_NEWPANEL
|
2019-06-26 00:40:29 -05:00
|
|
|
// The encoder and click button
|
2020-03-21 21:13:19 -05:00
|
|
|
#define BTN_EN1 PC10
|
|
|
|
#define BTN_EN2 PC11
|
|
|
|
#define BTN_ENC PC12
|
2019-06-26 00:40:29 -05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef pins_v2_20190128
|
2020-03-21 21:13:19 -05:00
|
|
|
#define LCD_RESET_PIN PB4
|
2019-06-26 00:40:29 -05:00
|
|
|
#ifndef RGB_LED_R_PIN
|
2020-03-21 21:13:19 -05:00
|
|
|
#define RGB_LED_R_PIN PB0
|
2019-06-26 00:40:29 -05:00
|
|
|
#endif
|
|
|
|
#ifndef RGB_LED_G_PIN
|
2020-03-21 21:13:19 -05:00
|
|
|
#define RGB_LED_G_PIN PB6
|
2019-06-26 00:40:29 -05:00
|
|
|
#endif
|
|
|
|
#ifndef RGB_LED_B_PIN
|
2020-03-21 21:13:19 -05:00
|
|
|
#define RGB_LED_B_PIN PB7
|
2019-06-26 00:40:29 -05:00
|
|
|
#endif
|
|
|
|
#else
|
2020-03-21 21:13:19 -05:00
|
|
|
#define LCD_RESET_PIN PB6
|
2019-06-26 00:40:29 -05:00
|
|
|
#ifndef RGB_LED_R_PIN
|
2020-03-21 21:13:19 -05:00
|
|
|
#define RGB_LED_R_PIN PB3
|
2019-06-26 00:40:29 -05:00
|
|
|
#endif
|
|
|
|
#ifndef RGB_LED_G_PIN
|
2020-03-21 21:13:19 -05:00
|
|
|
#define RGB_LED_G_PIN PB4
|
2019-06-26 00:40:29 -05:00
|
|
|
#endif
|
|
|
|
#ifndef RGB_LED_B_PIN
|
2020-03-21 21:13:19 -05:00
|
|
|
#define RGB_LED_B_PIN PB5
|
2019-06-26 00:40:29 -05:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|