Skip to content

Commit 816d632

Browse files
committed
Structure size updated to the 16 bytes * N
1 parent 7f0b00e commit 816d632

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/wear_levelling/private_include/WL_Config.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@
2121
*
2222
*/
2323
typedef struct WL_Config_s {
24-
size_t start_addr; /*!< start address in the flash*/
24+
size_t start_addr; /*!< start address in the flash*/
2525
uint32_t full_mem_size; /*!< Amount of memory used to store data in bytes*/
2626
uint32_t page_size; /*!< One page size in bytes. Page could be more then memory block. This parameter must be page_size >= N*block_size.*/
2727
uint32_t sector_size; /*!< size of flash memory sector that will be erased and stored at once (erase)*/
2828
uint32_t updaterate; /*!< Amount of accesses before block will be moved*/
2929
uint32_t wr_size; /*!< Minimum amount of bytes per one block at write operation: 1...*/
3030
uint32_t version; /*!< A version of current implementatioon. To erase and reallocate complete memory this ID must be different from id before.*/
3131
size_t temp_buff_size; /*!< Size of temporary allocated buffer to copy from one flash area to another. The best way, if this value will be equal to sector size.*/
32-
uint32_t reserved[3]; /*!< dummy array to make wl_config_t size compatible with flash encryption (divided by 16)*/
32+
uint32_t reserved[6]; /*!< dummy array to make wl_config_t size compatible with flash encryption (divided by 16)*/
3333
uint32_t crc; /*!< CRC for this config*/
3434
public:
3535
WL_Config_s()
3636
{
37-
for (int i=0 ; i< 3 ; i++) this->reserved[i] = 0;
37+
for (int i=0 ; i< 6 ; i++) this->reserved[i] = 0;
3838
}
3939
} wl_config_t;
4040

0 commit comments

Comments
 (0)