packed_struct replaced by begin_packed_struct and end_packed_struct

This commit is contained in:
Aleksandr Vyhovanec
2017-01-09 14:17:49 +03:00
parent 592c50a1af
commit bf528f2071
9 changed files with 59 additions and 52 deletions
+6 -6
View File
@@ -119,7 +119,7 @@
* Public Types
****************************************************************************/
struct pn532_frame
begin_packed_struct struct pn532_frame
{
uint8_t preamble; /* 0x00 */
uint16_t start_code; /* 0x00FF (BE) -> 0xFF00 (LE) */
@@ -130,22 +130,22 @@ struct pn532_frame
uint8_t tfi; /* Frame idenfifier 0xD4, 0xD5 */
uint8_t data[]; /* LEN-1 bytes of Packet Data Information.
* The first byte PD0 is the Command Code */
} packed_struct;
} end_packed_struct;
struct pn_poll_response
begin_packed_struct struct pn_poll_response
{
uint8_t nbtg;
uint8_t tg;
uint8_t target_data[];
} packed_struct;
} end_packed_struct;
struct pn_target_type_a
begin_packed_struct struct pn_target_type_a
{
uint16_t sens_res;
uint8_t sel_res;
uint8_t nfcid_len;
uint8_t nfcid_data[];
} packed_struct;
} end_packed_struct;
struct pn_firmware_version
{
+3 -3
View File
@@ -1,7 +1,7 @@
/****************************************************************************
* drivers/mtd/mtd_config.c
*
* Copyright (C) 2014 Gregory Nutt. All rights reserved.
* Copyright (C) 2014, 2017 Gregory Nutt. All rights reserved.
* Copyright (C) 2013 Ken Pettit. All rights reserved.
* Author: Ken Pettit <pettitkd@gmail.com>
* With Updates from Gregory Nutt <gnutt@nuttx.org>
@@ -101,13 +101,13 @@ struct mtdconfig_struct_s
FAR uint8_t *buffer; /* Temp block read buffer */
};
struct mtdconfig_header_s
begin_packed_struct struct mtdconfig_header_s
{
uint8_t flags; /* Entry control flags */
uint8_t instance; /* Instance of the item */
uint16_t id; /* ID of the config data item */
uint16_t len; /* Length of the data block */
} packed_struct;
} end_packed_struct;
/****************************************************************************
* Private Function Prototypes