mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 09:03:34 +08:00
flashfs uses Upstream NuttX's new struct packing
This commit is contained in:
committed by
Daniel Agar
parent
f6e82afff8
commit
187482c1ba
@@ -91,7 +91,7 @@ typedef enum flash_flags_t {
|
||||
*/
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wattributes"
|
||||
typedef struct packed_struct flash_entry_header_t {
|
||||
typedef begin_packed_struct struct flash_entry_header_t {
|
||||
h_magic_t magic; /* Used to ID files*/
|
||||
h_flag_t flag; /* Used to erase this entry */
|
||||
uint32_t crc; /* Calculated over the size - end of data */
|
||||
@@ -99,7 +99,7 @@ typedef struct packed_struct flash_entry_header_t {
|
||||
* Will result the offset of the next active file or
|
||||
* free space. */
|
||||
flash_file_token_t file_token; /* file token type - essentially the name/type */
|
||||
} flash_entry_header_t;
|
||||
} end_packed_struct flash_entry_header_t;
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user