extend uart checks

This commit is contained in:
ellensp 2024-02-11 03:28:37 +13:00
parent 4eba643ae1
commit 9974327d33
3 changed files with 29 additions and 2 deletions

View file

@ -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)

View file

@ -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

View file

@ -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