|
|
|
|
1959
|
/**
|
1959
|
/**
|
1960
|
* Check existing CS pins against enabled TMC SPI drivers.
|
1960
|
* Check existing CS pins against enabled TMC SPI drivers.
|
1961
|
*/
|
1961
|
*/
|
1962
|
-#define INVALID_TMC_SPI(ST) (AXIS_HAS_SPI && !PIN_EXISTS(ST##_CS))
|
|
|
|
|
1962
|
+#define INVALID_TMC_SPI(ST) (AXIS_HAS_SPI(ST) && !PIN_EXISTS(ST##_CS))
|
1963
|
#if INVALID_TMC_SPI(X)
|
1963
|
#if INVALID_TMC_SPI(X)
|
1964
|
#error "An SPI driven TMC driver on X requires X_CS_PIN."
|
1964
|
#error "An SPI driven TMC driver on X requires X_CS_PIN."
|
1965
|
#elif INVALID_TMC_SPI(X2)
|
1965
|
#elif INVALID_TMC_SPI(X2)
|