Add Geeetech Rostock 301 config, update GTM32 Pro VB pins (#12345)

This commit is contained in:
Phr3d13 2018-11-05 23:42:06 -05:00 committed by Scott Lahteine
parent 04f173790f
commit a813900fce
3 changed files with 4106 additions and 24 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -24,13 +24,13 @@
#error "Oops! Make sure you have an STM32F1 board selected from the 'Tools -> Boards' menu."
#endif
/**
* 24.05.2018 Axel "chepo" Sepúlveda Marlin for (stm32f103vet6) sch of board https://github.com/chepo92/Smartto/blob/master/Rostock301/Hardware_GTM32_PRO_VB.pdf
*/
#define DEFAULT_MACHINE_NAME "STM32F103VET6"
#define BOARD_NAME "GTM32 Pro VB"
//#define DISABLE_DEBUG
//#define DISABLE_JTAG
//#define DISABLE_JTAGSWD
// Ignore temp readings during development.
#define BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE
@ -53,11 +53,11 @@
#define Y_STEP_PIN PA12
#define Y_DIR_PIN PA11
#define Y_ENABLE_PIN PA15 // core conflict?
#define Y_ENABLE_PIN PA15
#define Z_STEP_PIN PD6
#define Z_DIR_PIN PD3
#define Z_ENABLE_PIN PB3 // core conflict?
#define Z_ENABLE_PIN PB3
#define E0_STEP_PIN PC14
#define E0_DIR_PIN PC13
@ -71,29 +71,115 @@
#define E2_DIR_PIN PB11
#define E2_ENABLE_PIN PC4
//
// Temperature Sensors
//
#define TEMP_BED_PIN PC0
#define TEMP_0_PIN PC1
#define TEMP_1_PIN PC2
#define TEMP_2_PIN PC3
//
// Heaters / Fans
//
#define HEATER_0_PIN PB4 // EXTRUDER 1
#define HEATER_1_PIN PB5 // EXTRUDER 2
#define HEATER_2_PIN PB0 // EXTRUDER 3
#define HEATER_BED_PIN PB1 // BED
#define HEATER_0_PIN PB0
#define HEATER_BED_PIN PB1
#ifndef FAN_PIN
#define FAN_PIN PB7 // (Sprinter config)
#endif
#define FAN1_PIN PB8
#define FAN2_PIN PB9
#define FAN0_PIN PB7 // TODO: Add functionality
#define FAN1_PIN PB8 // TODO: Add functionality
#define FAN2_PIN PB9 // TODO: Add functionality
//
// Temperature Sensors
//
#define TEMP_0_PIN PC2 // PORT NUMBERING
#define TEMP_BED_PIN PC3 // PORT NUMBERING
//
// Misc. Functions
//
#define LED_PIN PD12
#define LED_PWM PD12 // External LED, pin 2 on LED labeled connector
//#define RESET_PIN NRST
#define T_PEN PE6
#define BEEPER_PIN PB10
//
// LCD / Controller
//
#if ENABLED(ULTRA_LCD)
#if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
#define LCD_PINS_RS PE6 // CS chip select /SS chip slave select
#define LCD_PINS_ENABLE PE14 // SID (MOSI)
#define LCD_PINS_D4 PD8 // SCK (CLK) clock
#define LCD_PINS_D5 PD9
#define LCD_PINS_D6 PD10
#define LCD_PINS_D7 PE15
#define BTN_EN1 PE8
#define BTN_EN2 PE9
#define BTN_ENC PE13
#define SD_DETECT_PIN PC7
#define KILL_PIN -1
#endif
#ifndef ST7920_DELAY_1
#define ST7920_DELAY_1 DELAY_NS(96)
#endif
#ifndef ST7920_DELAY_2
#define ST7920_DELAY_2 DELAY_NS(48)
#endif
#ifndef ST7920_DELAY_3
#define ST7920_DELAY_3 DELAY_NS(715)
#endif
//
// UART LCD Pins, if used
//
//#define LCD_PINS_D14 PD9 // RXD3
//#define LCD_PINS_D13 PD8 // TXD3
#endif // ULTRA_LCD
//
// SPI2 on LCD conn
//
#define SPI2_MOSI PB15
#define SPI2_MISO PB14
#define SPI2_SCK PB13
#define SPI2_NSS PB12
//
// SD Card on LCD
//
#define SD_CD PC7
#define SD_DATA0 PC8
#define SD_DATA1 PC9
#define SD_DATA2 PC10
#define SD_DATA3 PC11
#define SD_CMD PD2
#define SD_CLK PC12
//
// SPI Flash (on board Card Socket)
//
#define SPI1_NSS PA4
#define SPI1_SCK PA5
#define SPI1_MISO PA6
#define SPI1_MOSI PA7
//
// Debug
//
//#define SDA PA13
//#define SCL PA14
//
// Wifi
//
#define USART2_RX PA3 // Default alternate function
#define USART2_TX PA2 // Default alternate function
//
// For future use
//
//#undef USB_DM
//#undef CAN_TX
//#undef USB_DP
//#undef CAN_RX
//#undef BOARD_JTDI_PIN
//#define BOOT0 BOOT0