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
+4 -3
View File
@@ -47,12 +47,13 @@
#endif
#include "tusb_option.h"
#include "primitive_types.h"
#include <stdbool.h>
#include <stdint.h>
#include "compiler/compiler.h"
typedef ATTR_PACKED_STRUCT(struct){
typedef struct ATTR_PACKED{
union {
ATTR_PACKED_STRUCT(struct) {
struct ATTR_PACKED {
uint8_t recipient : 5; ///< Recipient type tusb_std_request_recipient_t.
uint8_t type : 2; ///< Request type tusb_control_request_type_t.
uint8_t direction : 1; ///< Direction type. tusb_direction_t