Scott Lahteine
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
15 deletions
-
Marlin/src/HAL/HAL_AVR/SanityCheck.h
|
|
@ -97,20 +97,8 @@ |
|
|
|
#endif // SPINDLE_LASER_ENABLE
|
|
|
|
|
|
|
|
/**
|
|
|
|
* TMC2208 software UART and ENDSTOP_INTERRUPTS both use pin change interrupts (PCI) |
|
|
|
* The Trinamic library includes SoftwareSerial.h, leading to a compile error. |
|
|
|
*/ |
|
|
|
#if HAS_DRIVER(TMC2208) && ENABLED(ENDSTOP_INTERRUPTS_FEATURE) && !( \ |
|
|
|
defined(X_HARDWARE_SERIAL ) \ |
|
|
|
|| defined(X2_HARDWARE_SERIAL) \ |
|
|
|
|| defined(Y_HARDWARE_SERIAL ) \ |
|
|
|
|| defined(Y2_HARDWARE_SERIAL) \ |
|
|
|
|| defined(Z_HARDWARE_SERIAL ) \ |
|
|
|
|| defined(Z2_HARDWARE_SERIAL) \ |
|
|
|
|| defined(Z3_HARDWARE_SERIAL) \ |
|
|
|
|| defined(E0_HARDWARE_SERIAL) \ |
|
|
|
|| defined(E1_HARDWARE_SERIAL) \ |
|
|
|
|| defined(E2_HARDWARE_SERIAL) \ |
|
|
|
|| defined(E3_HARDWARE_SERIAL) \ |
|
|
|
|| defined(E4_HARDWARE_SERIAL) ) |
|
|
|
#error "Select hardware UART for TMC2208 to use both TMC2208 and ENDSTOP_INTERRUPTS_FEATURE." |
|
|
|
#if HAS_TRINAMIC && ENABLED(ENDSTOP_INTERRUPTS_FEATURE) |
|
|
|
#error "TMCStepper includes SoftwareSerial.h which is incompatible with ENDSTOP_INTERRUPTS_FEATURE. Disable ENDSTOP_INTERRUPTS_FEATURE to continue." |
|
|
|
#endif |
|
|
|