Skip to content

Commit 9974327

Browse files
committed
extend uart checks
1 parent 4eba643 commit 9974327

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

Marlin/src/HAL/STM32/inc/SanityCheck.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@
5858
* Check for common serial pin conflicts
5959
*/
6060
#define _CHECK_SERIAL_PIN(N) (( \
61-
BTN_EN1 == N || DOGLCD_CS == N || HEATER_BED_PIN == N || FAN0_PIN == N || \
62-
SDIO_D2_PIN == N || SDIO_D3_PIN == N || SDIO_CK_PIN == N || SDIO_CMD_PIN == N \
61+
BTN_EN1 == N || BTN_EN2 == N ||DOGLCD_CS == N || HEATER_BED_PIN == N || FAN0_PIN == N || \
62+
SDIO_D2_PIN == N || SDIO_D3_PIN == N || SDIO_CK_PIN == N || SDIO_CMD_PIN == N || \
63+
Y_STEP_PIN == N || Y_ENABLE_PIN == N || E0_ENABLE_PIN == N || POWER_LOSS_PIN == N \
6364
))
6465
#define CHECK_SERIAL_PIN(T,N) defined(UART##N##_##T##_PIN) && _CHECK_SERIAL_PIN(UART##N##_##T##_PIN)
6566
#if SERIAL_IN_USE(1)

Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_E3_V2_0.h

+15
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,18 @@
107107
#define E0_SLAVE_ADDRESS 3
108108
#endif
109109
#endif
110+
111+
// Pins for documentation and sanity checks only.
112+
// Changing these will not change the pin they are on.
113+
114+
// Hardware UART pins
115+
#define UART1_TX_PIN PA9 // default usage LCD connector
116+
#define UART1_RX_PIN PA10 // default usage LCD connector
117+
#define UART2_TX_PIN PA2 // default usage TFT connector
118+
#define UART2_RX_PIN PA3 // default usage TFT connector
119+
#define UART3_TX_PIN PB10 // default usage Y_STEP_PIN
120+
#define UART3_RX_PIN PB11 // default usage Y_ENABLE_PIN
121+
#define UART4_TX_PIN PC10 // default usage TMC UART
122+
#define UART4_RX_PIN PC11 // default usage TMC UART
123+
#define UART5_TX_PIN PC12 // default usage POWER_LOSS_PIN
124+
#define UART5_RX_PIN PD2 // default usage E0_ENABLE_PIN

Marlin/src/pins/stm32g0/pins_BTT_SKR_MINI_E3_V3_0.h

+11
Original file line numberDiff line numberDiff line change
@@ -461,3 +461,14 @@
461461
#ifndef BOARD_NEOPIXEL_PIN
462462
#define BOARD_NEOPIXEL_PIN PA8 // LED driving pin
463463
#endif
464+
465+
// Pins for documentation and sanity checks only.
466+
// Changing these will not change the pin they are on.
467+
468+
// Hardware UART pins
469+
#define UART1_TX_PIN PA9 // default usage LCD connector
470+
#define UART1_RX_PIN PA10 // default usage LCD connector
471+
#define UART2_TX_PIN PA2 // default usage TFT connector
472+
#define UART2_RX_PIN PA3 // default usage TFT connector
473+
#define UART4_TX_PIN PC10 // default usage TMC UART
474+
#define UART4_RX_PIN PC11 // default usage TMC UART

0 commit comments

Comments
 (0)