Skip to content

Commit

Permalink
resync board_defs.py and fix chelper import (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerlz authored Nov 3, 2023
1 parent b826ca2 commit 5cccd3b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions scripts/spi_flash/board_defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion scripts/spi_flash/fatfs_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
# Copyright (C) 2021 Eric Callahan <[email protected]>
#
# 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"]
Expand Down

0 comments on commit 5cccd3b

Please sign in to comment.