Prusa MINI Firmware overview
Main Page
Modules
Classes
Files
File List
File Members
pins_BIGTREE_SKR_E3_DIP.h
Go to the documentation of this file.
1
/**
2
* Marlin 3D Printer Firmware
3
* Copyright (c) 2019 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
#pragma once
23
24
#ifndef TARGET_STM32F1
25
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
26
#endif
27
28
#define BOARD_INFO_NAME "BIGTREE SKR E3 DIP V1.0"
29
30
// Release PB3/PB4 (TMC_SW Pins) from JTAG pins
31
#define DISABLE_JTAG
32
33
// Ignore temp readings during development.
34
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
35
36
#ifdef MCU_STM32F103RE
37
#define STM32_FLASH_SIZE (512 * 1024)
38
#else
39
#define STM32_FLASH_SIZE (256 * 1024)
40
#endif
41
42
#define FLASH_EEPROM_EMULATION
43
#define EEPROM_PAGE_SIZE uint16(0x800) // 2KB
44
#define EEPROM_START_ADDRESS uint32(0x8000000 + STM32_FLASH_SIZE - 2 * EEPROM_PAGE_SIZE)
45
#undef E2END
46
#define E2END (EEPROM_PAGE_SIZE - 1) // 2KB
47
48
//
49
// Servos
50
//
51
#define SERVO0_PIN PA1
52
53
//
54
// Limit Switches
55
//
56
#define X_STOP_PIN PC1
57
#define Y_STOP_PIN PC0
58
#define Z_STOP_PIN PC15
59
60
//
61
// Z Probe must be this pin
62
//
63
#define Z_MIN_PROBE_PIN PC14
64
65
//
66
// Filament Runout Sensor
67
//
68
#ifndef FIL_RUNOUT_PIN
69
#define FIL_RUNOUT_PIN PC2
70
#endif
71
72
//
73
// Steppers
74
//
75
#define X_ENABLE_PIN PC7
76
#define X_STEP_PIN PC6
77
#define X_DIR_PIN PB15
78
#ifndef X_CS_PIN
79
#define X_CS_PIN PC10
80
#endif
81
82
#define Y_ENABLE_PIN PB14
83
#define Y_STEP_PIN PB13
84
#define Y_DIR_PIN PB12
85
#ifndef Y_CS_PIN
86
#define Y_CS_PIN PC11
87
#endif
88
89
#define Z_ENABLE_PIN PB11
90
#define Z_STEP_PIN PB10
91
#define Z_DIR_PIN PB2
92
#ifndef Z_CS_PIN
93
#define Z_CS_PIN PC12
94
#endif
95
96
#define E0_ENABLE_PIN PB1
97
#define E0_STEP_PIN PB0
98
#define E0_DIR_PIN PC5
99
#ifndef E0_CS_PIN
100
#define E0_CS_PIN PD2
101
#endif
102
103
//
104
// Software SPI pins for TMC2130 stepper drivers
105
//
106
#if ENABLED(TMC_USE_SW_SPI)
107
#ifndef TMC_SW_MOSI
108
#define TMC_SW_MOSI PB5
109
#endif
110
#ifndef TMC_SW_MISO
111
#define TMC_SW_MISO PB4
112
#endif
113
#ifndef TMC_SW_SCK
114
#define TMC_SW_SCK PB3
115
#endif
116
#endif
117
118
#if HAS_TMC220x
119
/**
120
* TMC2208/TMC2209 stepper drivers
121
*
122
* Hardware serial communication ports.
123
* If undefined software serial is used according to the pins below
124
*/
125
//#define X_HARDWARE_SERIAL Serial1
126
//#define Y_HARDWARE_SERIAL Serial1
127
//#define Z_HARDWARE_SERIAL Serial1
128
//#define E0_HARDWARE_SERIAL Serial1
129
130
//
131
// Software serial
132
//
133
#define X_SERIAL_TX_PIN PC10
134
#define X_SERIAL_RX_PIN PC10
135
136
#define Y_SERIAL_TX_PIN PC11
137
#define Y_SERIAL_RX_PIN PC11
138
139
#define Z_SERIAL_TX_PIN PC12
140
#define Z_SERIAL_RX_PIN PC12
141
142
#define E0_SERIAL_TX_PIN PD2
143
#define E0_SERIAL_RX_PIN PD2
144
145
#endif
146
147
//
148
// Temperature Sensors
149
//
150
#define TEMP_0_PIN PA0 // Analog Input
151
#define TEMP_BED_PIN PC3 // Analog Input
152
153
//
154
// Heaters / Fans
155
//
156
#define HEATER_0_PIN PC8 // EXTRUDER
157
#define HEATER_BED_PIN PC9 // BED
158
#define FAN_PIN PA8
159
160
//
161
// USB connect control
162
//
163
#define USB_CONNECT_PIN PC13
164
#define USB_CONNECT_INVERTING false
165
166
#define SD_DETECT_PIN PC4
167
168
/**
169
* _____
170
* 5V | · · | GND
171
* (LCD_EN) PB7 | · · | PB8 (LCD_RS)
172
* (LCD_D4) PB9 | · · | PA10 (BTN_EN2)
173
* RESET | · · | PA9 (BTN_EN1)
174
* (BTN_ENC) PB6 | · · | PA15 (BEEPER)
175
* -----
176
* EXP1
177
*/
178
#if HAS_SPI_LCD
179
#define BEEPER_PIN PA15
180
#define BTN_ENC PB6
181
182
#if ENABLED(CR10_STOCKDISPLAY)
183
#define LCD_PINS_RS PB8
184
185
#define BTN_EN1 PA9
186
#define BTN_EN2 PA10
187
188
#define LCD_PINS_ENABLE PB7
189
#define LCD_PINS_D4 PB9
190
191
#else
192
#error "Only CR10_STOCKDISPLAY is currently supported on the BIGTREE_SKR_E3_DIP."
193
#endif
194
195
#endif // HAS_SPI_LCD
196
197
//
198
// SD Support
199
//
200
#define HAS_ONBOARD_SD
201
202
#ifndef SDCARD_CONNECTION
203
#define SDCARD_CONNECTION ONBOARD
204
#endif
205
206
#define ON_BOARD_SPI_DEVICE 1 //SPI1
207
#define ONBOARD_SD_CS_PIN PA4 // Chip select for "System" SD card
Prusa-Firmware-Buddy-Private1
lib
Marlin
Marlin
src
pins
stm32
pins_BIGTREE_SKR_E3_DIP.h
Generated by
1.8.16