i got the file from EasyHID and added the descriptor from the Descriptor tool like the DUMMY guide said, here are its contents:
#define EP0_BUFF_SIZE 64 ; 8, 16, 32, or 64
#define MAX_NUM_INT 1 ; For tracking Alternate Setting
#define MAX_EP_NUMBER 1 ; UEP1
#define NUM_CONFIGURATIONS 1
#define NUM_INTERFACES 1
#define MODE_PP _PPBM0
#define UCFG_VAL _PUEN|_TRINT|_FS|MODE_PP ; Full-speed
; DEVICE CLASS USAGE
#define USB_USE_HID
; HID
; Endpoints Allocation
#define HID_INTF_ID 0x00
#define HID_UEP UEP1
#define HID_BD_OUT ep1Bo
#define HID_INT_OUT_EP_SIZE 64
#define HID_BD_IN ep1Bi
#define HID_INT_IN_EP_SIZE 64
#define HID_NUM_OF_DSC 1
; ************************************************** ****************
; This table is polled by the host immediately after USB Reset has been released.
; This table defines the maximum packet size EP0 can take.
; See section 9.6.1 of the Rev 1.0 USB specification.
; These fields are application DEPENDENT. Modify these to meet
; your specifications.
; ************************************************** ****************
DeviceDescriptor
retlw (EndDeviceDescriptor-DeviceDescriptor)/2 ; bLength Length of this descriptor
retlw DSC_DEV ; bDescType This is a DEVICE descriptor
retlw 0x10 ; bcdUSBUSB Revision 1.10 (low byte)
retlw 0x01 ; high byte
retlw 0x00 ; bDeviceClass zero means each interface operates independently
retlw 0x00 ; bDeviceSubClass
retlw 0x00 ; bDeviceProtocol
retlw EP0_BUFF_SIZE ; bMaxPacketSize for EP0
; idVendor (low byte, high byte)
retlw 0x81
retlw 0x17
; idProduct (low byte, high byte)
retlw 0xD0
retlw 0x07
retlw 0x00 ; bcdDevice (low byte)
retlw 0x00 ; (high byte)
retlw 0x01 ; iManufacturer (string index)
retlw 0x02 ; iProduct (string index)
; iSerialNumber (string index)
retlw 0x00
retlw NUM_CONFIGURATIONS ; bNumConfigurations
EndDeviceDescriptor
; ************************************************** ****************
; This table is retrieved by the host after the address has been set.
; This table defines the configurations available for the device.
; See section 9.6.2 of the Rev 1.0 USB specification (page 184).
; These fields are application DEPENDENT.
; Modify these to meet your specifications.
; ************************************************** ****************
; Configuration pointer table
USB_CD_Ptr
Configs
db low Config1, high Config1
db low Config1, high Config1
; Configuration Descriptor
Config1
retlw (Interface1-Config1)/2 ; bLength Length of this descriptor
retlw DSC_CFG ; bDescType 2=CONFIGURATION
Config1Len
retlw low ((EndConfig1 - Config1)/2) ; Length of this configuration
retlw high ((EndConfig1 - Config1)/2)
retlw 0x01 ; bNumInterfaces Number of interfaces
retlw 0x01 ; bConfigValue Configuration Value
retlw 0x00 ; iConfig (string index)
retlw 0xA0 ; bmAttributes attributes - bus powered
; Max power consumption (2X mA)
retlw 0x32
Interface1
retlw (HIDDescriptor1-Interface1)/2 ; length of descriptor
retlw DSC_INTF
retlw 0x00 ; number of interface, 0 based array
retlw 0x00 ; alternate setting
retlw 0x02 ; number of endpoints used in this interface
retlw 0x03 ; interface class - assigned by the USB
retlw 0x00 ; boot device
retlw 0x00 ; interface protocol - mouse
retlw 0x00 ; index to string descriptor that describes this interface
HIDDescriptor1
retlw (Endpoint1In-HIDDescriptor1)/2 ; descriptor size (9 bytes)
retlw 0x21 ; descriptor type (HID)
retlw 0x00 ; HID class release number (1.00)
retlw 0x01
retlw 0x00 ; Localized country code (none)
retlw 0x01 ; # of HID class descriptor to follow (1)
retlw 0x22 ; Report descriptor type (HID)
ReportDescriptor1Len
retlw low ((EndReportDescriptor1-ReportDescriptor1)/2)
retlw high ((EndReportDescriptor1-ReportDescriptor1)/2)
Endpoint1In
retlw (EndPoint1Out-Endpoint1In)/2 ; length of descriptor
retlw DSC_EP
retlw 0x81 ; EP1, In
retlw 0x03 ; Interrupt
retlw 0x40 ; This should be the size of the endpoint buffer
retlw 0x00
retlw 0x0A ; Polling interval
EndPoint1Out
retlw (EndConfig1-EndPoint1Out)/2 ; Length of this Endpoint Descriptor
retlw DSC_EP ; bDescriptorType = 5 for Endpoint Descriptor
retlw 0x01 ; Endpoint number & direction
retlw 0x03 ; Transfer type supported by this Endpoint
retlw 0x40 ; This should be the size of the endpoint buffer
retlw 0x00
retlw 0x0A ; Polling interval
EndConfig1
ReportDescriptor1
; vendor defined usage page
RETLW 0x05
RETLW 0x01 ; USAGE_PAGE (Generic Desktop)
RETLW 0x09
RETLW 0x04 ; USAGE (Joystick)
RETLW 0xa1
RETLW 0x01 ; COLLECTION (Application)
RETLW 0x09
RETLW 0x04 ; USAGE (Joystick)
RETLW 0xa1
RETLW 0x00 ; COLLECTION (Physical)
RETLW 0x05
RETLW 0x09 ; USAGE_PAGE (Button)
RETLW 0x19
RETLW 0x01 ; USAGE_MINIMUM (Button 1)
RETLW 0x29
RETLW 0x04 ; USAGE_MAXIMUM (Button 4)
RETLW 0x15
RETLW 0x00 ; LOGICAL_MINIMUM (0)
RETLW 0x25
RETLW 0x01 ; LOGICAL_MAXIMUM (1)
RETLW 0x95
RETLW 0x08 ; REPORT_COUNT (8)
RETLW 0x75
RETLW 0x01 ; REPORT_SIZE (1)
RETLW 0x81
RETLW 0x02 ; INPUT (Data Var Abs)
RETLW 0xc0 ; END_COLLECTION
RETLW 0xc0 ; END_COLLECTION
EndReportDescriptor1
; String pointer table
USB_SD_Ptr
Strings
db low String0, high String0
db low String1, high String1
db low String2, high String2
db low String3, high String3
String0
retlw (String1-String0)/2 ; Length of string
retlw DSC_STR ; Descriptor type 3
retlw 0x09 ; Language ID (as defined by MS 0x0409)
retlw 0x04
; company name
String1
retlw (String2-String1)/2
retlw DSC_STR
retlw 'M'
retlw 0x00
retlw 'y'
retlw 0x00
retlw 'C'
retlw 0x00
retlw 'o'
retlw 0x00
retlw 'm'
retlw 0x00
retlw 'p'
retlw 0x00
retlw 'a'
retlw 0x00
retlw 'n'
retlw 0x00
retlw 'y'
retlw 0x00
; product name
String2
retlw (String3-String2)/2
retlw DSC_STR
retlw 'M'
retlw 0x00
retlw 'y'
retlw 0x00
retlw 'P'
retlw 0x00
retlw 'r'
retlw 0x00
retlw 'o'
retlw 0x00
retlw 'd'
retlw 0x00
retlw 'u'
retlw 0x00
retlw 'c'
retlw 0x00
retlw 't'
retlw 0x00
; serial number
String3
retlw (String4-String3)/2
retlw DSC_STR
Bookmarks