Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
HaoJin232
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
时昊
HaoJin232
Commits
3a94eee1
Commit
3a94eee1
authored
Feb 21, 2024
by
高士达
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'gaoshida' into 'dev'
🎉
init:调整EE存储相关 See merge request
!19
parents
0f4f61d2
03aa812a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
12 deletions
+15
-12
eeManager_Interface.c
HJ232_Source/source/Application/Eeprom/eeManager_Interface.c
+1
-1
Services_Mileage_User.c
...Source/source/Application/Mileage/Services_Mileage_User.c
+10
-10
PowerManagement_user.c
...source/Application/PowerManagement/PowerManagement_user.c
+3
-0
init.c
HJ232_Source/source/System/init.c
+1
-1
No files found.
HJ232_Source/source/Application/Eeprom/eeManager_Interface.c
View file @
3a94eee1
...
...
@@ -15,7 +15,7 @@
--------------------------------------------------------------------------*/
void
eeprom_StoreInfo_Init
(
void
)
{
eeprom_SetParameter
(
AT24C16
,
distance_100m
);
eeprom_SetParameter
(
AT24C16
,
distance_100
0
m
);
EE_SCL_OutConfig
();
EE_SDA_OutConfig
();
}
...
...
HJ232_Source/source/Application/Mileage/Services_Mileage_User.c
View file @
3a94eee1
...
...
@@ -81,24 +81,24 @@ void Data_User_Mileage_KL30Init(void)
{
ODOInit
.
Offset
=
TempBuf
[
2
];
}
ODOInit
.
MaxValue
=
9999999
;
ODOInit
.
MaxValue
=
16093439
;
//999999.0mile
Data_ODO_KL30_Init
(
DataODOBuf
,
&
ODOInit
,
Func
.
EEPromWrite_Cbk
);
(
void
)
Data_User_EEPROM_Read
(
EM_TRIP_BLOCK
,
TempBuf
+
3
,
4
);
TripInit
[
EM_TRIP_A
].
Stamp
=
0xFFFFFFFFu
;
TripInit
[
EM_TRIP_A
].
MaxValue
=
99999
;
TripInit
[
EM_TRIP_A
].
MaxValue
=
1609343
;
//99999.9mile
TripInit
[
EM_TRIP_A
].
IsRestart
=
1u
;
TripInit
[
EM_TRIP_B
].
Stamp
=
0xFFFFFFFFu
;
TripInit
[
EM_TRIP_B
].
MaxValue
=
99999
;
TripInit
[
EM_TRIP_B
].
Stamp
=
0xFFFFFFFFu
;
//99999.9mile
TripInit
[
EM_TRIP_B
].
MaxValue
=
1609343
;
TripInit
[
EM_TRIP_B
].
IsRestart
=
1u
;
TripInit
[
EM_TRIP_C
].
Stamp
=
0xFFFFFFFFu
;
TripInit
[
EM_TRIP_C
].
MaxValue
=
99999
;
TripInit
[
EM_TRIP_C
].
Stamp
=
0xFFFFFFFFu
;
//99999.9mile
TripInit
[
EM_TRIP_C
].
MaxValue
=
1609343
;
TripInit
[
EM_TRIP_C
].
IsRestart
=
1u
;
TripInit
[
EM_TRIP_D
].
Stamp
=
0xFFFFFFFFu
;
TripInit
[
EM_TRIP_D
].
MaxValue
=
99999
;
TripInit
[
EM_TRIP_D
].
Stamp
=
0xFFFFFFFFu
;
//99999.9mile
TripInit
[
EM_TRIP_D
].
MaxValue
=
1609343
;
TripInit
[
EM_TRIP_D
].
IsRestart
=
1u
;
Data_Trip_KL30_Init
(
DataTripBuf
,
TripInit
,
EM_TRIP_MAX
,
Func
.
EEPromWrite_Cbk
);
...
...
@@ -179,9 +179,9 @@ static void Data_User_EEPROM_Write(Data_EEPROM_Enum_t BlockID, uint32_t u32Data
odo_writeState
=
WRITE_FAIL
;
if
(
g_WriteMileage
.
Odo
%
10
==
0
)
{
while
(
odo_writeState
!=
WRITE_COMPLETE
)
while
(
odo_writeState
!=
WRITE_COMPLETE
)
{
odo_writeState
=
eeprom_WriteODO
(
&
g_WriteMileage
,
distance_100m
,
1
);
odo_writeState
=
eeprom_WriteODO
(
&
g_WriteMileage
,
distance_100
0
m
,
1
);
i
++
;
if
(
i
>
10
)
{
...
...
HJ232_Source/source/Application/PowerManagement/PowerManagement_user.c
View file @
3a94eee1
...
...
@@ -49,9 +49,12 @@ void Power_KL30_Init ( void )
BU98R10_Init
();
eeprom_StoreInfo_Init
(
);
//20221028
Data_User_Mileage_KL30Init
();
}
...
...
HJ232_Source/source/System/init.c
View file @
3a94eee1
...
...
@@ -112,7 +112,7 @@ void Sys_Startup_Init(void)
Power_Management_Lib_Init
();
Power_Management_Init
(
0u
);
bsp_CAN_Init
();
eeprom_StoreInfo_Init
(
);
//20221028
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment