1
0
mirror of https://github.com/raphnet/gc_n64_usb-v3 synced 2024-12-21 23:08:53 -05:00

Device descriptor in RAM

This commit is contained in:
Raphael Assenat 2016-08-22 22:00:54 -04:00
parent 553598ab64
commit 158fc4fdca

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),
.bDescriptorType = DEVICE_DESCRIPTOR,
.bcdUSB = 0x0101,
@ -147,7 +147,6 @@ const struct usb_device_descriptor device_descriptor PROGMEM = {
static struct usb_parameters usb_params = {
.flags = USB_PARAM_FLAG_CONFDESC_PROGMEM |
USB_PARAM_FLAG_DEVDESC_PROGMEM |
USB_PARAM_FLAG_REPORTDESC_PROGMEM,
.devdesc = (PGM_VOID_P)&device_descriptor,
.configdesc = (PGM_VOID_P)&cfg0,