⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 msp430_tusb3410.cfg

📁 桦宣430研讨会资料盘里的430源码资料
💻 CFG
字号:
;------------------------------------------------------------------------------
;
; This file is based of the 'VCP-3410-FW_Download-EEPROM_not_serialized.CFG'
; EEPROM configuration proposal from SLLC251. It has been modified to use a
; a different PID and product descriptor string.
;
; Andreas Dannenberg
; MSP430 Applications
; Texas Instruments Inc.
; October 2005
;
;------------------------------------------------------------------------------
;
; The example below places device and string descriptors, as well as 
; application firmware, into the header of an EEPROM to be used with TUSB3410.  
; Unlike with TUSB2136, TUSB3210, and TUSB5052, the firmware should NOT modify
; these descriptors programmatically, or it will overwrite the values below.  
; Assuming they are not overwritten, these descriptors will be reported to the 
; USB host.  
;
; For 3410 virtual COM port applications (USB/serial bridge), use this template and do the
; following:
;
; 1)  Customize the VID/PID in the device descriptor
; 2)  Customize the strings
;
;
;------------------------------------------------------------------------------
;
; Commands:
; Header Generator uses these commands to generate an EEPROM header that is
; readable by the bootcode.  Check the bootcode listings for more information about
; how each descriptor block is handled.  
;
; USB_DEVICE_DESCRIPTOR,       
; USB_CONFIGURATION_DESCRIPTOR 
; USB_STRING_DESCRIPTOR        
; AUTOEXEC_BINARY_FIRMWARE,   
; END                          
;
; For string descriptors, '@' is used to generate SPACE character.  
; Therefore it is not possible to include an '@' symbol in the descriptor
; string.  
;
;
; Rules:
;
; 1. Before any descriptor blocks, create the device signature using DEVICE_NAME.
;    This is the part number for the USB controller device (i.e., "TUSB3410")
;
; 2. The last descriptor block for any config file should always be END.  
;
; 3. The header should contain, at a minimum, a device descriptor and string 
;    descriptors for manufacturer, product, and serial number.  Firmware can
;    also be included with AUTOEXEC_BINARY_FIRMWARE.  
;
; 4. USB_STRING_DESCRIPTOR type only supports one language ID.
;
;------------------------------------------------------------------------------
;
; Step 1 - Create device signature
;
DEVICE_NAME = TUSB3410       ; Tells the bootcode there's a valid EEPROM header
;                            ; Do not change if this script is being used with
;                            ; TUSB3410.  
;
;------------------------------------------------------------------------------
;
; Step 2 - Create descriptor blocks
;
DESCRIPTOR_BLOCK USB_DEVICE_DESCRIPTOR
;
0x12,               ; size of this descriptor in bytes
0x01,               ; device descriptor type
0x10, 0x01          ; USB spec 1.10
0xff,               ; device class is vendor-specific
0x00                ; no sub-classes
0x00                ; no protocol
0x08                ; 8 bytes in endpoint 0
0x51, 0x04          ; vendor ID: 0x0451 (TI's VID)  <-- ** ENTER CUSTOM VID **
0xef, 0xbe          ; product ID: 0xbeef            <-- ** ENTER CUSTOM PID **
0x01, 0x01          ; device release number = 1.01
0x01,               ; index of string descriptor describing manufacturer
0x02,               ; index of string descriptor describing product
0x00,               ; ZERO index of string descriptor  NO serial number
0x01,               ; number of possible configuration
;
;
DESCRIPTOR_BLOCK USB_STRING_DESCRIPTOR
;
; string descriptors
;
;
; string index 0, language ID
;
0x04,                               ; length: 4 bytes
0x03,                               ; DESC_TYPE_STRING
0x09,0x04,                          ; english 0x0409
;
;------------------------------------------------------
; string index 1, Manufacturer
;------------------------------------------------------
;
0x24,                               ; length: 36 bytes
0x03,                               ; DESC_TYPE_STRING
'T',0x00,'e',0x00,'x',0x00,'a',0x00,
's',0x00,'@',0x00,'I',0x00,'n',0x00,
's',0x00,'t',0x00,'r',0x00,'u',0x00,
'm',0x00,'e',0x00,'n',0x00,'t',0x00,
's',0x00,
;
; = "Texas Instruments"
;
;------------------------------------------------------
; string index 2, Product
;------------------------------------------------------
;
0x42,                               ; 66 bytes
0x03,                               ; DESC_TYPE_STRING
'M',0x00,'S',0x00,'P',0x00,'4',0x00,
'3',0x00,'0',0x00,'-',0x00,'T',0x00,
'U',0x00,'S',0x00,'B',0x00,'3',0x00,
'4',0x00,'1',0x00,'0',0x00,'@',0x00,
'R',0x00,'e',0x00,'f',0x00,'e',0x00,
'r',0x00,'e',0x00,'n',0x00,'c',0x00,
'e',0x00,'@',0x00,'D',0x00,'e',0x00,
's',0x00,'i',0x00,'g',0x00,'n',0x00,
;
; = "MSP430-TUSB3410 Reference Design"
;
;------------------------------------------------------
; string index 3, Serial #
;------------------------------------------------------
;
;0x22,                               ; length: 34 bytes
;0x03,                               ; DESC_TYPE_STRING
;'T',0x00,'U',0x00,'S',0x00,'B',0x00,
;'3',0x00,'4',0x00,'1',0x00,'0',0x00,
;'@',0x00,'@',0x00,'@',0x00,'@',0x00,
;'@',0x00,'@',0x00,'@',0x00,'@',0x00
;
; = "TUSB3410        "
;
;------------------------------------------------------
; string index Block Terminates
;------------------------------------------------------
;
0x00,0x00                           ; 0 bytes, end of block
;------------------------------------------------------------------------------
;
;
;DESCRIPTOR_BLOCK AUTOEXEC_BINARY_FIRMWARE
;
;LOAD_BINARY_FILE = umpe3410.i51
;
;------------------------------------------------------------------------------
; Step 3 - Terminate the header
;
DESCRIPTOR_BLOCK END
;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -