| 1 | #see http://developer.intra2net.com/git/?p=libftdi;a=blob;f=src/ftdi.c |
| 2 | #and http://developer.intra2net.com/git/?p=libftdi;a=blob;f=src/ftdi.h |
| 3 | #and http://developer.intra2net.com/git/?p=libftdi;a=tree;f=ftdi_eeprom |
| 4 | #and http://developer.intra2net.com/git/?p=libftdi;a=blob;f=ftdi_eeprom/example.conf |
| 5 | #and http://developer.intra2net.com/git/?p=libftdi;a=blob;f=ftdi_eeprom/main.c |
| 6 | |
| 7 | ############ |
| 8 | # Filename # |
| 9 | ############ |
| 10 | filename=eeprom.new # Filename of the EE file to be generated. Leave empty to skip file writing |
| 11 | #flash_raw=false # Boolean: |
| 12 | |
| 13 | ## Include another config file? |
| 14 | #include |
| 15 | |
| 16 | ############ |
| 17 | # IDs # |
| 18 | ############ |
| 19 | vendor_id="0x0403" # Integer: Vendor ID. FT245R factory default 0x0403 |
| 20 | product_id="0x6001" # Integer: Product ID. FT245R factory default 0x6001 |
| 21 | |
| 22 | ############################## |
| 23 | # Device and Serial Strings # |
| 24 | ############################## |
| 25 | manufacturer="ACME Inc" # String: Manufacturer. FT245R factory default FTDI |
| 26 | product="USB Serial Converter" # String: Product. FT245R factory default FT245R USB FIFO |
| 27 | serial="08-15" # String: Serial"number". FT245R factory default (sample chip) A9082P2B |
| 28 | use_serial=true # Boolean: Use the serial number string |
| 29 | |
| 30 | ############ |
| 31 | # Options # |
| 32 | ############ |
| 33 | max_power=500 # Integer: Max. power consumption: value * 2 mA(?). Use 0 if self_powered = true. FT245R factory default 90 |
| 34 | self_powered=false # Boolean: Turn this off for bus powered |
| 35 | remote_wakeup=true # Boolean: Turn this on for remote wakeup feature |
| 36 | |
| 37 | # Normally you don't have to change one of these flags |
| 38 | #in_is_isochronous=false # Boolean: In Endpoint is Isochronous |
| 39 | #out_is_isochronous=false # Boolean: Out Endpoint is Isochronous |
| 40 | #suspend_pull_downs=false # Boolean: Enable suspend pull downs for lower power |
| 41 | #change_usb_version=false # Boolean: Change USB Version |
| 42 | #usb_version=0x00 # Integer: Only used when change_usb_version is enabled |
| 43 | |
| 44 | #default_pid=0x6001 # Integer: Default Pid. |
| 45 | |
| 46 | #eeprom_type # Integer: Chip Type / EEPROM Type. Corresponds to ftdi_chip_type struct in ftdi.h |
| 47 | #high_current=false # Boolean: High Current Drive |
| 48 | |
| 49 | ##Type_R chips |
| 50 | # Only used on FT-R chips (when omitted, use chip defaults) |
| 51 | # Possible values correspond to enum ftdi_cbus_func in ftdi.h and strings are defined in function parse_cbus in ftdi_eeprom/main.c |
| 52 | # Values in the struct are (see current ftid.h for an up to date list): |
| 53 | # CBUS_TXDEN = 0, CBUS_PWREN = 1, CBUS_RXLED = 2, CBUS_TXLED = 3, CBUS_TXRXLED = 4, CBUS_SLEEP = 5, CBUS_CLK48 = 6, CBUS_CLK24 = 7, CBUS_CLK12 = 8, CBUS_CLK6 = 9, CBUS_IOMODE = 0xa, CBUS_BB_WR = 0xb, CBUS_BB_RD = 0xc |
| 54 | # Strings to be used here are: |
| 55 | # "TXDEN", "PWREN", "RXLED", "TXLED", "TXRXLED", "SLEEP", "CLK48", "CLK24", "CLK12", "CLK6", "IOMODE", "BB_WR", "BB_RD" |
| 56 | cbus0=TXLED # String parsed to integer: FT245R factory default TXLED |
| 57 | cbus1=RXLED # String parsed to integer: FT245R factory default RXLED |
| 58 | cbus2=TXDEN # String parsed to integer: FT245R factory default TXDEN |
| 59 | cbus3=PWREN # String parsed to integer: FT245R factory default PWREN |
| 60 | cbus4=SLEEP # String parsed to integer: FT245R factory default SLEEP |
| 61 | |
| 62 | ## Only used on FT232H chips (when omitted, use chip defaults) |
| 63 | # Possible values correspond to enum ftdi_cbush_func in ftdi.h and strings are defined in function parse_cbush in ftdi_eeprom/main.c. |
| 64 | # Values are (see current ftid.h for an up to date list): |
| 65 | # CBUSH_TRISTATE = 0, CBUSH_TXLED = 1, CBUSH_RXLED = 2, CBUSH_TXRXLED = 3, CBUSH_PWREN = 4, CBUSH_SLEEP = 5, CBUSH_DRIVE_0 = 6, CBUSH_DRIVE1 = 7, CBUSH_IOMODE = 8, CBUSH_TXDEN = 9, CBUSH_CLK30 = 10, CBUSH_CLK15 = 11, CBUSH_CLK7_5 = 12 |
| 66 | # Strings to be used in this config file are: |
| 67 | # "TRISTATE", "TXLED", "RXLED", "TXRXLED", "PWREN", "SLEEP", "DRIVE_0", "DRIVE1", "IOMODE", "TXDEN", "CLK30", "CLK15", "CLK7_5" |
| 68 | ##Type_232H Chips |
| 69 | #cbush0=TRISTATE # String parsed to integer: |
| 70 | #cbush1=TRISTATE # String parsed to integer: |
| 71 | #cbush2=TRISTATE # String parsed to integer: |
| 72 | #cbush3=TRISTATE # String parsed to integer: |
| 73 | #cbush4=TRISTATE # String parsed to integer: |
| 74 | #cbush5=TRISTATE # String parsed to integer: |
| 75 | #cbush6=TRISTATE # String parsed to integer: |
| 76 | #cbush7=TRISTATE # String parsed to integer: |
| 77 | #cbush8=TRISTATE # String parsed to integer: |
| 78 | #cbush9=TRISTATE # String parsed to integer: |
| 79 | # Group Drive |
| 80 | # Strings to be used in this config file are: |
| 81 | # "4MA", "8MA", "12MA", "16MA" |
| 82 | #group0_drive # Integer: |
| 83 | |
| 84 | # Only used on FT230X chips (when omitted, use chip defaults) |
| 85 | # Possible values correspond to enum ftdi_cbusx_func in ftdi.h and strings are defined in function parse_cbusx in ftdi_eeprom/main.c. |
| 86 | # Values are (see current ftid.h for an up to date list): |
| 87 | # CBUSX_TRISTATE = 0, CBUSX_TXLED = 1, CBUSX_RXLED = 2, CBUSX_TXRXLED = 3, CBUSX_PWREN = 4, CBUSX_SLEEP = 5, CBUSX_DRIVE_0 = 6, CBUSX_DRIVE1 = 7, CBUSX_IOMODE = 8, CBUSX_TXDEN = 9, CBUSX_CLK24 = 10, CBUSX_CLK12 = 11, CBUSX_CLK6 = 12, CBUSX_BAT_DETECT = 13, CBUSX_BAT_DETECT_NEG = 14, CBUSX_I2C_TXE = 15, CBUSX_I2C_RXF = 16, CBUSX_VBUS_SENSE = 17, CBUSX_BB_WR = 18, CBUSX_BB_RD = 19, CBUSX_TIME_STAMP = 20, CBUSX_AWAKE = 21 |
| 88 | # Strings to be used in this config file are: |
| 89 | # "TRISTATE", "TXLED", "RXLED", "TXRXLED", "PWREN", "SLEEP", "DRIVE_0", "DRIVE1", "IOMODE", "TXDEN", "CLK24", "CLK12", "CLK6", "BAT_DETECT", "BAT_DETECT_NEG", "I2C_TXE", "I2C_RXF", "VBUS_SENSE", "BB_WR", "BB_RD", "TIME_STAMP", "AWAKE" |
| 90 | #cbusx0=TXDEN # String parsed to integer: |
| 91 | #cbusx1=RXLED # String parsed to integer: |
| 92 | #cbusx2=TXLED # String parsed to integer: |
| 93 | #cbusx3=SLEEP # String parsed to integer: |
| 94 | |
| 95 | ######## |
| 96 | # Misc # |
| 97 | ######## |
| 98 | |
| 99 | ## Pin Configuration |
| 100 | #invert_txd # Boolean: Invert TXD signal |
| 101 | #invert_rxd # Boolean: Invert RXD signal |
| 102 | #invert_rts # Boolean: Invert RTS signal |
| 103 | #invert_cts # Boolean: Invert CTS signal |
| 104 | #invert_dtr # Boolean: Invert DTR signal |
| 105 | #invert_dsr # Boolean: Invert DSR signal |
| 106 | #invert_dcd # Boolean: Invert DCD signal |
| 107 | #invert_ri # Boolean: Invert RI signal |
| 108 | |
| 109 | ## Channel Types and Drivers |
| 110 | # Possible values are (see current ftid.h (Interface Mode macros) and ftdi.c "channel_mode" for an up to date list). They are parsed in fucntion parse_chtype in ftdi_eeprom/main.c. |
| 111 | # (from ftid.h): UART= 0x0, FIFO = 0x1, OPTO = 0x2, CPU = 0x4, FT1284 = 0x8, RS485 = 0x10 |
| 112 | # (from ftdi.c): UART = 0x0, FIOF = 0x1, CPU = 0x2, OPTO = 0x3, FT1284 = 0x3 |
| 113 | # Strings to be used in this config file are: |
| 114 | # "UART", "FIFO", "OPTO", "CPU", "FT1284" |
| 115 | cha_type=FIFO # String parsed to integer: |
| 116 | #chb_type # String parsed to integer: |
| 117 | |
| 118 | cha_vcp=false # Boolean: |
| 119 | #chb_vcp=false # Boolean: |
| 120 | #chc_vcp=false # Boolean: |
| 121 | #chd_vcp=false # Boolean: |
| 122 | #cha_rs485 # Boolean: |
| 123 | #chb_rs485 # Boolean: |
| 124 | #chc_rs485 # Boolean: |
| 125 | #chd_rs485 # Boolean: |
| 126 | |
| 127 | ## Include user defined binary data into the the eeprom at address? |
| 128 | #user_data_addr # Integer: |
| 129 | #user_data_file # String: Filename of the data file to be used |
| 130 | |
| 131 | |