|
@@ -24,13 +24,13 @@
|
24
|
24
|
#error "Oops! Make sure you have an STM32F1 board selected from the 'Tools -> Boards' menu."
|
25
|
25
|
#endif
|
26
|
26
|
|
27
|
|
-/**
|
28
|
|
- * 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
|
29
|
|
- */
|
30
|
|
-
|
31
|
27
|
#define DEFAULT_MACHINE_NAME "STM32F103VET6"
|
32
|
28
|
#define BOARD_NAME "GTM32 Pro VB"
|
33
|
29
|
|
|
30
|
+//#define DISABLE_DEBUG
|
|
31
|
+//#define DISABLE_JTAG
|
|
32
|
+//#define DISABLE_JTAGSWD
|
|
33
|
+
|
34
|
34
|
// Ignore temp readings during development.
|
35
|
35
|
#define BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE
|
36
|
36
|
|
|
@@ -53,11 +53,11 @@
|
53
|
53
|
|
54
|
54
|
#define Y_STEP_PIN PA12
|
55
|
55
|
#define Y_DIR_PIN PA11
|
56
|
|
-#define Y_ENABLE_PIN PA15 // core conflict?
|
|
56
|
+#define Y_ENABLE_PIN PA15
|
57
|
57
|
|
58
|
58
|
#define Z_STEP_PIN PD6
|
59
|
59
|
#define Z_DIR_PIN PD3
|
60
|
|
-#define Z_ENABLE_PIN PB3 // core conflict?
|
|
60
|
+#define Z_ENABLE_PIN PB3
|
61
|
61
|
|
62
|
62
|
#define E0_STEP_PIN PC14
|
63
|
63
|
#define E0_DIR_PIN PC13
|
|
@@ -72,28 +72,114 @@
|
72
|
72
|
#define E2_ENABLE_PIN PC4
|
73
|
73
|
|
74
|
74
|
//
|
|
75
|
+// Heaters / Fans
|
|
76
|
+//
|
|
77
|
+#define HEATER_0_PIN PB0
|
|
78
|
+#define HEATER_BED_PIN PB1
|
|
79
|
+
|
|
80
|
+#define FAN0_PIN PB7 // TODO: Add functionality
|
|
81
|
+#define FAN1_PIN PB8 // TODO: Add functionality
|
|
82
|
+#define FAN2_PIN PB9 // TODO: Add functionality
|
|
83
|
+
|
|
84
|
+//
|
75
|
85
|
// Temperature Sensors
|
76
|
86
|
//
|
77
|
|
-#define TEMP_BED_PIN PC0
|
78
|
|
-#define TEMP_0_PIN PC1
|
79
|
|
-#define TEMP_1_PIN PC2
|
80
|
|
-#define TEMP_2_PIN PC3
|
|
87
|
+#define TEMP_0_PIN PC2 // PORT NUMBERING
|
|
88
|
+#define TEMP_BED_PIN PC3 // PORT NUMBERING
|
81
|
89
|
|
82
|
90
|
//
|
83
|
|
-// Heaters / Fans
|
|
91
|
+// Misc. Functions
|
84
|
92
|
//
|
85
|
|
-#define HEATER_0_PIN PB4 // EXTRUDER 1
|
86
|
|
-#define HEATER_1_PIN PB5 // EXTRUDER 2
|
87
|
|
-#define HEATER_2_PIN PB0 // EXTRUDER 3
|
88
|
|
-#define HEATER_BED_PIN PB1 // BED
|
|
93
|
+#define LED_PWM PD12 // External LED, pin 2 on LED labeled connector
|
|
94
|
+//#define RESET_PIN NRST
|
|
95
|
+#define T_PEN PE6
|
89
|
96
|
|
90
|
|
-#ifndef FAN_PIN
|
91
|
|
- #define FAN_PIN PB7 // (Sprinter config)
|
92
|
|
-#endif
|
93
|
|
-#define FAN1_PIN PB8
|
94
|
|
-#define FAN2_PIN PB9
|
|
97
|
+#define BEEPER_PIN PB10
|
95
|
98
|
|
96
|
99
|
//
|
97
|
|
-// Misc. Functions
|
|
100
|
+// LCD / Controller
|
|
101
|
+//
|
|
102
|
+#if ENABLED(ULTRA_LCD)
|
|
103
|
+
|
|
104
|
+ #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
|
|
105
|
+ #define LCD_PINS_RS PE6 // CS chip select /SS chip slave select
|
|
106
|
+ #define LCD_PINS_ENABLE PE14 // SID (MOSI)
|
|
107
|
+ #define LCD_PINS_D4 PD8 // SCK (CLK) clock
|
|
108
|
+ #define LCD_PINS_D5 PD9
|
|
109
|
+ #define LCD_PINS_D6 PD10
|
|
110
|
+ #define LCD_PINS_D7 PE15
|
|
111
|
+
|
|
112
|
+ #define BTN_EN1 PE8
|
|
113
|
+ #define BTN_EN2 PE9
|
|
114
|
+ #define BTN_ENC PE13
|
|
115
|
+
|
|
116
|
+ #define SD_DETECT_PIN PC7
|
|
117
|
+ #define KILL_PIN -1
|
|
118
|
+ #endif
|
|
119
|
+
|
|
120
|
+ #ifndef ST7920_DELAY_1
|
|
121
|
+ #define ST7920_DELAY_1 DELAY_NS(96)
|
|
122
|
+ #endif
|
|
123
|
+ #ifndef ST7920_DELAY_2
|
|
124
|
+ #define ST7920_DELAY_2 DELAY_NS(48)
|
|
125
|
+ #endif
|
|
126
|
+ #ifndef ST7920_DELAY_3
|
|
127
|
+ #define ST7920_DELAY_3 DELAY_NS(715)
|
|
128
|
+ #endif
|
|
129
|
+
|
|
130
|
+ //
|
|
131
|
+ // UART LCD Pins, if used
|
|
132
|
+ //
|
|
133
|
+ //#define LCD_PINS_D14 PD9 // RXD3
|
|
134
|
+ //#define LCD_PINS_D13 PD8 // TXD3
|
|
135
|
+
|
|
136
|
+#endif // ULTRA_LCD
|
|
137
|
+
|
|
138
|
+//
|
|
139
|
+// SPI2 on LCD conn
|
|
140
|
+//
|
|
141
|
+#define SPI2_MOSI PB15
|
|
142
|
+#define SPI2_MISO PB14
|
|
143
|
+#define SPI2_SCK PB13
|
|
144
|
+#define SPI2_NSS PB12
|
|
145
|
+
|
|
146
|
+//
|
|
147
|
+// SD Card on LCD
|
|
148
|
+//
|
|
149
|
+#define SD_CD PC7
|
|
150
|
+#define SD_DATA0 PC8
|
|
151
|
+#define SD_DATA1 PC9
|
|
152
|
+#define SD_DATA2 PC10
|
|
153
|
+#define SD_DATA3 PC11
|
|
154
|
+#define SD_CMD PD2
|
|
155
|
+#define SD_CLK PC12
|
|
156
|
+
|
|
157
|
+//
|
|
158
|
+// SPI Flash (on board Card Socket)
|
|
159
|
+//
|
|
160
|
+#define SPI1_NSS PA4
|
|
161
|
+#define SPI1_SCK PA5
|
|
162
|
+#define SPI1_MISO PA6
|
|
163
|
+#define SPI1_MOSI PA7
|
|
164
|
+
|
|
165
|
+//
|
|
166
|
+// Debug
|
|
167
|
+//
|
|
168
|
+//#define SDA PA13
|
|
169
|
+//#define SCL PA14
|
|
170
|
+
|
|
171
|
+//
|
|
172
|
+// Wifi
|
|
173
|
+//
|
|
174
|
+#define USART2_RX PA3 // Default alternate function
|
|
175
|
+#define USART2_TX PA2 // Default alternate function
|
|
176
|
+
|
|
177
|
+//
|
|
178
|
+// For future use
|
98
|
179
|
//
|
99
|
|
-#define LED_PIN PD12
|
|
180
|
+//#undef USB_DM
|
|
181
|
+//#undef CAN_TX
|
|
182
|
+//#undef USB_DP
|
|
183
|
+//#undef CAN_RX
|
|
184
|
+//#undef BOARD_JTDI_PIN
|
|
185
|
+//#define BOOT0 BOOT0
|