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 @@ typedef enum {
}hid_request_type_t;
/// USB HID Descriptor
typedef ATTR_PACKED_STRUCT(struct) {
typedef struct ATTR_PACKED {
uint8_t bLength; /**< Numeric expression that is the total size of the HID descriptor */
uint8_t bDescriptorType; /**< Constant name specifying type of HID descriptor. */
@@ -155,7 +155,7 @@ typedef enum
* @{ */
/// Standard HID Boot Protocol Mouse Report.
typedef ATTR_PACKED_STRUCT(struct)
typedef struct ATTR_PACKED
{
uint8_t buttons; /**< buttons mask for currently pressed buttons in the mouse. */
int8_t x; /**< Current delta x movement of the mouse. */
@@ -179,7 +179,7 @@ typedef enum {
* @{ */
/// Standard HID Boot Protocol Keyboard Report.
typedef ATTR_PACKED_STRUCT(struct)
typedef struct ATTR_PACKED
{
uint8_t modifier; /**< Keyboard modifier byte, indicating pressed modifier keys (a combination of HID_KEYBOARD_MODIFER_* masks). */
uint8_t reserved; /**< Reserved for OEM use, always set to 0. */