Prusa MINI Firmware overview
Main Page
Modules
Classes
Files
File List
File Members
pins_STEVAL.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 STM32F4
25
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
26
#endif
27
28
#ifndef MACHINE_NAME
29
#define MACHINE_NAME "STEVAL-3DP001V1"
30
#endif
31
32
#undef TEMP_TIMER
33
#define TEMP_TIMER 9 // the Marlin default of timer 7 doesn't exist on the STM32MF401 series
34
35
//
36
// Limit Switches
37
//
38
#define X_MIN_PIN 38 // PD8 X_STOP
39
#define X_MAX_PIN -1
40
#define Y_MIN_PIN 39 // PD9 Y_STOP
41
#define Y_MAX_PIN -1
42
#define Z_MIN_PIN 40 // PD10 Z_STOP
43
#define Z_MAX_PIN -1
44
45
//
46
// Z Probe (when not Z_MIN_PIN)
47
//
48
// #ifndef Z_MIN_PROBE_PIN
49
// #define Z_MIN_PROBE_PIN 11 // PA4
50
// #endif
51
52
#define SCK_PIN 16 // PB13 SPI_S
53
#define MISO_PIN 17 // PB14 SPI_M
54
#define MOSI_PIN 18 // PB15 SPI_M
55
56
//
57
// Steppers
58
//
59
60
#define X_STEP_PIN 60 // PE14 X_PWM
61
#define X_DIR_PIN 61 // PE15 X_DIR
62
#define X_ENABLE_PIN 59 // PE13 X_RES
63
#define X_CS_PIN 11 // PA4 SPI_CS
64
65
#define Y_STEP_PIN 62 // PB10 Y_PWM
66
#define Y_DIR_PIN 63 // PE9 Y_DIR
67
#define Y_ENABLE_PIN 64 // PE10 Y_RES
68
#define Y_CS_PIN 11 // PA4 SPI_CS
69
70
#define Z_STEP_PIN 66 // PC6 Z_PWM
71
#define Z_DIR_PIN 67 // PC0 Z_DIR
72
#define Z_ENABLE_PIN 65 // PC15 Z_RES
73
#define Z_CS_PIN 11 // PA4 SPI_CS
74
75
#define E0_STEP_PIN 70 // PD12 E1_PW
76
#define E0_DIR_PIN 68 // PC13 E1_DIR
77
#define E0_ENABLE_PIN 69 // PC14 E1_RE
78
#define E0_CS_PIN 11 // PA4 SPI_CS
79
80
#define E1_STEP_PIN 72 // PE5 E2_PWM
81
#define E1_DIR_PIN 73 // PE6 E2_DIR
82
#define E1_ENABLE_PIN 71 // PE4 E2_RESE
83
#define E1_CS_PIN 11 // PA4 SPI_CS
84
85
#define E2_STEP_PIN 76 // PB8 E3_PWM
86
#define E2_DIR_PIN 74 // PE2 E3_DIR
87
#define E2_ENABLE_PIN 75 // PE3 E3_RESE
88
#define E2_CS_PIN 11 // PA4 SPI_CS
89
90
91
//
92
// Temperature Sensors
93
//
94
#define TEMP_0_PIN 52 // PA0 E1_THER
95
#define TEMP_1_PIN 53 // PA1 E2_THER
96
#define TEMP_BED_PIN 50 // PC2 BED_THE
97
98
//
99
// Heaters / Fans
100
//
101
#define HEATER_0_PIN 52 // PA0 E1_THER
102
#define HEATER_1_PIN 53 // PA1 E2_THER
103
#define HEATER_BED_PIN 50 // PC2 BED_THE
104
105
#define FAN_PIN 56 // PC4 E1_FAN PWM pin, Part cooling fan
106
#define FAN1_PIN 57 // PC5 E2_FAN PWM pin, Extruder fan
107
#define FAN2_PIN 58 // PE8 E3_FAN PWM pin, Controller fan
108
109
//
110
// Misc functions
111
//
112
#define SDSS 11 // PA4 SPI_CS
113
#define LED_PIN -1 // Heart beat
114
#define PS_ON_PIN -1
115
#define KILL_PIN -1
116
#define PWR_LOSS -1 // Power loss / nAC_FAULT
117
118
//
119
// LCD / Controller
120
//
121
//#define SD_DETECT_PIN 24 // PA15 SD_CA
122
//#define BEEPER_PIN 23 // PC9 SDIO_D1
123
//#define LCD_PINS_RS 63 // PE9 Y_DIR
124
//#define LCD_PINS_ENABLE 58 // PE8 E3_FAN
125
//#define LCD_PINS_D4 15 // PB12 SPI_C
126
//#define LCD_PINS_D5 16 // PB13 SPI_S
127
//#define LCD_PINS_D6 17 // PB14 SPI_M
128
//#define LCD_PINS_D7 18 // PB15 SPI_M
129
//#define BTN_EN1 56 // PC4 E1_FAN
130
//#define BTN_EN2 57 // PC5 E2_FAN
131
//#define BTN_ENC 51 // PC3 BED_THE
132
133
//
134
// Filament runout detection
135
//
136
//#define FIL_RUNOUT_PIN 55 // PA3 BED_THE
137
138
//
139
// Extension pins
140
//
141
//#define EXT0_PIN 48 // PB0 E2_HEAT
142
//#define EXT1_PIN 49 // PB1 E3_HEAT
143
//#define EXT2_PIN // PB2
144
//#define EXT3_PIN 38 // PD8 X_STOP
145
//#define EXT4_PIN 39 // PD9 Y_STOP
146
//#define EXT5_PIN 40 // PD10 Z_STOP
147
//#define EXT6_PIN 41 // PD11
148
//#define EXT7_PIN 70 // PD12 E1_PW
149
//#define EXT8_PIN 62 // PB10 Y_PWM
150
//#define EXT9_PIN // PB11
Prusa-Firmware-Buddy-Private1
lib
Marlin
Marlin
src
pins
stm32
pins_STEVAL.h
Generated by
1.8.16