From cd70e6ce8bc1bc3d4a000fd310f7853fb86ed07b Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 14 Apr 2019 10:56:33 +0000 Subject: Re-merged MFS from trunk. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_19.1.x@12742 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/hal/lib/complex/mfs/hal_mfs.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'os/hal/lib/complex/mfs/hal_mfs.h') diff --git a/os/hal/lib/complex/mfs/hal_mfs.h b/os/hal/lib/complex/mfs/hal_mfs.h index 14dfc75ee..43ffcbd47 100644 --- a/os/hal/lib/complex/mfs/hal_mfs.h +++ b/os/hal/lib/complex/mfs/hal_mfs.h @@ -36,7 +36,8 @@ #define MFS_BANK_MAGIC_1 0xEC705ADEU #define MFS_BANK_MAGIC_2 0xF0339CC5U -#define MFS_HEADER_MAGIC 0x5FAE45F0U +#define MFS_HEADER_MAGIC_1 0x5FAE45F0U +#define MFS_HEADER_MAGIC_2 0xF045AE5FU /*===========================================================================*/ /* Driver pre-compile time settings. */ @@ -240,9 +241,13 @@ typedef union { typedef union { struct { /** - * @brief Data header magic. + * @brief Data header magic 1. */ - uint32_t magic; + uint32_t magic1; + /** + * @brief Data header magic 2. + */ + uint32_t magic2; /** * @brief Record identifier. */ @@ -257,8 +262,8 @@ typedef union { */ uint32_t size; } fields; - uint8_t hdr8[12]; - uint32_t hdr32[3]; + uint8_t hdr8[16]; + uint32_t hdr32[4]; } mfs_data_header_t; typedef struct { -- cgit v1.2.3