Changeset bf42f57 in avrstuff for starkadroid/code/usbconfig.h


Ignore:
Timestamp:
Oct 17, 2010, 9:49:32 PM (14 years ago)
Author:
Adrien Destugues <pulkomandy@…>
Branches:
main
Children:
1dc9759
Parents:
be9ba97
Message:
  • Ajout de pins "extra" sur le PCB. On sait jamais ça peut toujours servir...
  • Gros nettoyage du code qui est maintenant fonctionnel.

git-svn-id: svn://pulkomandy.tk/avrstuff@25 c6672c3c-f6b6-47f9-9001-1fd6b12fecbe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • starkadroid/code/usbconfig.h

    rbe9ba97 rbf42f57  
    120120 * USBID-License.txt!
    121121 */
    122 #define  USB_CFG_DEVICE_ID       0x31, 0xe1
     122#define  USB_CFG_DEVICE_ID       0x31, 0x17
    123123/** Version number of the device: Minor number first, then major number.
    124124 */
     
    139139 * the macros. See the file USBID-License.txt before you assign a name.
    140140 */
    141 #define USB_CFG_DEVICE_NAME     'A','m','i','k','e','y','2','u','s','b'
     141#define USB_CFG_DEVICE_NAME     'S','t','a','r','k','a','d','r','o','i','d'
    142142/** Length of USB_CFG_DEVICE_NAME
    143143 */
    144 #define USB_CFG_DEVICE_NAME_LEN 10
     144#define USB_CFG_DEVICE_NAME_LEN 11
    145145/** See USB specification if you want to conform to an existing device class.
    146146 * This setting means to specify the class at the interface level.
     
    155155#define USB_CFG_INTERFACE_CLASS     0x03
    156156/** See USB specification if you want to conform to an existing device class or
    157  * protocol. This is a boot device.
    158  */
    159 #define USB_CFG_INTERFACE_SUBCLASS  0x01
     157 * protocol. This is not a boot device.
     158 */
     159#define USB_CFG_INTERFACE_SUBCLASS  0x00
    160160/** See USB specification if you want to conform to an existing device class or
    161  * protocol. This is keyboard protocol.
    162  */
    163 #define USB_CFG_INTERFACE_PROTOCOL  0x01
     161 * protocol.
     162 */
     163#define USB_CFG_INTERFACE_PROTOCOL  0x00
    164164/** Define this to the length of the HID report descriptor, if you implement
    165165 * an HID device. Otherwise don't define it or define it to 0.
    166166 */
    167 #define USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH    63
     167#define USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH    42
    168168
    169169/* ------------------- Fine Control over USB Descriptors ------------------- */
Note: See TracChangeset for help on using the changeset viewer.