FreeCalypso > hg > fc-usbser-tools
view eeproms/mcu-host-bus @ 68:5cbde3c80c24
fteeprom-{erase,prog}: detach logic: change to detach by default
As it turns out, detaching all ttyUSB interfaces of a multichannel device
does not require outside knowledge of how many channels there are, as in
our previous -d option design that is being removed here - instead we can
read the bNumInterfaces constant from the USB device's config descriptor
and thus know how many interfaces there are in total. Based on this
discovery, change the design of fteeprom-{erase,prog} as follows:
* remove -d option;
* flip the default to where we detach all interfaces by default;
* add -n option to NOT detach any interfaces.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 13 Sep 2023 06:37:03 +0000 |
parents | 45d026fdb315 |
children | d46ea7a3fa0c |
line wrap: on
line source
# We are going to use COTS FT2232D breakout boards in the MCU host bus # emulation mode (enabled at run time via libftdi, cannot be configured # in the EEPROM) to drive several different candidate 176x220 pix TFT LCDs # (8-bit parallel 8080-style interface) as part of our LCD evaluation # testing and vendor selection process. The purpose of this EEPROM config # with a custom FTDI PID is to keep the Linux kernel's ftdi_sio driver # from binding to this FT2232D instance, avoiding the creation of ttyUSBx # device nodes for it. vid 0x0403 # FTDI pid 0x7157 # Allocated by FTDI to Falconia Partners LLC manuf FTDI product MCU host bus emulation # Try to be nice to Weendoze lusers (or should it be Losedows?) byte00 0x00 # Channel A driver: D2XX byte01 0x00 # Channel B driver: D2XX