Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#302 review]Rework eeprom emulation for buffered access #333

Merged
merged 2 commits into from
Sep 21, 2018

Conversation

fpistm
Copy link
Member

@fpistm fpistm commented Sep 19, 2018

Split of #302 from @hasenbanck

Nils Hasenbanck added 2 commits September 19, 2018 15:40
The current EEPROM emulation didn't had any buffered access to the
data on the flash. Every access to a byte would trigger a whole
page read / write. For writes it would mean, that the whole page
would be erased. For backward compability we will keep
the current functions as they are, but will add functions
to fill/flush the buffer and read from it.

The buffer size is static and is one page in size.

Fixes: stm32duino#296

Signed-off-by: Nils Hasenbanck <nils.hasenbanck@trendig.com>
Clean up also the old references to the original author/version/date
since we already refactored this code quite well.
The copyright notice of course is still intact.

Signed-off-by: Nils Hasenbanck <nils.hasenbanck@trendig.com>
@hasenbanck
Copy link
Contributor

LGTM

@fpistm fpistm merged commit 8de2139 into stm32duino:master Sep 21, 2018
@fpistm fpistm deleted the pr-302-review branch September 21, 2018 06:56
benwaffle pushed a commit to benwaffle/Arduino_Core_STM32 that referenced this pull request Apr 10, 2019
[stm32duino#302 review]Rework eeprom emulation for buffered access
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants