mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-01-22 17:52:57 +00:00
🔧 Add RAMPS TMC SPI pins when !TMC_USE_SW_SPI (#26960)
* Allows RAMPS to auto assign HW SPI Pins for TMC
This commit is contained in:
parent
bc0d7d7140
commit
f433b2c433
1 changed files with 21 additions and 9 deletions
|
@ -320,17 +320,29 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// TMC software SPI
|
// TMC SPI
|
||||||
//
|
//
|
||||||
#if HAS_TMC_SPI
|
#if HAS_TMC_SPI
|
||||||
#ifndef TMC_SPI_MOSI
|
#if ENABLED(TMC_USE_SW_SPI)
|
||||||
#define TMC_SPI_MOSI AUX2_09
|
#ifndef TMC_SPI_MOSI
|
||||||
#endif
|
#define TMC_SPI_MOSI AUX2_09
|
||||||
#ifndef TMC_SPI_MISO
|
#endif
|
||||||
#define TMC_SPI_MISO AUX2_07
|
#ifndef TMC_SPI_MISO
|
||||||
#endif
|
#define TMC_SPI_MISO AUX2_07
|
||||||
#ifndef TMC_SPI_SCK
|
#endif
|
||||||
#define TMC_SPI_SCK AUX2_05
|
#ifndef TMC_SPI_SCK
|
||||||
|
#define TMC_SPI_SCK AUX2_05
|
||||||
|
#endif
|
||||||
|
#else
|
||||||
|
#ifndef TMC_SPI_MOSI
|
||||||
|
#define TMC_SPI_MOSI AUX3_04
|
||||||
|
#endif
|
||||||
|
#ifndef TMC_SPI_MISO
|
||||||
|
#define TMC_SPI_MISO AUX3_03
|
||||||
|
#endif
|
||||||
|
#ifndef TMC_SPI_SCK
|
||||||
|
#define TMC_SPI_SCK AUX3_05
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue