Skip to content
Open
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
6 changes: 3 additions & 3 deletions tools/jtag/mpsse_jtag.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
and a wrong one cannot be mistaken for success. That is lesson 429: compare
against a case whose right answer you already have.
"""
import ctypes, sys, time

LIB = "/opt/homebrew/lib/libftdi1.2.dylib"
import ctypes, ctypes.util, os, sys, time
# libftdi1: $T27_LIBFTDI if set; else Homebrew on macOS; else the loader search, so B2 reads on Linux (#7927).
LIB = os.environ.get("T27_LIBFTDI") or ("/opt/homebrew/lib/libftdi1.2.dylib" if sys.platform == "darwin" else ctypes.util.find_library("ftdi1") or "libftdi1.so.2")
VID, PID = 0x0403, 0x6014

# MPSSE opcodes
Expand Down
Loading