diff options
| author | hathach <[email protected]> | 2015-05-01 18:34:08 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2015-05-01 18:34:08 +0700 |
| commit | 9218d1e8bb9fd6cb37358c9e08f6ff9849c6110c (patch) | |
| tree | 902d45c86f4f28564e620217cc8a5810a37ba443 /tinyusb/host | |
| parent | 6dbd580b5398cf9e7a4b847b77539fe3f9ae9558 (diff) | |
replace ATTR_PACKED_STRUCT by simply ATTR_PACKED (drop IAR support)
remove "primitive_types.h" by simply include stdbool.h, stdint.h
Diffstat (limited to 'tinyusb/host')
| -rw-r--r-- | tinyusb/host/hub.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tinyusb/host/hub.h b/tinyusb/host/hub.h index 6ecba96f0..665765a2a 100644 --- a/tinyusb/host/hub.h +++ b/tinyusb/host/hub.h @@ -93,7 +93,7 @@ //indicators. See Section 11.5.3.
//D15...D8: Reserved
-typedef ATTR_PACKED_STRUCT(struct){
+typedef struct ATTR_PACKED{
uint8_t bLength ; ///< Size of descriptor
uint8_t bDescriptorType ; ///< Other_speed_Configuration Type
uint8_t bNbrPorts;
@@ -147,7 +147,7 @@ enum{ // data in response of HUB_REQUEST_GET_STATUS, wIndex = 0 (hub)
typedef struct {
union{
- ATTR_PACKED_STRUCT(struct) {
+ struct ATTR_PACKED {
uint16_t local_power_source : 1;
uint16_t over_current : 1;
uint16_t : 14;
@@ -162,7 +162,7 @@ STATIC_ASSERT( sizeof(hub_status_response_t) == 4, "size is not correct"); // data in response of HUB_REQUEST_GET_STATUS, wIndex = Port num
typedef struct {
union {
- ATTR_PACKED_STRUCT(struct) {
+ struct ATTR_PACKED {
uint16_t connect_status : 1;
uint16_t port_enable : 1;
uint16_t suspend : 1;
|
