mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
packed_struct replaced by begin_packed_struct and end_packed_struct
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user