Skip to content

Commit 3ef1e99

Browse files
committed
ftdi: Implement high level FTDI d2xx support
This is extracted from github.com/periph/extra which never worked properly.
1 parent 30b7483 commit 3ef1e99

File tree

21 files changed

+4152
-2
lines changed

21 files changed

+4152
-2
lines changed

.gohci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,11 @@ workers:
349349
- i2c-list
350350
- cmd:
351351
- spi-list
352+
# - cmd:
353+
# - periph-smoketest
354+
# - ftdi
355+
# - -type
356+
# - ft232r
352357

353358
# Laptop on Windows 10.
354359
- name: win10
@@ -421,3 +426,8 @@ workers:
421426
- i2c-list
422427
- cmd:
423428
- spi-list
429+
# - cmd:
430+
# - periph-smoketest
431+
# - ftdi
432+
# - -type
433+
# - ft232h

ftdi/debian/98-ft232h.rules

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2017 The Periph Authors. All rights reserved.
2+
# Use of this source code is governed under the Apache License, Version 2.0
3+
# that can be found in the LICENSE file.
4+
5+
# udev rule file to make FTDI devices accessible usable as non-root and disable
6+
# the ftdi_sio driver.
7+
#
8+
# See https://periph.io/device/ftdi/ for more information.
9+
10+
# Make FTDI device usable from users in group plugdev.
11+
SUBSYSTEM=="usb", ATTRS{idVendor}=="0403", MODE="0664", GROUP="plugdev"
12+
13+
# Disallow ftdi_sio from loading.
14+
SUBSYSTEM=="usb", DRIVER=="ftdi_sio", ATTRS{idVendor}=="0403", RUN+="/bin/sh -c 'echo $kernel > /sys/bus/usb/drivers/ftdi_sio/unbind'"

0 commit comments

Comments
 (0)