Commit Graph

25 Commits

Author SHA1 Message Date
sonika.rathi 51f2719dfc fix(wear_levelling): Fix coverity issue overflowed constant in WL_Flash.cpp 2024-11-26 09:50:22 +01:00
Adam Múdry e151184da7 refactor: Remove -Wno-format from storage related components 2023-10-22 17:56:41 +00:00
Adam Múdry ab1eb37fe8 feat(partition_table): Add read-only partition flag and functionality 2023-10-11 00:01:05 +02:00
Adam Múdry f083570af6 refactor(wear_levelling): WL_Flash flash_drv pointer changed to partition pointer 2023-10-10 14:35:45 +02:00
Martin Vychodil 0e350d49ad fix(Storage/Wear Levelling): Fixed too few arguments in ESP_LOGV macro (WL_Flash::config)
- Added missing argument for wl_page_size in ESP_LOGV macro in WL_Flash::config function.
2023-06-26 17:40:44 +02:00
Sonika Rathi 4585ff806a Revamp variable names and update code documentation for wear levelling component
wear levelling code cleanup
2023-06-21 10:34:24 +02:00
radek.tandler 0f842a2ca2 wear_levelling: fixed reinitialization of wl status blocks after power off event 2023-04-11 16:05:22 +02:00
Sudeep Mohanty a9fda54d39 esp_hw_support/esp_system: Re-evaluate header inclusions and include directories
This commit updates the visibility of various header files and cleans up
some unnecessary inclusions. Also, this commit removes certain header
include paths which were maintained for backward compatibility.
2022-03-07 11:18:08 +05:30
Ivan Grokhotkov 911a8fc714 spiffs, wear_levelling: update copyright headers 2022-02-22 00:09:24 +03:00
Angus Gratton 66fb5a29bb Whitespace: Automated whitespace fixes (large commit)
Apply the pre-commit hook whitespace fixes to all files in the repo.

(Line endings, blank lines at end of file, trailing whitespace)
2020-11-11 07:36:35 +00:00
Dmitry 82eca97300 Version update from V1 to V2 now done in correct way.
Before this works only first time.
The source and test updated.
State length was changed to macro.
2018-10-26 09:21:30 +03:00
Dmitry 2281f6318a Remove CR line ends. 2018-07-31 08:45:43 +03:00
Dmitry e98a49a691 Position save included. 2018-07-31 08:45:43 +03:00
Dmitry 06bab70822 Usless read removed. 2018-07-31 08:45:43 +03:00
Dmitry c9872c649e Additional sector position should not be changed at update. 2018-07-31 08:45:43 +03:00
Dmitry 9d609af54c Added check for version after write. 2018-07-31 08:45:43 +03:00
Dmitry f392727abf Additional info about version update included. 2018-07-31 08:45:42 +03:00
Dmitry e834d6fffc CRC check improved. 2018-07-31 08:45:42 +03:00
Dmitry 35842d02ab Calculation for heap usage corrected with workaround.
Fixed problem with multiple mount/unmount for different devices.
Additional check for structure length included into the code.
Remove useless spaces.
Added initialization for reserved memory.
2018-07-31 08:45:42 +03:00
Dmitry f05f3fbde8 Added test for version update from V1 to V2. Problems for tests on host are fixed. Random function changed to esp_random() 2018-07-31 08:45:42 +03:00
Dmitry a6d6c58eca The version of WL component changed from 1 to 2.
WL version 2 mark used sectors as 16 bytes block of bytes with CRC.
This changes required because old version did not worked with encryption.
Additional unit tests are implemented.
2018-07-31 08:45:42 +03:00
Angus Gratton a67d5d89e0 Replace all DOS line endings with Unix
Command run was:
git ls-tree -r HEAD --name-only | xargs dos2unix
2018-07-12 19:10:37 +08:00
Dmitry 7b287c25b1 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.
2018-03-06 10:26:21 +03:00
Dmitry Yakovlev b36e580756 wear_levelling: fix write and read length for single access was wrong. 2017-07-17 12:00:40 +03:00
Ivan Grokhotkov 52b51df859 add wear_levelling component and example 2017-04-17 11:01:17 +08:00