Skip to content

Commit

Permalink
Update libfx2.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed May 5, 2018
1 parent 747b20f commit ce7bb38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
15 changes: 5 additions & 10 deletions firmware/main.c
Expand Up @@ -5,8 +5,7 @@
#include <fx2eeprom.h>
#include "glasgow.h"

const struct usb_desc_device
usb_device = {
usb_desc_device_c usb_device = {
.bLength = sizeof(struct usb_desc_device),
.bDescriptorType = USB_DESC_DEVICE,
.bcdUSB = 0x0200,
Expand All @@ -23,8 +22,7 @@ usb_device = {
.bNumConfigurations = 1,
};

const struct usb_desc_configuration
usb_configs[] = {
usb_desc_configuration_c usb_configs[] = {
{
.bLength = sizeof(struct usb_desc_configuration),
.bDescriptorType = USB_DESC_CONFIGURATION,
Expand All @@ -38,8 +36,7 @@ usb_configs[] = {
}
};

const struct usb_desc_interface
usb_interfaces[] = {
usb_desc_interface_c usb_interfaces[] = {
{
.bLength = sizeof(struct usb_desc_interface),
.bDescriptorType = USB_DESC_INTERFACE,
Expand All @@ -53,14 +50,12 @@ usb_interfaces[] = {
}
};

const char *
usb_strings[] = {
usb_ascii_string_c usb_strings[] = {
"whitequark research",
"Glasgow Debug Tool",
};

const struct usb_descriptor_set
usb_descriptor_set = {
usb_descriptor_set_c usb_descriptor_set = {
.device = &usb_device,
.config_count = ARRAYSIZE(usb_configs),
.configs = usb_configs,
Expand Down

0 comments on commit ce7bb38

Please sign in to comment.