Merge pull request #9237 from Bob-the-Kuhn/TMC2208-sanity-check-1.1.x

[bugfix-1.1.x] add TMC2208 sanity check & fix typo
This commit is contained in:
Bob-the-Kuhn 2018-01-19 12:27:03 -06:00 committed by GitHub
commit 21a631dd4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 1 deletions

View File

@ -1480,6 +1480,24 @@ static_assert(1 >= 0
#error "HAVE_TMC2208 requires at least one TMC2208 stepper to be set." #error "HAVE_TMC2208 requires at least one TMC2208 stepper to be set."
#endif #endif
/**
* TMC2208 software UART and ENDSTOP_INTERRUPTS both use pin change interrupts (PCI)
*/
#if ENABLED(HAVE_TMC2208) && ENABLED(ENDSTOP_INTERRUPTS_FEATURE) && !( \
ENABLED( X_HARDWARE_SERIAL ) \
|| ENABLED( X2_HARDWARE_SERIAL ) \
|| ENABLED( Y_HARDWARE_SERIAL ) \
|| ENABLED( Y2_HARDWARE_SERIAL ) \
|| ENABLED( Z_HARDWARE_SERIAL ) \
|| ENABLED( Z2_HARDWARE_SERIAL ) \
|| ENABLED( E0_HARDWARE_SERIAL ) \
|| ENABLED( E1_HARDWARE_SERIAL ) \
|| ENABLED( E2_HARDWARE_SERIAL ) \
|| ENABLED( E3_HARDWARE_SERIAL ) \
|| ENABLED( E4_HARDWARE_SERIAL ) )
#error "select hardware UART for TMC2208 to use both TMC2208 and ENDSTOP_INTERRUPTS_FEATURE."
#endif
#if ENABLED(HYBRID_THRESHOLD) && DISABLED(STEALTHCHOP) #if ENABLED(HYBRID_THRESHOLD) && DISABLED(STEALTHCHOP)
#error "Enable STEALTHCHOP to use HYBRID_THRESHOLD." #error "Enable STEALTHCHOP to use HYBRID_THRESHOLD."
#endif #endif

View File

@ -131,7 +131,7 @@
//#define E1_HARDWARE_SERIAL Serial1 //#define E1_HARDWARE_SERIAL Serial1
//#define E2_HARDWARE_SERIAL Serial1 //#define E2_HARDWARE_SERIAL Serial1
//#define E3_HARDWARE_SERIAL Serial1 //#define E3_HARDWARE_SERIAL Serial1
//#define E3_HARDWARE_SERIAL Serial1 //#define E4_HARDWARE_SERIAL Serial1
/** /**
* Software serial * Software serial