SKR Pro V1.1 StallGuard pins (#17550)

Co-authored-by: Scott Lahteine <github@thinkyhead.com>
This commit is contained in:
Alexander Amelkin 2020-04-15 03:03:59 +03:00 committed by Scott Lahteine
parent 3cdc9b8156
commit cae2b7bf4e
2 changed files with 50 additions and 14 deletions

View File

@ -31,18 +31,18 @@
//#define SDCARD_EEPROM_EMULATION //#define SDCARD_EEPROM_EMULATION
#endif #endif
/** //
* Trinamic Stallguard pins // Trinamic Stallguard pins
*/ //
#define X_DIAG_PIN P1_29 // X- #define X_DIAG_PIN P1_29 // X-
#define Y_DIAG_PIN P1_27 // Y- #define Y_DIAG_PIN P1_27 // Y-
#define Z_DIAG_PIN P1_25 // Z- #define Z_DIAG_PIN P1_25 // Z-
#define E0_DIAG_PIN P1_28 // X+ #define E0_DIAG_PIN P1_28 // X+
#define E1_DIAG_PIN P1_26 // Y+ #define E1_DIAG_PIN P1_26 // Y+
/** //
* Limit Switches // Limit Switches
*/ //
#if X_STALL_SENSITIVITY #if X_STALL_SENSITIVITY
#define X_STOP_PIN X_DIAG_PIN #define X_STOP_PIN X_DIAG_PIN
#if X_HOME_DIR < 0 #if X_HOME_DIR < 0

View File

@ -39,17 +39,53 @@
#define SERVO0_PIN PA1 #define SERVO0_PIN PA1
// //
// Limit Switches // Trinamic Stallguard pins
// //
#define X_MIN_PIN PB10 #define X_DIAG_PIN PB10 // X-
#define X_MAX_PIN PE15 #define Y_DIAG_PIN PE12 // Y-
#define Y_MIN_PIN PE12 #define Z_DIAG_PIN PG8 // Z-
#define Y_MAX_PIN PE10
#define Z_MIN_PIN PG8
#define Z_MAX_PIN PG5
// //
// Z Probe must be this pins // Limit Switches
//
#if X_STALL_SENSITIVITY
#define X_STOP_PIN X_DIAG_PIN
#if X_HOME_DIR < 0
#define X_MAX_PIN PE15 // E0
#else
#define X_MIN_PIN PE15 // E0
#endif
#else
#define X_MIN_PIN PB10 // X-
#define X_MAX_PIN PE15 // E0
#endif
#if Y_STALL_SENSITIVITY
#define Y_STOP_PIN Y_DIAG_PIN
#if Y_HOME_DIR < 0
#define Y_MAX_PIN PE10 // E1
#else
#define Y_MIN_PIN PE10 // E1
#endif
#else
#define Y_MIN_PIN PE12 // Y-
#define Y_MAX_PIN PE10 // E1
#endif
#if Z_STALL_SENSITIVITY
#define Z_STOP_PIN Z_DIAG_PIN
#if Z_HOME_DIR < 0
#define Z_MAX_PIN PG5 // E2
#else
#define Z_MIN_PIN PG5 // E2
#endif
#else
#define Z_MIN_PIN PG8 // Z-
#define Z_MAX_PIN PG5 // E2
#endif
//
// Z Probe must be this pin
// //
#ifndef Z_MIN_PROBE_PIN #ifndef Z_MIN_PROBE_PIN
#define Z_MIN_PROBE_PIN PA2 #define Z_MIN_PROBE_PIN PA2