Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ BigTreeTech SKRat V1.0 (STM32G0B1VE) #27361

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Marlin/src/core/boards.h
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@
#define BOARD_BTT_MANTA_M5P_V1_0 4004 // BigTreeTech Manta M5P V1.0 (STM32G0B1RE)
#define BOARD_BTT_MANTA_M8P_V1_0 4005 // BigTreeTech Manta M8P V1.0 (STM32G0B1VE)
#define BOARD_BTT_MANTA_M8P_V1_1 4006 // BigTreeTech Manta M8P V1.1 (STM32G0B1VE)
#define BOARD_BTT_SKRAT_V1_0 4007 // BigTreeTech SKRat V1.0 (STM32G0B1VE)

//
// STM32 ARM Cortex-M3
Expand Down
60 changes: 45 additions & 15 deletions Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_3.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,39 +44,69 @@
// Limit Switches
//
#ifdef X_STALL_SENSITIVITY
#define X_STOP_PIN X_DIAG_PIN
#ifndef X_STOP_PIN
#define X_STOP_PIN X_DIAG_PIN
#endif
#if X_HOME_TO_MIN
#define X_MAX_PIN P1_28 // X+
#ifndef X_MAX_PIN
#define X_MAX_PIN P1_28 // X+
#endif
#else
#define X_MIN_PIN P1_28 // X+
#ifndef X_MIN_PIN
#define X_MIN_PIN P1_28 // X+
#endif
#endif
#else
#define X_MIN_PIN P1_29 // X-
#define X_MAX_PIN P1_28 // X+
#ifndef X_MIN_PIN
#define X_MIN_PIN P1_29 // X-
#endif
#ifndef X_MAX_PIN
#define X_MAX_PIN P1_28 // X+
#endif
#endif

#ifdef Y_STALL_SENSITIVITY
#define Y_STOP_PIN Y_DIAG_PIN
#ifndef Y_STOP_PIN
#define Y_STOP_PIN Y_DIAG_PIN
#endif
#if Y_HOME_TO_MIN
#define Y_MAX_PIN P1_26 // Y+
#ifndef Y_MAX_PIN
#define Y_MAX_PIN P1_26 // Y+
#endif
#else
#define Y_MIN_PIN P1_26 // Y+
#ifndef Y_MIN_PIN
#define Y_MIN_PIN P1_26 // Y+
#endif
#endif
#else
#define Y_MIN_PIN P1_27 // Y-
#define Y_MAX_PIN P1_26 // Y+
#ifndef Y_MIN_PIN
#define Y_MIN_PIN P1_27 // Y-
#endif
#ifndef Y_MAX_PIN
#define Y_MAX_PIN P1_26 // Y+
#endif
#endif

#ifdef Z_STALL_SENSITIVITY
#define Z_STOP_PIN Z_DIAG_PIN
#ifndef Z_STOP_PIN
#define Z_STOP_PIN Z_DIAG_PIN
#endif
#if Z_HOME_TO_MIN
#define Z_MAX_PIN P1_24 // Z+
#ifndef Z_MAX_PIN
#define Z_MAX_PIN P1_24 // Z+
#endif
#else
#define Z_MIN_PIN P1_24 // Z+
#ifndef Z_MIN_PIN
#define Z_MIN_PIN P1_24 // Z+
#endif
#endif
#else
#define Z_MIN_PIN P1_25 // Z-
#define Z_MAX_PIN P1_24 // Z+
#ifndef Z_MIN_PIN
#define Z_MIN_PIN P1_25 // Z-
#endif
#ifndef Z_MAX_PIN
#define Z_MAX_PIN P1_24 // Z+
#endif
#endif

#define ONBOARD_ENDSTOPPULLUPS // Board has built-in pullups
Expand Down
2 changes: 2 additions & 0 deletions Marlin/src/pins/pins.h
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,8 @@
#include "stm32g0/pins_BTT_MANTA_M8P_V1_0.h" // STM32G0 env:STM32G0B1VE_btt
#elif MB(BTT_MANTA_M8P_V1_1)
#include "stm32g0/pins_BTT_MANTA_M8P_V1_1.h" // STM32G0 env:STM32G0B1VE_btt
#elif MB(BTT_SKRAT_V1_0)
#include "stm32g0/pins_BTT_SKRAT_V1_0.h" // STM32G0 env:STM32G0B1VE_btt env:STM32G0B1VE_btt_xfer

//
// STM32 ARM Cortex-M0
Expand Down
Loading
Loading