1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-27 22:08:02 +00:00

Merge pull request #9245 from Bob-the-Kuhn/TMC2208-sanity-check-2.0.x

[2.0.x] add TMC2208 sanity check to AVR
This commit is contained in:
Bob-the-Kuhn 2018-01-19 15:42:53 -06:00 committed by GitHub
commit 11e68541b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,4 +96,22 @@
#endif #endif
#endif // SPINDLE_LASER_ENABLE #endif // SPINDLE_LASER_ENABLE
/**
* 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
#endif // _SANITYCHECK_AVR_8_BIT_H_ #endif // _SANITYCHECK_AVR_8_BIT_H_