mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
Bugfix for write size. The write size for encryption have to be rounded to 16 bytes.
A wl_config structure size now ounded to 16. Flash Emulator updated to work with defined minimum size. Tests are updated.
This commit is contained in:
@@ -29,8 +29,15 @@ typedef struct WL_Config_s {
|
||||
uint32_t wr_size; /*!< Minimum amount of bytes per one block at write operation: 1...*/
|
||||
uint32_t version; /*!< A version of current implementatioon. To erase and reallocate complete memory this ID must be different from id before.*/
|
||||
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.*/
|
||||
uint32_t reserved[3]; /*!< dummy array to make wl_config_t size compatible with flash encryption (divided by 16)*/
|
||||
uint32_t crc; /*!< CRC for this config*/
|
||||
|
||||
public:
|
||||
WL_Config_s()
|
||||
{
|
||||
for (int i=0 ; i< 3 ; i++) this->reserved[i] = 0;
|
||||
}
|
||||
} wl_config_t;
|
||||
|
||||
_Static_assert((sizeof(wl_config_t) % 16) == 0, "Size of wl_config_t structure should be compatible with flash encryption");
|
||||
|
||||
#endif // _WL_Config_H_
|
||||
Reference in New Issue
Block a user