mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-11 09:40:06 +00:00
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:
commit
f392054e70
@ -62,12 +62,12 @@ typedef struct
|
|||||||
uint8_t hub_port;
|
uint8_t hub_port;
|
||||||
uint8_t speed;
|
uint8_t speed;
|
||||||
|
|
||||||
volatile struct TU_ATTR_PACKED
|
struct TU_ATTR_PACKED
|
||||||
{
|
{
|
||||||
uint8_t connected : 1;
|
volatile uint8_t connected : 1;
|
||||||
uint8_t addressed : 1;
|
volatile uint8_t addressed : 1;
|
||||||
uint8_t configured : 1;
|
volatile uint8_t configured : 1;
|
||||||
uint8_t suspended : 1;
|
volatile uint8_t suspended : 1;
|
||||||
};
|
};
|
||||||
} usbh_dev0_t;
|
} usbh_dev0_t;
|
||||||
|
|
||||||
@ -78,12 +78,12 @@ typedef struct {
|
|||||||
uint8_t hub_port;
|
uint8_t hub_port;
|
||||||
uint8_t speed;
|
uint8_t speed;
|
||||||
|
|
||||||
volatile struct TU_ATTR_PACKED
|
struct TU_ATTR_PACKED
|
||||||
{
|
{
|
||||||
uint8_t connected : 1;
|
volatile uint8_t connected : 1;
|
||||||
uint8_t addressed : 1;
|
volatile uint8_t addressed : 1;
|
||||||
uint8_t configured : 1;
|
volatile uint8_t configured : 1;
|
||||||
uint8_t suspended : 1;
|
volatile uint8_t suspended : 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
//------------- device descriptor -------------//
|
//------------- device descriptor -------------//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user