You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
size_tstart_addr; /*!< start address in the flash*/
23
+
24
+
#if defined(_MSC_VER)
25
+
#defineALIGNED_(x) __declspec(align(x))
26
+
#else
27
+
#if defined(__GNUC__)
28
+
#defineALIGNED_(x) __attribute__ ((aligned(x)))
29
+
#endif
30
+
#endif
31
+
32
+
typedefstructALIGNED_(16) WL_Config_s { /*!< Size of wl_config_t structure should be divided by 16 for encryption*/
33
+
size_tstart_addr; /*!< start address in the flash*/
28
34
uint32_tfull_mem_size; /*!< Amount of memory used to store data in bytes*/
29
35
uint32_tpage_size; /*!< One page size in bytes. Page could be more then memory block. This parameter must be page_size >= N*block_size.*/
30
36
uint32_tsector_size; /*!< size of flash memory sector that will be erased and stored at once (erase)*/
31
37
uint32_tupdaterate; /*!< Amount of accesses before block will be moved*/
32
38
uint32_twr_size; /*!< Minimum amount of bytes per one block at write operation: 1...*/
33
39
uint32_tversion; /*!< A version of current implementatioon. To erase and reallocate complete memory this ID must be different from id before.*/
34
40
size_ttemp_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.*/
35
-
uint32_treserved[wl_config_t_size]; /*!< dummy array to make wl_config_t size compatible with flash encryption (divided by 16)*/
36
41
uint32_tcrc; /*!< CRC for this config*/
37
-
public:
38
-
WL_Config_s()
39
-
{
40
-
for (inti=0 ; i<wl_config_t_size ; i++) this->reserved[i] =0;
41
-
}
42
42
} wl_config_t;
43
43
44
44
#ifndef_MSC_VER// MSVS has different format for this define
0 commit comments