replace ATTR_PACKED_STRUCT by simply ATTR_PACKED (drop IAR support)

remove "primitive_types.h" by simply include stdbool.h, stdint.h
This commit is contained in:
hathach
2015-05-01 18:34:08 +07:00
parent 6dbd580b53
commit 9218d1e8bb
12 changed files with 60 additions and 106 deletions

View File

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