Skip to content

Commit baeda6c

Browse files
committed
driver sanity check, fix test
1 parent a28ce8e commit baeda6c

File tree

3 files changed

+29
-9
lines changed

3 files changed

+29
-9
lines changed

Marlin/src/inc/SanityCheck.h

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,8 @@
349349
#error "HAVE_TMC2130 is now [AXIS]_DRIVER_TYPE TMC2130."
350350
#elif defined(HAVE_TMC2208)
351351
#error "HAVE_TMC2208 is now [AXIS]_DRIVER_TYPE TMC2208."
352+
#elif defined(HAVE_L6470DRIVER)
353+
#error "HAVE_L6470DRIVER is obsolete. L64xx stepper drivers are no longer supported in Marlin."
352354
#elif defined(X_IS_TMC) || defined(X2_IS_TMC) || defined(Y_IS_TMC) || defined(Y2_IS_TMC) || defined(Z_IS_TMC) || defined(Z2_IS_TMC) || defined(Z3_IS_TMC) \
353355
|| defined(E0_IS_TMC) || defined(E1_IS_TMC) || defined(E2_IS_TMC) || defined(E3_IS_TMC) || defined(E4_IS_TMC) || defined(E5_IS_TMC) || defined(E6_IS_TMC) || defined(E7_IS_TMC)
354356
#error "[AXIS]_IS_TMC is now [AXIS]_DRIVER_TYPE TMC26X."
@@ -630,6 +632,26 @@
630632
#error "LEVEL_CENTER_TOO is now BED_TRAMMING_INCLUDE_CENTER."
631633
#endif
632634

635+
// L64xx stepper drivers have been removed
636+
#define _L6470 0x6470
637+
#define _L6474 0x6474
638+
#define _L6480 0x6480
639+
#define _POWERSTEP01 0xF00D
640+
#if HAS_DRIVER(L6470)
641+
#error "L6470 stepper drivers are no longer supported in Marlin."
642+
#elif HAS_DRIVER(L6474)
643+
#error "L6474 stepper drivers are no longer supported in Marlin."
644+
#elif HAS_DRIVER(L6480)
645+
#error "L6480 stepper drivers are no longer supported in Marlin."
646+
#elif HAS_DRIVER(POWERSTEP01)
647+
#error "POWERSTEP01 stepper drivers are no longer supported in Marlin."
648+
#endif
649+
#undef _L6470
650+
#undef _L6474
651+
#undef _L6480
652+
#undef _POWERSTEP01
653+
654+
// Check AXIS_RELATIVE_MODES
633655
constexpr float arm[] = AXIS_RELATIVE_MODES;
634656
static_assert(COUNT(arm) == LOGICAL_AXES, "AXIS_RELATIVE_MODES must contain " _LOGICAL_AXES_STR "elements.");
635657

Marlin/src/pins/pins.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -779,8 +779,8 @@
779779
#define BOARD_STM32F1R 99905
780780
#define BOARD_STM32F103R 99906
781781
#define BOARD_ESP32 99907
782-
#define BOARD_STEVAL 99908 // no longer supported
783-
#define BOARD_STEVAL_3DP001V1 99908 // no longer supported
782+
#define BOARD_STEVAL 99908
783+
#define BOARD_STEVAL_3DP001V1 99908
784784
#define BOARD_BIGTREE_SKR_V1_1 99909
785785
#define BOARD_BIGTREE_SKR_V1_3 99910
786786
#define BOARD_BIGTREE_SKR_V1_4 99911
@@ -833,6 +833,8 @@
833833
#error "BOARD_STM32F103R has been renamed BOARD_STM32F103RE. Please update your configuration."
834834
#elif MOTHERBOARD == BOARD_ESP32
835835
#error "BOARD_ESP32 has been renamed BOARD_ESPRESSIF_ESP32. Please update your configuration."
836+
#elif MB(STEVAL)
837+
#error "BOARD_STEVAL_3DP001V1 (BOARD_STEVAL) is no longer supported in Marlin."
836838
#elif MB(RUMBA32)
837839
#error "BOARD_RUMBA32 is now BOARD_RUMBA32_MKS or BOARD_RUMBA32_V1_0. Please update your configuration."
838840
#elif MB(RUMBA32_AUS3D)
@@ -861,14 +863,14 @@
861863
#undef BOARD_ESP32
862864
#undef BOARD_STEVAL
863865
#undef BOARD_STEVAL_3DP001V1
864-
#undef BOARD_BIGTREE_SKR_MINI_E3
865866
#undef BOARD_BIGTREE_SKR_V1_1
866867
#undef BOARD_BIGTREE_SKR_V1_3
867868
#undef BOARD_BIGTREE_SKR_V1_4
868869
#undef BOARD_BIGTREE_SKR_V1_4_TURBO
869870
#undef BOARD_BIGTREE_BTT002_V1_0
870871
#undef BOARD_BIGTREE_SKR_PRO_V1_1
871872
#undef BOARD_BIGTREE_SKR_MINI_V1_1
873+
#undef BOARD_BIGTREE_SKR_MINI_E3
872874
#undef BOARD_BIGTREE_SKR_E3_DIP
873875
#undef BOARD_RUMBA32
874876
#undef BOARD_RUMBA32_AUS3D

buildroot/tests/FYSETC_F6

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,11 @@ exec_test $1 $2 "FYSETC F6 1.3 with DGUS" "$3"
1818
# Delta Config (generic) + UBL + ALLEN_KEY + EEPROM_SETTINGS + OLED_PANEL_TINYBOY2
1919
#
2020
use_example_configs delta/generic
21-
opt_set MOTHERBOARD BOARD_FYSETC_F6_13 \
22-
LCD_LANGUAGE ko_KR \
23-
X_DRIVER_TYPE L6470 Y_DRIVER_TYPE L6470 Z_DRIVER_TYPE L6470 \
24-
L6470_CHAIN_SCK_PIN 53 L6470_CHAIN_MISO_PIN 49 L6470_CHAIN_MOSI_PIN 40 L6470_CHAIN_SS_PIN 42 \
25-
'ENABLE_RESET_L64XX_CHIPS(V)' NOOP
21+
opt_set MOTHERBOARD BOARD_FYSETC_F6_13 LCD_LANGUAGE ko_KR
2622
opt_enable RESTORE_LEVELING_AFTER_G28 EEPROM_SETTINGS EEPROM_CHITCHAT \
2723
Z_PROBE_ALLEN_KEY AUTO_BED_LEVELING_UBL UBL_MESH_WIZARD \
2824
OLED_PANEL_TINYBOY2 MESH_EDIT_GFX_OVERLAY DELTA_CALIBRATION_MENU
29-
exec_test $1 $2 "DELTA, RAMPS, L6470, UBL, Allen Key, EEPROM, OLED_PANEL_TINYBOY2..." "$3"
25+
exec_test $1 $2 "DELTA, FYSETC F6 1.3, UBL, Allen Key, EEPROM, OLED_PANEL_TINYBOY2..." "$3"
3026

3127
#
3228
# Test mixed TMC config

0 commit comments

Comments
 (0)