📄 usb_descr.lis
字号:
0010
0010 ;----------------------------------------------------------------------
0010 ; Endpoint Setup Table
0010 ;
0010 ; This table provides the data to configure the endpoint mode registers
0010 ; for IN/OUT direction.
0010 ;----------------------------------------------------------------------
AREA func_lit (ROM,REL,CON)
0010 .LITERAL
0010 USB_D0_C1_EP_SETUP: ;
0010 80 DB USB_DIR_IN ; Endpoint EP1(IN)
0011 7F DB USB_DIR_UNUSED ; Endpoint EP2 not used for this configuration
0012 .ENDLITERAL
0012
0012 ;----------------------------------------------------------------------
0012 ; Interface Lookup Table
0012 ;
0012 ; This table is indexed by interface number.
0012 ;
0012 ;----------------------------------------------------------------------
EXPORT USB_D0_C1_INTERFACE_RPT_LOOKUP
0012 .LITERAL
0012 USB_D0_C1_INTERFACE_RPT_LOOKUP: ;
0012 0026 DW USB_D0_C1_I0_HID_RPT_LOOKUP
0014 .ENDLITERAL
0014
0014 ;----------------------------------------------------------------------
0014 ; HID Class Descriptor transfer descriptor table
0014 ;----------------------------------------------------------------------
AREA func_lit (ROM,REL,CON)
EXPORT USB_D0_C1_HID_CLASS_DESCR_TABLE
0014 .LITERAL
0014 USB_D0_C1_HID_CLASS_DESCR_TABLE: ;
0014 00 DB ((1) - 1) ; Number of table entries - 1
0015 00 DB USB_DS_ROM ; Data source (USB_DS_*)
0016 0009 DW DESCR_SIZE_HID_CLASS ; Transfer size
0018 0024 DW USB_D0_C1_I0_HID_DESCR_START ; Data source address
001A 0000 DW NULL_PTR ; Transfer Completion Status Block Address
001C DE DB 0xde ; Reserved
001D .ENDLITERAL
001D
001D ;----------------------------------------------------------------------
001D ; HID Report Descriptor transfer descriptor table
001D ;----------------------------------------------------------------------
AREA func_lit (ROM,REL,CON)
EXPORT USB_D0_C1_HID_RPT_DESCR_TABLE
001D .LITERAL
001D USB_D0_C1_HID_RPT_DESCR_TABLE: ;
001D 00 DB ((1) - 1) ; Number of table entries - 1
001E 00 DB USB_DS_ROM ; Data source (USB_DS_*)
001F 0034 DW USB_HID_REPORT_1_DESCR_SIZE ; Transfer size
0021 0034 DW USB_HID_REPORT_1_DESCR_START ; Data source address
0023 0000 DW NULL_PTR ; Transfer Completion Status Block Address
0025 DE DB 0xde ; Reserved
0026 .ENDLITERAL
0026 ;----------------------------------------------------------------------
0026 ; HID Report Lookup Table for (USB_D0_C1_I0)
0026 ;----------------------------------------------------------------------
AREA func_lit (ROM,REL,CON)
0026 .LITERAL
0026 USB_D0_C1_I0_HID_RPT_LOOKUP:
0026 04 DB (4) ; Table size
0027 0033 DW (USB_D0_C1_I0_IN_RPTS) ; Table entry
0029 0000 DW (NULL_PTR) ; Table entry
002B 003C DW (USB_D0_C1_I0_OUT_RPTS) ; Table entry
002D 0000 DW (NULL_PTR) ; Table entry
002F 0045 DW (USB_D0_C1_I0_FEATURE_RPTS) ; Table entry
0031 0000 DW (NULL_PTR) ; Table entry
0033 .ENDLITERAL
0033 ;----------------------------------------------------------------------
0033 ; HID IN Report Transfer Descriptor Table for ()
0033 ;----------------------------------------------------------------------
IF WIZARD_DEFINED_REPORT_STORAGE
AREA func_lit (ROM,REL,CON)
0033 .LITERAL
0033 USB_D0_C1_I0_IN_RPTS:
0033 00 DB ((1) - 1) ; Number of table entries - 1
0034 01 DB USB_DS_RAM ; Data source (USB_DS_*)
0035 0008 DW USB_HID_RPT_1_IN_RPT_SIZE ; Transfer size
0037 0000 DW USB_INTERFACE_0_IN_RPT_DATA ; Data source address
0039 0000 DW NULL_PTR ; Transfer Completion Status Block Address
003B DE DB 0xde ; Reserved
003C .ENDLITERAL
ENDIF ; WIZARD_DEFINED_REPORT_STORAGE
;----------------------------------------------------------------------
; HID OUT Report Transfer Descriptor Table for ()
;----------------------------------------------------------------------
IF WIZARD_DEFINED_REPORT_STORAGE
AREA func_lit (ROM,REL,CON)
003C .LITERAL
003C USB_D0_C1_I0_OUT_RPTS:
003C 00 DB ((1) - 1) ; Number of table entries - 1
003D 01 DB USB_DS_RAM ; Data source (USB_DS_*)
003E 0000 DW USB_HID_RPT_1_OUT_RPT_SIZE ; Transfer size
0040 0008 DW USB_INTERFACE_0_OUT_RPT_DATA ; Data source address
0042 0000 DW NULL_PTR ; Transfer Completion Status Block Address
0044 DE DB 0xde ; Reserved
0045 .ENDLITERAL
ENDIF ; WIZARD_DEFINED_REPORT_STORAGE
;----------------------------------------------------------------------
; HID FEATURE Report Transfer Descriptor Table for ()
;----------------------------------------------------------------------
IF WIZARD_DEFINED_REPORT_STORAGE
AREA func_lit (ROM,REL,CON)
0045 .LITERAL
0045 USB_D0_C1_I0_FEATURE_RPTS:
0045 00 DB ((1) - 1) ; Number of table entries - 1
0046 01 DB USB_DS_RAM ; Data source (USB_DS_*)
0047 0000 DW USB_HID_RPT_1_FEATURE_RPT_SIZE ; Transfer size
0049 0010 DW USB_INTERFACE_0_FEATURE_RPT_DATA ; Data source address
004B 0000 DW NULL_PTR ; Transfer Completion Status Block Address
004D DE DB 0xde ; Reserved
004E .ENDLITERAL
ENDIF ; WIZARD_DEFINED_REPORT_STORAGE
;----------------------------------------------------------------------
;----------------------------------------------------------------------
; Configuration Descriptor Table
; for (USB_D0)
;
; This table provides transfer descriptors for each USB Configuration
; Descriptor
;----------------------------------------------------------------------
AREA func_lit (ROM,REL,CON)
004E .LITERAL
004E USB_D0_CONFIG_DESCR_TABLE: ;
004E 00 DB ((1) - 1) ; Number of table entries - 1
004F 00 DB USB_DS_ROM ; Data source (USB_DS_*)
0050 0022 DW USB_D0_C1_DESCR_SIZE ; Transfer size
0052 0012 DW USB_D0_C1_DESCR_START ; Data source address
0054 0000 DW NULL_PTR ; Transfer Completion Status Block Address
0056 DE DB 0xde ; Reserved
0057 .ENDLITERAL
0057
0057 ;----------------------------------------------------------------------
0057 ; Device Descriptor Table
0057 ;
0057 ; This table provides transfer descriptors for each USB Device Descriptor
0057 ;----------------------------------------------------------------------
AREA func_lit (ROM,REL,CON)
EXPORT USB_DEVICE_DESCR_TABLE
0057 .LITERAL
0057 USB_DEVICE_DESCR_TABLE:
0057 00 DB ((1) - 1) ; Number of table entries - 1
0058 00 DB USB_DS_ROM ; Data source (USB_DS_*)
0059 0012 DW USB_D0_DESCR_SIZE ; Transfer size
005B 0000 DW USB_D0_DESCR_START ; Data source address
005D 0000 DW NULL_PTR ; Transfer Completion Status Block Address
005F DE DB 0xde ; Reserved
0060 .ENDLITERAL
0060 ;----------------------------------------------------------------------
0060 ;----------------------------------------------------------------------
0060 ; Interface 0 RAM Allocation (Reused across configurations)
0060 ;----------------------------------------------------------------------
IF WIZARD_DEFINED_REPORT_STORAGE
AREA bss (RAM,REL,CON)
;----------------------------------------------------------------------
; RAM allocation for IN Reports.
;----------------------------------------------------------------------
EXPORT _USB_INTERFACE_0_IN_RPT_DATA
EXPORT USB_INTERFACE_0_IN_RPT_DATA
0000 _USB_INTERFACE_0_IN_RPT_DATA:
0000 USB_INTERFACE_0_IN_RPT_DATA:
0000 BLK 8 ;
0008 ;----------------------------------------------------------------------
0008 ; RAM allocation for OUT Reports.
0008 ;----------------------------------------------------------------------
EXPORT _USB_INTERFACE_0_OUT_RPT_DATA
EXPORT USB_INTERFACE_0_OUT_RPT_DATA
0008 _USB_INTERFACE_0_OUT_RPT_DATA:
0008 USB_INTERFACE_0_OUT_RPT_DATA:
0008 BLK 8 ;
0010 ;----------------------------------------------------------------------
0010 ; RAM allocation for FEATURE Reports.
0010 ;----------------------------------------------------------------------
EXPORT _USB_INTERFACE_0_FEATURE_RPT_DATA
EXPORT USB_INTERFACE_0_FEATURE_RPT_DATA
0010 _USB_INTERFACE_0_FEATURE_RPT_DATA:
0010 USB_INTERFACE_0_FEATURE_RPT_DATA:
0010 BLK 8 ;
0018 ;----------------------------------------------------------------------
ENDIF ; WIZARD_DEFINED_REPORT_STORAGE
;----------------------------------------------------------------------
; Device Descriptor (USB_D0)
; This marks the beginning of the Device Descriptor. This descriptor
; concatenates all of the descriptors in the following format:
; Device Descriptor
; Configuration Descriptor (1)
; Interface 1 Descriptor
; HID Descriptor 1
; Endpoint Descriptor(s)
; Interface 2 Descriptor
; HID Descriptor 2
; Endpoint Descriptor(s)
; Configuration Descriptor (2)
; Interface/HID/Endpoint...
;----------------------------------------------------------------------
AREA UserModules (ROM,REL,CON)
0000 .LITERAL
0000 USB_D0_DESCR_START: ;
0000 12 DB
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -