Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stm32_libraries
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
humanoides
tools
stm32_libraries
Commits
ed41fcd1
Commit
ed41fcd1
authored
4 years ago
by
Sergi Hernandez
Browse files
Options
Downloads
Patches
Plain Diff
The function to add an EEPROM memory segment already updated the number of EEPROM variables.
parent
b80dc200
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
memory/src/mem_module.c
+2
-0
2 additions, 0 deletions
memory/src/mem_module.c
with
2 additions
and
0 deletions
memory/src/mem_module.c
+
2
−
0
View file @
ed41fcd1
#include
"mem_module.h"
extern
unsigned
char
mem_in_window
(
unsigned
short
int
mem_start_address
,
unsigned
short
int
mem_length
,
unsigned
short
int
start_address
,
unsigned
short
int
length
);
extern
void
EE_update_num_variables
(
unsigned
int
num
);
void
mem_module_init
(
TMemModule
*
module
)
{
...
...
@@ -70,6 +71,7 @@ unsigned char mem_module_add_eeprom_segment(TMemModule *module,unsigned short in
module
->
eeprom_segments
[
module
->
num_eeprom_segments
].
start_address
=
start_address
;
module
->
eeprom_segments
[
module
->
num_eeprom_segments
].
length
=
length
;
module
->
num_eeprom_segments
++
;
EE_update_num_variables
(
length
);
return
0x01
;
}
else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment