|
37 | 37 | //
|
38 | 38 | #define SERVO0_PIN P2_00
|
39 | 39 |
|
| 40 | +// |
| 41 | +// TMC StallGuard DIAG pins |
| 42 | +// |
| 43 | +#define X_DIAG_PIN P1_29 // X-STOP |
| 44 | +#define Y_DIAG_PIN P1_28 // Y-STOP |
| 45 | +#define Z_DIAG_PIN P1_27 // Z-STOP |
| 46 | +#define E0_DIAG_PIN P1_26 // E0DET |
| 47 | +#define E1_DIAG_PIN P1_25 // E1DET |
| 48 | + |
40 | 49 | //
|
41 | 50 | // Limit Switches
|
42 | 51 | //
|
43 |
| -#define X_STOP_PIN P1_29 |
44 |
| -#define Y_STOP_PIN P1_28 |
45 |
| -#define Z_STOP_PIN P1_27 |
| 52 | +#if X_STALL_SENSITIVITY |
| 53 | + #define X_STOP_PIN X_DIAG_PIN |
| 54 | + #if X_HOME_DIR < 0 |
| 55 | + #define X_MAX_PIN P1_26 // E0DET |
| 56 | + #else |
| 57 | + #define X_MIN_PIN P1_26 // E0DET |
| 58 | + #endif |
| 59 | +#else |
| 60 | + #define X_STOP_PIN P1_29 // X-STOP |
| 61 | +#endif |
| 62 | + |
| 63 | +#if Y_STALL_SENSITIVITY |
| 64 | + #define Y_STOP_PIN Y_DIAG_PIN |
| 65 | + #if Y_HOME_DIR < 0 |
| 66 | + #define Y_MAX_PIN P1_25 // E1DET |
| 67 | + #else |
| 68 | + #define Y_MIN_PIN P1_25 // E1DET |
| 69 | + #endif |
| 70 | +#else |
| 71 | + #define Y_STOP_PIN P1_28 // Y-STOP |
| 72 | +#endif |
| 73 | + |
| 74 | +#if Z_STALL_SENSITIVITY |
| 75 | + #define Z_STOP_PIN Z_DIAG_PIN |
| 76 | + #if Z_HOME_DIR < 0 |
| 77 | + #define Z_MAX_PIN P1_24 // PWRDET |
| 78 | + #else |
| 79 | + #define Z_MIN_PIN P1_24 // PWRDET |
| 80 | + #endif |
| 81 | +#else |
| 82 | + #define Z_STOP_PIN P1_27 // Z-STOP |
| 83 | +#endif |
46 | 84 |
|
47 | 85 | //
|
48 | 86 | // Z Probe (when not Z_MIN_PIN)
|
|
54 | 92 | //
|
55 | 93 | // Filament Runout Sensor
|
56 | 94 | //
|
57 |
| -#define FIL_RUNOUT_PIN P1_26 |
58 |
| -#define FIL_RUNOUT2_PIN P1_25 |
| 95 | +#define FIL_RUNOUT_PIN P1_26 // E0DET |
| 96 | +#define FIL_RUNOUT2_PIN P1_25 // E1DET |
59 | 97 |
|
60 | 98 | //
|
61 | 99 | // Power Supply Control
|
62 | 100 | //
|
63 | 101 | #ifndef PS_ON_PIN
|
64 |
| - #define PS_ON_PIN P1_00 |
| 102 | + #define PS_ON_PIN P1_00 // PWRDET |
65 | 103 | #endif
|
66 | 104 |
|
67 | 105 | //
|
68 | 106 | // Power Loss Detection
|
69 | 107 | //
|
70 | 108 | #ifndef POWER_LOSS_PIN
|
71 |
| - #define POWER_LOSS_PIN P1_00 |
| 109 | + #define POWER_LOSS_PIN P1_00 // PWRDET |
72 | 110 | #endif
|
73 | 111 |
|
74 | 112 | //
|
|
0 commit comments