Allow override of CS pins generally

This commit is contained in:
Scott Lahteine
2018-02-04 16:35:52 -06:00
parent 0891b58c30
commit aecf0c9bb9
5 changed files with 83 additions and 32 deletions

View File

@@ -68,32 +68,44 @@
#define X_STEP_PIN P2_01 // (54)
#define X_DIR_PIN P0_11 // (55)
#define X_ENABLE_PIN P0_10 // (38)
#define X_CS_PIN P1_01 // ETH
#ifndef X_CS_PIN
#define X_CS_PIN P1_01 // ETH
#endif
#define Y_STEP_PIN P2_02 // (60)
#define Y_DIR_PIN P0_20 // (61)
#define Y_ENABLE_PIN P0_19 // (56)
#define Y_CS_PIN P1_04 // ETH
#ifndef Y_CS_PIN
#define Y_CS_PIN P1_04 // ETH
#endif
#define Z_STEP_PIN P2_03 // (46)
#define Z_DIR_PIN P0_22 // (48)
#define Z_ENABLE_PIN P0_21 // (62)
#define Z_CS_PIN P1_10 // ETH
#ifndef Z_CS_PIN
#define Z_CS_PIN P1_10 // ETH
#endif
#define E0_STEP_PIN P2_00 // (26)
#define E0_DIR_PIN P0_05 // (28)
#define E0_ENABLE_PIN P0_04 // (24)
#define E0_CS_PIN P1_14 // ETH
#ifndef E0_CS_PIN
#define E0_CS_PIN P1_14 // ETH
#endif
#define E1_STEP_PIN P2_08 // (36)
#define E1_DIR_PIN P2_13 // (34)
#define E1_ENABLE_PIN P4_29 // (30)
#define E1_CS_PIN -1
#ifndef E1_CS_PIN
#define E1_CS_PIN -1
#endif
#define E2_STEP_PIN P2_08 // (36)
#define E2_DIR_PIN P2_13 // (34)
#define E2_ENABLE_PIN P4_29 // (30)
#define E2_CS_PIN -1
#ifndef E2_CS_PIN
#define E2_CS_PIN -1
#endif
//
// Software SPI pins for TMC2130 stepper drivers