Skip to content

Commit

Permalink
Merge pull request #1353 from ETCLabs/iar-compiler-error-on-src-host-…
Browse files Browse the repository at this point in the history
…usbh.c

The IAR compilier does not resolve references to fields in the anonym…
  • Loading branch information
hathach authored Feb 26, 2022
2 parents 244154e + c06ecbe commit f392054
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/host/usbh.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ typedef struct
uint8_t hub_port;
uint8_t speed;

volatile struct TU_ATTR_PACKED
struct TU_ATTR_PACKED
{
uint8_t connected : 1;
uint8_t addressed : 1;
uint8_t configured : 1;
uint8_t suspended : 1;
volatile uint8_t connected : 1;
volatile uint8_t addressed : 1;
volatile uint8_t configured : 1;
volatile uint8_t suspended : 1;
};
} usbh_dev0_t;

Expand All @@ -78,12 +78,12 @@ typedef struct {
uint8_t hub_port;
uint8_t speed;

volatile struct TU_ATTR_PACKED
struct TU_ATTR_PACKED
{
uint8_t connected : 1;
uint8_t addressed : 1;
uint8_t configured : 1;
uint8_t suspended : 1;
volatile uint8_t connected : 1;
volatile uint8_t addressed : 1;
volatile uint8_t configured : 1;
volatile uint8_t suspended : 1;
};

//------------- device descriptor -------------//
Expand Down

0 comments on commit f392054

Please sign in to comment.