Added QU-BD specific macros, including handling of reversed x-stop wiring.