Replace all __attribute__((packed)) with [begin|end]_packed_struct

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2021-07-27 20:23:00 +08:00 committed by Gustavo Henrique Nihei
parent 21b69cfd5d
commit 440ca48778

View File

@ -43,7 +43,7 @@
* Private Types
****************************************************************************/
__attribute__((packed)) struct dfu_signature
begin_packed_struct struct dfu_signature
{
uint32_t linker_start_address;
uint32_t linker_end_address;
@ -52,7 +52,7 @@ __attribute__((packed)) struct dfu_signature
uint8_t firmware_type1;
uint8_t firmware_type2;
uint8_t reserved2[8];
};
} end_packed_struct;
/****************************************************************************
* Public Data