Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
TianYing_ty100
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
TY
TianYing_ty100
Commits
2f798ebc
Commit
2f798ebc
authored
Sep 28, 2024
by
陈家乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:取消写EE延时
parent
65e3cae2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
Services_Mileage_User.c
Firmware/Source/Component/Mileage/Services_Mileage_User.c
+8
-8
Service_Interval_User.c
...Source/Component/Service_Interval/Service_Interval_User.c
+3
-3
No files found.
Firmware/Source/Component/Mileage/Services_Mileage_User.c
View file @
2f798ebc
...
@@ -209,7 +209,7 @@ uint32_t Data_User_EEPROM_Read(uint16_t u16BlockID, uint32_t u32Data[], uint16_t
...
@@ -209,7 +209,7 @@ uint32_t Data_User_EEPROM_Read(uint16_t u16BlockID, uint32_t u32Data[], uint16_t
odoclr_writeState
=
eeprom_WriteRecord
(
EEPROM_BLOCK_01
,
(
uint8_t
*
)
u32Data
,
u16Len
*
4
);
odoclr_writeState
=
eeprom_WriteRecord
(
EEPROM_BLOCK_01
,
(
uint8_t
*
)
u32Data
,
u16Len
*
4
);
while
(
odoclr_writeState
==
WRITE_FAIL
)
while
(
odoclr_writeState
==
WRITE_FAIL
)
{
{
eeprom_comm_DelayUs
(
5000
);
//
eeprom_comm_DelayUs(5000);
odoclr_writeState
=
eeprom_WriteRecord
(
EEPROM_BLOCK_01
,
(
uint8_t
*
)
u32Data
,
u16Len
*
4
);
odoclr_writeState
=
eeprom_WriteRecord
(
EEPROM_BLOCK_01
,
(
uint8_t
*
)
u32Data
,
u16Len
*
4
);
timeout
++
;
timeout
++
;
if
(
odoclr_writeState
!=
WRITE_FAIL
)
if
(
odoclr_writeState
!=
WRITE_FAIL
)
...
@@ -238,7 +238,7 @@ uint32_t Data_User_EEPROM_Read(uint16_t u16BlockID, uint32_t u32Data[], uint16_t
...
@@ -238,7 +238,7 @@ uint32_t Data_User_EEPROM_Read(uint16_t u16BlockID, uint32_t u32Data[], uint16_t
trip_writeState
=
eeprom_WriteRecord
(
EEPROM_BLOCK_03
,
(
uint8_t
*
)
u32Data
,
u16Len
*
4
);
trip_writeState
=
eeprom_WriteRecord
(
EEPROM_BLOCK_03
,
(
uint8_t
*
)
u32Data
,
u16Len
*
4
);
while
(
trip_writeState
==
WRITE_FAIL
)
while
(
trip_writeState
==
WRITE_FAIL
)
{
{
eeprom_comm_DelayUs
(
5000
);
//
eeprom_comm_DelayUs(5000);
trip_writeState
=
eeprom_WriteRecord
(
EEPROM_BLOCK_03
,
(
uint8_t
*
)
u32Data
,
u16Len
*
4
);
trip_writeState
=
eeprom_WriteRecord
(
EEPROM_BLOCK_03
,
(
uint8_t
*
)
u32Data
,
u16Len
*
4
);
timeout
++
;
timeout
++
;
if
(
trip_writeState
!=
WRITE_FAIL
)
if
(
trip_writeState
!=
WRITE_FAIL
)
...
@@ -251,7 +251,7 @@ uint32_t Data_User_EEPROM_Read(uint16_t u16BlockID, uint32_t u32Data[], uint16_t
...
@@ -251,7 +251,7 @@ uint32_t Data_User_EEPROM_Read(uint16_t u16BlockID, uint32_t u32Data[], uint16_t
}
}
}
}
timeout
=
0
;
timeout
=
0
;
eeprom_comm_DelayUs
(
5000
);
//
eeprom_comm_DelayUs(5000);
while
(
trip_writeState
==
WRITING
)
while
(
trip_writeState
==
WRITING
)
{
{
trip_writeState
=
eeprom_WriteRecord
(
EEPROM_BLOCK_03
,
(
uint8_t
*
)
u32Data
,
u16Len
*
4
);
trip_writeState
=
eeprom_WriteRecord
(
EEPROM_BLOCK_03
,
(
uint8_t
*
)
u32Data
,
u16Len
*
4
);
...
...
Firmware/Source/Component/Service_Interval/Service_Interval_User.c
View file @
2f798ebc
...
@@ -56,7 +56,7 @@ static void Service_Interval_Write_EEProm(uint32_t u32Data [], uint16_t u16Len)
...
@@ -56,7 +56,7 @@ static void Service_Interval_Write_EEProm(uint32_t u32Data [], uint16_t u16Len)
tmpWritestatus
=
eeprom_WriteRecord
(
EEPROM_BLOCK_05
,
(
uint8_t
*
)
u32Data
,
u16Len
*
4
);
tmpWritestatus
=
eeprom_WriteRecord
(
EEPROM_BLOCK_05
,
(
uint8_t
*
)
u32Data
,
u16Len
*
4
);
while
(
tmpWritestatus
==
WRITE_FAIL
)
while
(
tmpWritestatus
==
WRITE_FAIL
)
{
{
eeprom_comm_DelayUs
(
5000
);
//
eeprom_comm_DelayUs(5000);
tmpWritestatus
=
eeprom_WriteRecord
(
EEPROM_BLOCK_05
,
(
uint8_t
*
)
u32Data
,
u16Len
*
4
);
tmpWritestatus
=
eeprom_WriteRecord
(
EEPROM_BLOCK_05
,
(
uint8_t
*
)
u32Data
,
u16Len
*
4
);
TimeOut
++
;
TimeOut
++
;
if
(
tmpWritestatus
!=
WRITE_FAIL
)
if
(
tmpWritestatus
!=
WRITE_FAIL
)
...
@@ -68,7 +68,7 @@ static void Service_Interval_Write_EEProm(uint32_t u32Data [], uint16_t u16Len)
...
@@ -68,7 +68,7 @@ static void Service_Interval_Write_EEProm(uint32_t u32Data [], uint16_t u16Len)
return
;
return
;
}
}
}
}
eeprom_comm_DelayUs
(
5000
);
//
eeprom_comm_DelayUs(5000);
while
(
tmpWritestatus
==
WRITING
)
while
(
tmpWritestatus
==
WRITING
)
{
{
tmpWritestatus
=
eeprom_WriteRecord
(
EEPROM_BLOCK_05
,
(
uint8_t
*
)
u32Data
,
u16Len
*
4
);
tmpWritestatus
=
eeprom_WriteRecord
(
EEPROM_BLOCK_05
,
(
uint8_t
*
)
u32Data
,
u16Len
*
4
);
...
...
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