AvrStudio 4.16 ;====================================================================
; Descriptor Types...
;--------------------------------------------------------------------
.equ DEVICE_DESCRIPTOR =$01;
.equ CONFIGURATION_DESCRIPTOR =$02;
.equ STRING_DESCRIPTOR =$03;
.equ INTERFACE_DESCRIPTOR =$04;
.equ ENDPOINT_DESCRIPTOR =$05;
.equ DEVICE_QUALIFIER_DESCRIPTOR =$06;
.equ OTHER_SPEED_CONFIGURATION_DESCRIPTOR=$07;
.equ INTERFACE_POWER =$08;
.equ OTG_DESCRIPTOR =$09;
.equ DEBUG_DESCRIPTOR =$0A;
.equ INTERFACE_ASSOCIATION =$0B;
;====================================================================
CodeDeviceDescriptor: ;$8006
;....................................................................
.equ bLength =(EndCodeDeviceDescriptor-CodeDeviceDescriptor)*2;$12;#18
;.equ bDescriptorType =DEVICE_DESCRIPTOR ;$01
.equ bcdUSB =$0200 ;$0200-USB2.0, $0110-USB1.1, $0100-USB1.0
.equ bDeviceClass =$02 ;$FE/$00
.equ bDeviceSubClass =$00 ;$01/$00
.equ bDeviceProtocol =$00 ;
.equ bMaxPackedSize0 =$40 ;#64
.equ idVendor =$03EB ;$03EB
.equ idProduct =$201F ;$2FFB/$201D
.equ bcdDevice =$1000 ;$0000/$1000
.equ iManufacturer =$00 ;
.equ iProduct =$00 ;
.equ iSerialNumber =$00 ;
.equ bNumConfiguration =$01 ;
;....................................................................
.db bLength, DEVICE_DESCRIPTOR;bDescriptorType
.db low(bcdUSB), high(bcdUSB)
.db bDeviceClass, bDeviceSubClass
.db bDeviceProtocol,bMaxPackedSize0
.db low(idVendor), high(idVendor)
.db low(idProduct), high(idProduct)
.db low(bcdDevice), high(bcdDevice)
.db iManufacturer, iProduct
.db iSerialNumber, bNumConfiguration
EndCodeDeviceDescriptor:
;====================================================================
точку с запятой всегда ставлю в конце строки - привычка, всегда могу добавить коммент.
P.S. за трассировщик спасибо:)
P.S.S. к тому же ошибка была не здесь:) скоро будет обещанный код :)