Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Fred MCU Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MSK-SW
Infrastructure and Support
Fred
Fred MCU Firmware
Merge requests
!2
fix/wear leveler test
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fix/wear leveler test
fix/wear_leveler_test
into
master
Overview
0
Commits
3
Pipelines
0
Changes
3
Merged
Martin Killenberg
requested to merge
fix/wear_leveler_test
into
master
3 months ago
Overview
0
Commits
3
Pipelines
0
Changes
3
Expand
chore: git ignore CMakeLists.txt.user
fix: wear leveler test
feat: test wear leveler with all spans
0
0
Merge request reports
Compare
master
version 1
55530867
3 months ago
master (base)
and
latest version
latest version
55530867
3 commits,
3 months ago
version 1
55530867
3 commits,
3 months ago
3 files
+
31
−
33
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
src/wear_leveller.h
+
1
−
7
Options
@@ -3,13 +3,6 @@
#include
<stdint.h>
void
wear_leveller_init
(
uint8_t
*
eepromBaseAddress
);
uint8_t
wear_leveller_read
(
void
);
void
wear_leveller_write
(
uint8_t
data
);
uint8_t
wear_leveller_span
(
void
);
/*
* Wear levelling scheme:
*
@@ -76,6 +69,7 @@ typedef enum Marker { wl_marker1 = 0x01, wl_marker2 = 0x02 } Marker;
typedef
enum
wl_Span
{
TWO_BYTES
=
2
,
FOUR_BYTES
=
4
,
EIGHT_BYTES
=
8
,
SIXTEEN_BYTES
=
16
,
THIRTYTWO_BYTES
=
32
}
wl_Span
;
Loading