Merge pull request #1353 from ETCLabs/iar-compiler-error-on-src-host-usbh.c

The IAR compilier does not resolve references to fields in the anonym…
This commit is contained in:
Ha Thach 2022-02-26 18:05:35 +07:00 committed by GitHub
commit f392054e70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 10 deletions

View File

@ -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;
@ -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 -------------//