I work in a C project with QtCreator (yes, this is primarily for C ++, but so far it has worked fine for C).
Now I get a red link to a valid code that compiles fine:
Basically this is this unchanged example libopencm3 example project for a virtual COM port.
You may see some problems in the code, maybe not fatal, but what can make the editor consider this a mistake?
I tried replacing with an struct usb_device_descriptor
equivalent typedef, but that didn't help.
An error in the second line says "expected", received. ". Closing is }
annotated as" extra ",
Here's how the structure is declared:
struct usb_device_descriptor {
uint8_t bLength;
uint8_t bDescriptorType;
uint16_t bcdUSB;
uint8_t bDeviceClass;
uint8_t bDeviceSubClass;
uint8_t bDeviceProtocol;
uint8_t bMaxPacketSize0;
uint16_t idVendor;
uint16_t idProduct;
uint16_t bcdDevice;
uint8_t iManufacturer;
uint8_t iProduct;
uint8_t iSerialNumber;
uint8_t bNumConfigurations;
} __attribute__((packed));