Fix BTT GTR 1.0 endstop/DIAG pins (#20296)

This commit is contained in:
ellensp 2020-11-27 17:50:21 +13:00 committed by GitHub
parent 819ec462b8
commit 109f68f7df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,15 +46,54 @@
#define PS_ON_PIN PH6 #define PS_ON_PIN PH6
//
// Trinamic Stallguard pins
//
#define X_DIAG_PIN PF2 // X-
#define Y_DIAG_PIN PC13 // Y-
#define Z_DIAG_PIN PE0 // Z-
#define E0_DIAG_PIN PG14 // X+
#define E1_DIAG_PIN PG9 // Y+
#define E2_DIAG_PIN PD3 // Z+
// //
// Limit Switches // Limit Switches
// //
#define X_MIN_PIN PF2 #ifdef X_STALL_SENSITIVITY
#define X_MAX_PIN PG14 #define X_STOP_PIN X_DIAG_PIN
#define Y_MIN_PIN PC13 #if X_HOME_DIR < 0
#define Y_MAX_PIN PG9 #define X_MAX_PIN E0_DIAG_PIN // X+
#define Z_MIN_PIN PE0 #else
#define Z_MAX_PIN PD3 #define X_MIN_PIN E0_DIAG_PIN // X+
#endif
#else
#define X_MIN_PIN X_DIAG_PIN // X-
#define X_MAX_PIN E0_DIAG_PIN // X+
#endif
#ifdef Y_STALL_SENSITIVITY
#define Y_STOP_PIN Y_DIAG_PIN
#if Y_HOME_DIR < 0
#define Y_MAX_PIN E1_DIAG_PIN // Y+
#else
#define Y_MIN_PIN E1_DIAG_PIN // Y+
#endif
#else
#define Y_MIN_PIN Y_DIAG_PIN // Y-
#define Y_MAX_PIN E1_DIAG_PIN // Y+
#endif
#ifdef Z_STALL_SENSITIVITY
#define Z_STOP_PIN Z_DIAG_PIN
#if Z_HOME_DIR < 0
#define Z_MAX_PIN E2_DIAG_PIN // Z+
#else
#define Z_MIN_PIN E2_DIAG_PIN // Z+
#endif
#else
#define Z_MIN_PIN Z_DIAG_PIN // Z-
#define Z_MAX_PIN E2_DIAG_PIN // Z+
#endif
// //
// Pins on the extender // Pins on the extender