FreeCalypso > hg > fc-usbser-tools
annotate 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 |
rev | line source |
---|---|
24
45d026fdb315
eeproms: bring mcu-host-bus over from freecalypso-hwlab
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 # We are going to use COTS FT2232D breakout boards in the MCU host bus |
45d026fdb315
eeproms: bring mcu-host-bus over from freecalypso-hwlab
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 # emulation mode (enabled at run time via libftdi, cannot be configured |
45d026fdb315
eeproms: bring mcu-host-bus over from freecalypso-hwlab
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 # in the EEPROM) to drive several different candidate 176x220 pix TFT LCDs |
45d026fdb315
eeproms: bring mcu-host-bus over from freecalypso-hwlab
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 # (8-bit parallel 8080-style interface) as part of our LCD evaluation |
45d026fdb315
eeproms: bring mcu-host-bus over from freecalypso-hwlab
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 # testing and vendor selection process. The purpose of this EEPROM config |
45d026fdb315
eeproms: bring mcu-host-bus over from freecalypso-hwlab
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 # with a custom FTDI PID is to keep the Linux kernel's ftdi_sio driver |
45d026fdb315
eeproms: bring mcu-host-bus over from freecalypso-hwlab
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 # from binding to this FT2232D instance, avoiding the creation of ttyUSBx |
45d026fdb315
eeproms: bring mcu-host-bus over from freecalypso-hwlab
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 # device nodes for it. |
45d026fdb315
eeproms: bring mcu-host-bus over from freecalypso-hwlab
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 |
45d026fdb315
eeproms: bring mcu-host-bus over from freecalypso-hwlab
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 vid 0x0403 # FTDI |
45d026fdb315
eeproms: bring mcu-host-bus over from freecalypso-hwlab
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 pid 0x7157 # Allocated by FTDI to Falconia Partners LLC |
45d026fdb315
eeproms: bring mcu-host-bus over from freecalypso-hwlab
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 manuf FTDI |
45d026fdb315
eeproms: bring mcu-host-bus over from freecalypso-hwlab
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 product MCU host bus emulation |
45d026fdb315
eeproms: bring mcu-host-bus over from freecalypso-hwlab
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 |
45d026fdb315
eeproms: bring mcu-host-bus over from freecalypso-hwlab
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 # Try to be nice to Weendoze lusers (or should it be Losedows?) |
45d026fdb315
eeproms: bring mcu-host-bus over from freecalypso-hwlab
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 |
45d026fdb315
eeproms: bring mcu-host-bus over from freecalypso-hwlab
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 byte00 0x00 # Channel A driver: D2XX |
45d026fdb315
eeproms: bring mcu-host-bus over from freecalypso-hwlab
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 byte01 0x00 # Channel B driver: D2XX |