Allow override of TMC_SW_* pins (#14528)

This commit is contained in:
Ludy
2019-07-07 04:25:48 +02:00
committed by Scott Lahteine
parent c1bb3278d4
commit 3a75342508
6 changed files with 54 additions and 18 deletions

View File

@@ -103,9 +103,15 @@
// Software SPI pins for TMC2130 stepper drivers
//
#if ENABLED(TMC_USE_SW_SPI)
#define TMC_SW_MOSI P4_28
#define TMC_SW_MISO P0_05
#define TMC_SW_SCK P0_04
#ifndef TMC_SW_MOSI
#define TMC_SW_MOSI P4_28
#endif
#ifndef TMC_SW_MISO
#define TMC_SW_MISO P0_05
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK P0_04
#endif
#endif
#if HAS_DRIVER(TMC2208) || HAS_DRIVER(TMC2209)