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
Hide 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
...
@@ -33,9 +33,9 @@ void Data_User_Mileage_KL30Init(void)
...
@@ -33,9 +33,9 @@ void Data_User_Mileage_KL30Init(void)
if
(
TempBuf
[
0
]
==
0xFFFFFFFF
)
if
(
TempBuf
[
0
]
==
0xFFFFFFFF
)
{
{
MileInit
.
Mileage
=
0u
;
MileInit
.
Mileage
=
0u
;
}
}
else
else
{
{
MileInit
.
Mileage
=
TempBuf
[
0
];
MileInit
.
Mileage
=
TempBuf
[
0
];
}
}
Func
.
Get_Sys_IG_Sts
=
Common_Get_IG_Sts
;
Func
.
Get_Sys_IG_Sts
=
Common_Get_IG_Sts
;
...
@@ -100,7 +100,7 @@ void Data_User_Mileage_KL30Init(void)
...
@@ -100,7 +100,7 @@ void Data_User_Mileage_KL30Init(void)
Data_Trip_KL30_Init
(
DataTripBuf
,
TripInit
,
EM_TRIP_MAX
,
Func
.
EEPromWrite_Cbk
);
Data_Trip_KL30_Init
(
DataTripBuf
,
TripInit
,
EM_TRIP_MAX
,
Func
.
EEPromWrite_Cbk
);
//Data_User_EEPROM_Read(EM_MenuData_Tcs_Val, TempBuf, 1u);
//Data_User_EEPROM_Read(EM_MenuData_Tcs_Val, TempBuf, 1u);
eeprom_ReadRecord
(
EEPROM_BLOCK_08
,
(
uint8_t
*
)
TempBufUser
,
1
);
eeprom_ReadRecord
(
EEPROM_BLOCK_08
,
(
uint8_t
*
)
TempBufUser
,
1
);
if
(
TempBufUser
[
0u
]
==
0xFF
)
if
(
TempBufUser
[
0u
]
==
0xFF
)
{
{
MenuData
.
Tcs_Val
=
1
;
MenuData
.
Tcs_Val
=
1
;
...
@@ -109,7 +109,7 @@ void Data_User_Mileage_KL30Init(void)
...
@@ -109,7 +109,7 @@ void Data_User_Mileage_KL30Init(void)
}
}
//Data_User_EEPROM_Read(EM_MenuData_TPMS_LEARN, TempBuf, 1u);
//Data_User_EEPROM_Read(EM_MenuData_TPMS_LEARN, TempBuf, 1u);
eeprom_ReadRecord
(
EEPROM_BLOCK_09
,
(
uint8_t
*
)
TempBufUser
,
2
);
eeprom_ReadRecord
(
EEPROM_BLOCK_09
,
(
uint8_t
*
)
TempBufUser
,
2
);
if
(
TempBufUser
[
0u
]
==
0xFF
)
if
(
TempBufUser
[
0u
]
==
0xFF
)
{
{
TPMSLearn
[
0
]
=
0
;
//MenuData.TPMS_Front_Learn;
TPMSLearn
[
0
]
=
0
;
//MenuData.TPMS_Front_Learn;
...
@@ -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,19 +56,19 @@ static void Service_Interval_Write_EEProm(uint32_t u32Data [], uint16_t u16Len)
...
@@ -56,19 +56,19 @@ 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
)
{
{
break
;
break
;
}
}
if
(
TimeOut
>=
3
)
if
(
TimeOut
>=
3
)
{
{
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