Device descriptor in RAM

This commit is contained in:
Raphael Assenat 2016-08-22 22:00:54 -04:00
parent 553598ab64
commit 158fc4fdca
1 changed files with 1 additions and 2 deletions

3
main.c
View File

@ -126,7 +126,7 @@ static const struct cfg0 cfg0 PROGMEM = {
}; };
const struct usb_device_descriptor device_descriptor PROGMEM = { const struct usb_device_descriptor device_descriptor = {
.bLength = sizeof(struct usb_device_descriptor), .bLength = sizeof(struct usb_device_descriptor),
.bDescriptorType = DEVICE_DESCRIPTOR, .bDescriptorType = DEVICE_DESCRIPTOR,
.bcdUSB = 0x0101, .bcdUSB = 0x0101,
@ -147,7 +147,6 @@ const struct usb_device_descriptor device_descriptor PROGMEM = {
static struct usb_parameters usb_params = { static struct usb_parameters usb_params = {
.flags = USB_PARAM_FLAG_CONFDESC_PROGMEM | .flags = USB_PARAM_FLAG_CONFDESC_PROGMEM |
USB_PARAM_FLAG_DEVDESC_PROGMEM |
USB_PARAM_FLAG_REPORTDESC_PROGMEM, USB_PARAM_FLAG_REPORTDESC_PROGMEM,
.devdesc = (PGM_VOID_P)&device_descriptor, .devdesc = (PGM_VOID_P)&device_descriptor,
.configdesc = (PGM_VOID_P)&cfg0, .configdesc = (PGM_VOID_P)&cfg0,