My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pins_GTM32_PRO_VB.h 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4. *
  5. * Based on Sprinter and grbl.
  6. * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. /**
  23. * 24 May 2018 - @chepo for STM32F103VET6
  24. * Schematic: https://github.com/chepo92/Smartto/blob/master/circuit_diagram/Rostock301/Hardware_GTM32_PRO_VB.pdf
  25. */
  26. #ifndef __STM32F1__
  27. #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
  28. #endif
  29. #define DEFAULT_MACHINE_NAME "STM32F103VET6"
  30. #define BOARD_NAME "GTM32 Pro VB"
  31. //#define DISABLE_DEBUG
  32. #define DISABLE_JTAG
  33. //#define DISABLE_JTAGSWD
  34. // Ignore temp readings during development.
  35. #define BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE
  36. //
  37. // Limit Switches
  38. //
  39. #define X_MIN_PIN PE5
  40. #define X_MAX_PIN PE4
  41. #define Y_MIN_PIN PE3
  42. #define Y_MAX_PIN PE2
  43. #define Z_MIN_PIN PE1
  44. #define Z_MAX_PIN PE0
  45. //
  46. // Steppers
  47. //
  48. #define X_STEP_PIN PC6
  49. #define X_DIR_PIN PD13
  50. #define X_ENABLE_PIN PA8
  51. #define Y_STEP_PIN PA12
  52. #define Y_DIR_PIN PA11
  53. #define Y_ENABLE_PIN PA15
  54. #define Z_STEP_PIN PD6
  55. #define Z_DIR_PIN PD3
  56. #define Z_ENABLE_PIN PB3
  57. #define E0_STEP_PIN PC14
  58. #define E0_DIR_PIN PC13
  59. #define E0_ENABLE_PIN PC15
  60. #define E1_STEP_PIN PA0
  61. #define E1_DIR_PIN PB6
  62. #define E1_ENABLE_PIN PA1
  63. #define E2_STEP_PIN PB2
  64. #define E2_DIR_PIN PB11
  65. #define E2_ENABLE_PIN PC4
  66. //
  67. // Heaters / Fans
  68. //
  69. #define HEATER_0_PIN PB0
  70. #define HEATER_1_PIN PB5
  71. #define HEATER_2_PIN PB4
  72. #define HEATER_BED_PIN PB1
  73. #define FAN0_PIN PB7 // TODO: Add functionality
  74. #define FAN1_PIN PB8 // TODO: Add functionality
  75. #define FAN2_PIN PB9 // TODO: Add functionality
  76. //
  77. // Temperature Sensors
  78. //
  79. #define TEMP_0_PIN PC2 // PORT NUMBERING
  80. #define TEMP_1_PIN PC1 // PORT NUMBERING
  81. #define TEMP_2_PIN PC0 // PORT NUMBERING
  82. #define TEMP_BED_PIN PC3 // PORT NUMBERING
  83. //
  84. // Misc. Functions
  85. //
  86. #define LED_PWM PD12 // External LED, pin 2 on LED labeled connector
  87. //#define RESET_PIN NRST
  88. #define T_PEN PE6
  89. #define BEEPER_PIN PB10
  90. //
  91. // LCD / Controller
  92. //
  93. #if ENABLED(ULTRA_LCD)
  94. #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
  95. #define LCD_PINS_RS PE6 // CS chip select /SS chip slave select
  96. #define LCD_PINS_ENABLE PE14 // SID (MOSI)
  97. #define LCD_PINS_D4 PD8 // SCK (CLK) clock
  98. #define LCD_PINS_D5 PD9
  99. #define LCD_PINS_D6 PD10
  100. #define LCD_PINS_D7 PE15
  101. #define BTN_EN1 PE8
  102. #define BTN_EN2 PE9
  103. #define BTN_ENC PE13
  104. #define SD_DETECT_PIN PC7
  105. #define KILL_PIN -1
  106. #endif
  107. #ifndef ST7920_DELAY_1
  108. #define ST7920_DELAY_1 DELAY_NS(96)
  109. #endif
  110. #ifndef ST7920_DELAY_2
  111. #define ST7920_DELAY_2 DELAY_NS(48)
  112. #endif
  113. #ifndef ST7920_DELAY_3
  114. #define ST7920_DELAY_3 DELAY_NS(715)
  115. #endif
  116. //
  117. // UART LCD Pins, if used
  118. //
  119. //#define LCD_PINS_D14 PD9 // RXD3
  120. //#define LCD_PINS_D13 PD8 // TXD3
  121. #endif // ULTRA_LCD
  122. //
  123. // SPI2 on LCD conn
  124. //
  125. #define SPI2_MOSI PB15
  126. #define SPI2_MISO PB14
  127. #define SPI2_SCK PB13
  128. #define SPI2_NSS PB12
  129. //
  130. // SD Card on LCD
  131. //
  132. #define SD_CD PC7
  133. #define SD_DATA0 PC8
  134. #define SD_DATA1 PC9
  135. #define SD_DATA2 PC10
  136. #define SD_DATA3 PC11
  137. #define SD_CMD PD2
  138. #define SD_CLK PC12
  139. //
  140. // SPI Flash (on board Card Socket)
  141. //
  142. #define SPI1_NSS PA4
  143. #define SPI1_SCK PA5
  144. #define SPI1_MISO PA6
  145. #define SPI1_MOSI PA7
  146. //
  147. // Debug
  148. //
  149. //#define SDA PA13
  150. //#define SCL PA14
  151. //
  152. // Wifi
  153. //
  154. #define USART2_RX PA3 // Default alternate function
  155. #define USART2_TX PA2 // Default alternate function
  156. //
  157. // For future use
  158. //
  159. //#undef USB_DM
  160. //#undef CAN_TX
  161. //#undef USB_DP
  162. //#undef CAN_RX
  163. //#undef BOARD_JTDI_PIN
  164. //#define BOOT0 BOOT0