From 5cccd3b658e776924293ae4ea7b3c8bcf712fe6f Mon Sep 17 00:00:00 2001 From: Rogerio Goncalves Date: Fri, 3 Nov 2023 15:22:27 +0000 Subject: [PATCH] resync board_defs.py and fix chelper import (#84) --- scripts/spi_flash/board_defs.py | 7 +++++++ scripts/spi_flash/fatfs_lib.py | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/spi_flash/board_defs.py b/scripts/spi_flash/board_defs.py index 173170cf9..d1949f0e0 100644 --- a/scripts/spi_flash/board_defs.py +++ b/scripts/spi_flash/board_defs.py @@ -59,6 +59,13 @@ "spi_pins": "PA6,PB5,PA5", "cs_pin": "PA4", }, + "btt-gtr": {"mcu": "stm32f407xx", "spi_bus": "spi1", "cs_pin": "PA4"}, + "fysetc-spider": { + "mcu": "stm32f446xx", + "spi_bus": "spi1", + "cs_pin": "PA4", + "current_firmware_path": "OLD.BIN", + }, "btt-skr-se-bx": { "mcu": "stm32h743xx", "spi_bus": "spi3a", diff --git a/scripts/spi_flash/fatfs_lib.py b/scripts/spi_flash/fatfs_lib.py index 4c36ade5e..87c3f841a 100644 --- a/scripts/spi_flash/fatfs_lib.py +++ b/scripts/spi_flash/fatfs_lib.py @@ -3,13 +3,14 @@ # Copyright (C) 2021 Eric Callahan # # This file may be distributed under the terms of the GNU GPLv3 license. -import chelper import os import sys KLIPPER_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../")) sys.path.append(os.path.join(KLIPPER_DIR, "klippy")) +import chelper # noqa: E402 + DEST_LIB = "fatfs.so" FATFS_DIR = os.path.join(KLIPPER_DIR, "lib/fatfs") FATFS_SRC = ["ff.c", "ffsystem.c", "ffunicode.c"]