|
@ -1409,7 +1409,7 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE && Y_MAX_LENGTH >= Y_BED_SIZE, |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
/**
|
|
|
/**
|
|
|
* TMC2130 Requirements |
|
|
* Make sure HAVE_TMC2130 is warranted |
|
|
*/ |
|
|
*/ |
|
|
#if ENABLED(HAVE_TMC2130) |
|
|
#if ENABLED(HAVE_TMC2130) |
|
|
#if !( ENABLED( X_IS_TMC2130 ) \ |
|
|
#if !( ENABLED( X_IS_TMC2130 ) \ |
|
@ -1476,10 +1476,10 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE && Y_MAX_LENGTH >= Y_BED_SIZE, |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
/**
|
|
|
/**
|
|
|
* TMC2208 Requirements |
|
|
* Make sure HAVE_TMC2208 is warranted |
|
|
*/ |
|
|
*/ |
|
|
#if ENABLED(HAVE_TMC2208) |
|
|
#if ENABLED(HAVE_TMC2208) && !( \ |
|
|
#if !( ENABLED( X_IS_TMC2208) \ |
|
|
ENABLED( X_IS_TMC2208 ) \ |
|
|
|| ENABLED( X2_IS_TMC2208 ) \ |
|
|
|| ENABLED( X2_IS_TMC2208 ) \ |
|
|
|| ENABLED( Y_IS_TMC2208 ) \ |
|
|
|| ENABLED( Y_IS_TMC2208 ) \ |
|
|
|| ENABLED( Y2_IS_TMC2208 ) \ |
|
|
|| ENABLED( Y2_IS_TMC2208 ) \ |
|
@ -1488,12 +1488,15 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE && Y_MAX_LENGTH >= Y_BED_SIZE, |
|
|
|| ENABLED( E0_IS_TMC2208 ) \ |
|
|
|| ENABLED( E0_IS_TMC2208 ) \ |
|
|
|| ENABLED( E1_IS_TMC2208 ) \ |
|
|
|| ENABLED( E1_IS_TMC2208 ) \ |
|
|
|| ENABLED( E2_IS_TMC2208 ) \ |
|
|
|| ENABLED( E2_IS_TMC2208 ) \ |
|
|
|| ENABLED(E3_IS_TMC2208) \ |
|
|
|| ENABLED( E3_IS_TMC2208 ) ) |
|
|
|| ENABLED(E4_IS_TMC2208 ) ) |
|
|
|
|
|
#error "HAVE_TMC2208 requires at least one TMC2208 stepper to be set." |
|
|
#error "HAVE_TMC2208 requires at least one TMC2208 stepper to be set." |
|
|
// Software UART and ENDSTOP_INTERRUPTS both use Pin Change interrupts (PCI)
|
|
|
#endif |
|
|
#elif ENABLED(ENDSTOP_INTERRUPTS_FEATURE) && \ |
|
|
|
|
|
!( defined( X_HARDWARE_SERIAL) \ |
|
|
/**
|
|
|
|
|
|
* TMC2208 software UART and ENDSTOP_INTERRUPTS both use pin change interrupts (PCI) |
|
|
|
|
|
*/ |
|
|
|
|
|
#if ENABLED(HAVE_TMC2208) && ENABLED(ENDSTOP_INTERRUPTS_FEATURE) && !( \ |
|
|
|
|
|
defined(X_HARDWARE_SERIAL ) \ |
|
|
|| defined(X2_HARDWARE_SERIAL) \ |
|
|
|| defined(X2_HARDWARE_SERIAL) \ |
|
|
|| defined(Y_HARDWARE_SERIAL ) \ |
|
|
|| defined(Y_HARDWARE_SERIAL ) \ |
|
|
|| defined(Y2_HARDWARE_SERIAL) \ |
|
|
|| defined(Y2_HARDWARE_SERIAL) \ |
|
@ -1504,8 +1507,7 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE && Y_MAX_LENGTH >= Y_BED_SIZE, |
|
|
|| defined(E2_HARDWARE_SERIAL) \ |
|
|
|| defined(E2_HARDWARE_SERIAL) \ |
|
|
|| defined(E3_HARDWARE_SERIAL) \ |
|
|
|| defined(E3_HARDWARE_SERIAL) \ |
|
|
|| defined(E4_HARDWARE_SERIAL) ) |
|
|
|| defined(E4_HARDWARE_SERIAL) ) |
|
|
#error "Select *_HARDWARE_SERIAL to use both TMC2208 and ENDSTOP_INTERRUPTS_FEATURE." |
|
|
#error "select hardware UART for TMC2208 to use both TMC2208 and ENDSTOP_INTERRUPTS_FEATURE." |
|
|
#endif |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if ENABLED(HYBRID_THRESHOLD) && DISABLED(STEALTHCHOP) |
|
|
#if ENABLED(HYBRID_THRESHOLD) && DISABLED(STEALTHCHOP) |
|
|