|
21 | 21 | along with grblHAL. If not, see <http://www.gnu.org/licenses/>.
|
22 | 22 | */
|
23 | 23 |
|
24 |
| -#if N_ABC_MOTORS > 2 |
| 24 | +#if N_ABC_MOTORS > 1 |
25 | 25 | #error "Axis configuration is not supported!"
|
26 | 26 | #endif
|
27 | 27 |
|
| 28 | +#if N_ABC_MOTORS == 0 |
| 29 | +#error "Axis configuration is not supported! The A motor must be enabled for proper Trinamic communication" |
| 30 | +#endif |
| 31 | + |
| 32 | + |
28 | 33 | #if KEYPAD_ENABLE == 1
|
29 | 34 | #error No free pins for I2C keypad!
|
30 | 35 | #endif
|
|
39 | 44 | #define BOARD_URL "https://github.com/bigtreetech/Rodent/tree/master"
|
40 | 45 | // https://bttwiki.com/Rodent.html
|
41 | 46 |
|
42 |
| -//#define TRINAMIC_MIXED_DRIVERS 0 Uncomment when board verified |
43 | 47 |
|
44 | 48 | #define I2S_OUT_BCK GPIO_NUM_22
|
45 | 49 | #define I2S_OUT_WS GPIO_NUM_17
|
46 | 50 | #define I2S_OUT_DATA GPIO_NUM_21
|
47 | 51 |
|
| 52 | +// General TMC settings |
| 53 | +#define TMC_STEALTHCHOP 0 // Disable stealthchop |
| 54 | + |
| 55 | + |
48 | 56 | #define X_STEP_PIN I2SO(2)
|
49 | 57 | #define X_DIRECTION_PIN I2SO(1)
|
50 | 58 | #define X_ENABLE_PIN I2SO(0)
|
|
55 | 63 | #define Y_ENABLE_PIN I2SO(7)
|
56 | 64 | #define Y_LIMIT_PIN GPIO_NUM_34
|
57 | 65 |
|
| 66 | + |
58 | 67 | #define Z_STEP_PIN I2SO(10)
|
59 | 68 | #define Z_DIRECTION_PIN I2SO(9)
|
60 | 69 | #define Z_ENABLE_PIN I2SO(8)
|
61 | 70 | #define Z_LIMIT_PIN GPIO_NUM_33
|
62 | 71 |
|
| 72 | + |
63 | 73 | // Define ganged axis or A axis step pulse and step direction output pins.
|
64 |
| -#if N_ABC_MOTORS >= 1 |
65 | 74 | #define M3_AVAILABLE
|
66 | 75 | #define M3_STEP_PIN I2SO(13)
|
67 | 76 | #define M3_DIRECTION_PIN I2SO(12)
|
68 | 77 | #define M3_ENABLE_PIN I2SO(15)
|
69 | 78 | #define M3_LIMIT_PIN GPIO_NUM_32
|
70 |
| -#endif |
71 | 79 |
|
72 |
| -// Define ganged axis or B axis step pulse and step direction output pins. |
73 |
| -#if N_ABC_MOTORS == 2 |
74 |
| -#define M4_AVAILABLE |
75 |
| -#define M4_STEP_PIN I2SO(18) |
76 |
| -#define M4_DIRECTION_PIN I2SO(17) |
77 |
| -#define M4_ENABLE_PIN I2SO(16) |
78 |
| -#define M4_LIMIT_PIN GPIO_NUM_37 |
79 |
| -#endif |
80 | 80 |
|
81 | 81 | #define AUXOUTPUT0_PIN GPIO_NUM_25 // Spindle enable
|
82 | 82 | #define AUXOUTPUT1_PIN GPIO_NUM_13 // Spindle PWM
|
|
125 | 125 | #define PIN_NUM_CLK GPIO_NUM_18
|
126 | 126 | #define MOTOR_CS_PIN GPIO_NUM_5
|
127 | 127 | #if SDCARD_ENABLE
|
128 |
| -#define PIN_NUM_CS GPIO_NUM_2 |
| 128 | +#define PIN_NUM_CS GPIO_NUM_0 |
129 | 129 | #endif
|
130 | 130 |
|
| 131 | +//#define TMC_ONE_SPI |
| 132 | + |
131 | 133 | // Define Modbus serial port pins
|
132 | 134 | #if MODBUS_ENABLE
|
133 | 135 | #if !(MODBUS_ENABLE & MODBUS_RTU_DIR_ENABLED)
|
|
0 commit comments