- Changing main device type to HID (0x03)
This commit is contained in:
Jacob Alexander 2014-09-23 11:42:40 -07:00
parent ed9abf88a3
commit 94608f93e9
2 changed files with 20 additions and 16 deletions

View file

@ -24,6 +24,8 @@
#ifndef usb_keyboard_serial_h__
#define usb_keyboard_serial_h__
// ----- Includes -----
// Compiler Includes
#include <stdint.h>
@ -40,6 +42,7 @@
#include "output_com.h"
// ----- Function Declarations -----
// Basic USB Configuration
@ -257,7 +260,7 @@ static const uint8_t PROGMEM device_descriptor[] = {
18, // bLength
1, // bDescriptorType
0x00, 0x02, // bcdUSB
0, // bDeviceClass
0x03, // bDeviceClass - 0x03 = HID Class
0, // bDeviceSubClass
0, // bDeviceProtocol
ENDPOINT0_SIZE, // bMaxPacketSize0
@ -647,5 +650,6 @@ static const struct descriptor_list_struct {
#define NUM_DESC_LIST (sizeof(descriptor_list)/sizeof(struct descriptor_list_struct))
#endif // usb_keyboard_serial_h__