Skip to content

Commit

Permalink
extend uart checks
Browse files Browse the repository at this point in the history
  • Loading branch information
ellensp committed Feb 10, 2024
1 parent 4eba643 commit 9974327
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Marlin/src/HAL/STM32/inc/SanityCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@
* Check for common serial pin conflicts
*/
#define _CHECK_SERIAL_PIN(N) (( \
BTN_EN1 == N || DOGLCD_CS == N || HEATER_BED_PIN == N || FAN0_PIN == N || \
SDIO_D2_PIN == N || SDIO_D3_PIN == N || SDIO_CK_PIN == N || SDIO_CMD_PIN == N \
BTN_EN1 == N || BTN_EN2 == N ||DOGLCD_CS == N || HEATER_BED_PIN == N || FAN0_PIN == N || \
SDIO_D2_PIN == N || SDIO_D3_PIN == N || SDIO_CK_PIN == N || SDIO_CMD_PIN == N || \
Y_STEP_PIN == N || Y_ENABLE_PIN == N || E0_ENABLE_PIN == N || POWER_LOSS_PIN == N \
))
#define CHECK_SERIAL_PIN(T,N) defined(UART##N##_##T##_PIN) && _CHECK_SERIAL_PIN(UART##N##_##T##_PIN)
#if SERIAL_IN_USE(1)
Expand Down
15 changes: 15 additions & 0 deletions Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_E3_V2_0.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,18 @@
#define E0_SLAVE_ADDRESS 3
#endif
#endif

// Pins for documentation and sanity checks only.
// Changing these will not change the pin they are on.

// Hardware UART pins
#define UART1_TX_PIN PA9 // default usage LCD connector
#define UART1_RX_PIN PA10 // default usage LCD connector
#define UART2_TX_PIN PA2 // default usage TFT connector
#define UART2_RX_PIN PA3 // default usage TFT connector
#define UART3_TX_PIN PB10 // default usage Y_STEP_PIN
#define UART3_RX_PIN PB11 // default usage Y_ENABLE_PIN
#define UART4_TX_PIN PC10 // default usage TMC UART
#define UART4_RX_PIN PC11 // default usage TMC UART
#define UART5_TX_PIN PC12 // default usage POWER_LOSS_PIN
#define UART5_RX_PIN PD2 // default usage E0_ENABLE_PIN
11 changes: 11 additions & 0 deletions Marlin/src/pins/stm32g0/pins_BTT_SKR_MINI_E3_V3_0.h
Original file line number Diff line number Diff line change
Expand Up @@ -461,3 +461,14 @@
#ifndef BOARD_NEOPIXEL_PIN
#define BOARD_NEOPIXEL_PIN PA8 // LED driving pin
#endif

// Pins for documentation and sanity checks only.
// Changing these will not change the pin they are on.

// Hardware UART pins
#define UART1_TX_PIN PA9 // default usage LCD connector
#define UART1_RX_PIN PA10 // default usage LCD connector
#define UART2_TX_PIN PA2 // default usage TFT connector
#define UART2_RX_PIN PA3 // default usage TFT connector
#define UART4_TX_PIN PC10 // default usage TMC UART
#define UART4_RX_PIN PC11 // default usage TMC UART

0 comments on commit 9974327

Please sign in to comment.