Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RT_RMR42E
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
时昊
RT_RMR42E
Commits
968d5462
Commit
968d5462
authored
Mar 06, 2025
by
李冠华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:修改混动车型电量百位IO,修改ACC OFF下电量背光灯点不亮的问题
parent
35eb3233
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
3 deletions
+23
-3
BackLight_User.c
Firmware/Source/Application/BackLight/BackLight_User.c
+23
-3
No files found.
Firmware/Source/Application/BackLight/BackLight_User.c
View file @
968d5462
...
...
@@ -134,29 +134,49 @@ void BackLight_User_Init(void)
void
BackLight_Process
(
void
)
{
#if (PART_NUMBER == RMR42E_60)
if
(
openLED_flag
)
#else
if
((
Get_CAN_Power_State
()
>
KEY_OFF
)
&&
(
Get_AllSocValid
()
==
1U
))
#endif
{
//电量
if
((
Get_EleDial_AllSOC_lenth
()
==
2
)
||
(
checkself_seg_Flag
==
1
))
{
#if (PART_NUMBER == RMR42E_60)
RTE_GPIO_Set_Level
(
RTE_GPIO_PORT03_PIN00
,
RTE_GPIO_LEVEL_HIGH
);
//百位
#else
RTE_GPIO_Set_Level
(
RTE_GPIO_PORT02_PIN05
,
RTE_GPIO_LEVEL_HIGH
);
//百位
#endif
RTE_GPIO_Set_Level
(
RTE_GPIO_PORT02_PIN04
,
RTE_GPIO_LEVEL_HIGH
);
}
else
if
(
Get_EleDial_AllSOC_lenth
()
==
1
)
{
RTE_GPIO_Set_Level
(
RTE_GPIO_PORT03_PIN00
,
RTE_GPIO_LEVEL_LOW
);
#if (PART_NUMBER == RMR42E_60)
RTE_GPIO_Set_Level
(
RTE_GPIO_PORT03_PIN00
,
RTE_GPIO_LEVEL_LOW
);
//百位
#else
RTE_GPIO_Set_Level
(
RTE_GPIO_PORT02_PIN05
,
RTE_GPIO_LEVEL_LOW
);
//百位
#endif
RTE_GPIO_Set_Level
(
RTE_GPIO_PORT02_PIN04
,
RTE_GPIO_LEVEL_HIGH
);
}
else
{
RTE_GPIO_Set_Level
(
RTE_GPIO_PORT03_PIN00
,
RTE_GPIO_LEVEL_LOW
);
#if (PART_NUMBER == RMR42E_60)
RTE_GPIO_Set_Level
(
RTE_GPIO_PORT03_PIN00
,
RTE_GPIO_LEVEL_LOW
);
//百位
#else
RTE_GPIO_Set_Level
(
RTE_GPIO_PORT02_PIN05
,
RTE_GPIO_LEVEL_LOW
);
//百位
#endif
RTE_GPIO_Set_Level
(
RTE_GPIO_PORT02_PIN04
,
RTE_GPIO_LEVEL_LOW
);
}
}
else
{
RTE_GPIO_Set_Level
(
RTE_GPIO_PORT03_PIN00
,
RTE_GPIO_LEVEL_LOW
);
#if (PART_NUMBER == RMR42E_60)
RTE_GPIO_Set_Level
(
RTE_GPIO_PORT03_PIN00
,
RTE_GPIO_LEVEL_LOW
);
//百位
#else
RTE_GPIO_Set_Level
(
RTE_GPIO_PORT02_PIN05
,
RTE_GPIO_LEVEL_LOW
);
//百位
#endif
RTE_GPIO_Set_Level
(
RTE_GPIO_PORT02_PIN04
,
RTE_GPIO_LEVEL_LOW
);
}
}
...
...
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