Simpler AVR + Trinamic + Soft Serial sanity-check (#12606)

2.0.x
Scott Lahteine 6 years ago committed by GitHub
parent 7d15854514
commit f6321f878a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -97,20 +97,8 @@
#endif // SPINDLE_LASER_ENABLE #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) && !( \ #if HAS_TRINAMIC && ENABLED(ENDSTOP_INTERRUPTS_FEATURE)
defined(X_HARDWARE_SERIAL ) \ #error "TMCStepper includes SoftwareSerial.h which is incompatible with ENDSTOP_INTERRUPTS_FEATURE. Disable ENDSTOP_INTERRUPTS_FEATURE to continue."
|| 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."
#endif #endif

Loading…
Cancel
Save