Tweaks for pins_BTT_SKR_common.h

This commit is contained in:
Scott Lahteine 2020-12-08 20:22:30 -06:00
parent e5d0b27aaf
commit 45b11553f4

View file

@ -21,7 +21,7 @@
*/ */
#pragma once #pragma once
#ifdef SKR_HAS_LPC1769 #if ENABLED(SKR_HAS_LPC1769)
#if NOT_TARGET(MCU_LPC1769) #if NOT_TARGET(MCU_LPC1769)
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE." #error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
#endif #endif
@ -35,9 +35,9 @@
#if BOTH(HAS_WIRED_LCD, HAS_BTT_EXP_MOT) #if BOTH(HAS_WIRED_LCD, HAS_BTT_EXP_MOT)
#if EITHER(CR10_STOCKDISPLAY, ENDER2_STOCKDISPLAY) #if EITHER(CR10_STOCKDISPLAY, ENDER2_STOCKDISPLAY)
#define EXP_MOT_USE_EXP2_ONLY #define EXP_MOT_USE_EXP2_ONLY 1
#else #else
#error "Having a LCD that uses both EXP1/EXP2 and a expanion motor module on EXP1/EXP2 is not possible." #error "You can't use both an LCD and a Motor Expansion Module on EXP1/EXP2 at the same time."
#endif #endif
#endif #endif
@ -146,7 +146,7 @@
#define E2_STEP_PIN EXPA2_05_PIN #define E2_STEP_PIN EXPA2_05_PIN
#define E2_DIR_PIN EXPA2_06_PIN #define E2_DIR_PIN EXPA2_06_PIN
#define E2_ENABLE_PIN EXPA2_04_PIN #define E2_ENABLE_PIN EXPA2_04_PIN
#ifndef EXP_MOT_USE_EXP2_ONLY #if !EXP_MOT_USE_EXP2_ONLY
#define E2_DIAG_PIN EXPA1_06_PIN #define E2_DIAG_PIN EXPA1_06_PIN
#define E2_CS_PIN EXPA1_05_PIN #define E2_CS_PIN EXPA1_05_PIN
#if HAS_TMC_UART #if HAS_TMC_UART
@ -158,7 +158,7 @@
// M2 on Driver Expansion Module // M2 on Driver Expansion Module
#define E3_STEP_PIN EXPA2_08_PIN #define E3_STEP_PIN EXPA2_08_PIN
#define E3_DIR_PIN EXPA2_07_PIN #define E3_DIR_PIN EXPA2_07_PIN
#ifndef EXP_MOT_USE_EXP2_ONLY #if !EXP_MOT_USE_EXP2_ONLY
#define E3_ENABLE_PIN EXPA1_03_PIN #define E3_ENABLE_PIN EXPA1_03_PIN
#define E3_DIAG_PIN EXPA1_08_PIN #define E3_DIAG_PIN EXPA1_08_PIN
#define E3_CS_PIN EXPA1_07_PIN #define E3_CS_PIN EXPA1_07_PIN
@ -173,7 +173,7 @@
// M3 on Driver Expansion Module // M3 on Driver Expansion Module
#define E4_STEP_PIN EXPA2_10_PIN #define E4_STEP_PIN EXPA2_10_PIN
#define E4_DIR_PIN EXPA2_09_PIN #define E4_DIR_PIN EXPA2_09_PIN
#ifndef EXP_MOT_USE_EXP2_ONLY #if !EXP_MOT_USE_EXP2_ONLY
#define E4_ENABLE_PIN EXPA1_04_PIN #define E4_ENABLE_PIN EXPA1_04_PIN
#define E4_DIAG_PIN EXPA1_10_PIN #define E4_DIAG_PIN EXPA1_10_PIN
#define E4_CS_PIN EXPA1_09_PIN #define E4_CS_PIN EXPA1_09_PIN