Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
haoJin750TFT
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
时昊
haoJin750TFT
Commits
2fec5b6c
Commit
2fec5b6c
authored
Jun 28, 2024
by
时昊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:增加背光功能
parent
a4374d84
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
388 additions
and
63 deletions
+388
-63
BackLight.c
Firmware/Source/Application/BackLight.c
+368
-52
BackLight.h
Firmware/Source/Application/BackLight.h
+19
-8
Components.h
Firmware/Source/Component/Components.h
+1
-0
PowerManag_user.c
Firmware/Source/Component/PowerManagement/PowerManag_user.c
+0
-3
No files found.
Firmware/Source/Application/BackLight.c
View file @
2fec5b6c
This diff is collapsed.
Click to expand it.
Firmware/Source/Application/BackLight.h
View file @
2fec5b6c
#ifndef _BACKLIGHT_H_
#ifndef _BACKLIGHT_H_
#define _BACKLIGHT_H_
#define _BACKLIGHT_H_
#include "common.h"
typedef
struct
{
uint16_t
Light_Auto
;
}
_Light
;
extern
_Light
g_Light
;
void
BackLight_Init
(
void
);
#ifdef Platform_16Bit
void
BackLight_Process
(
void
);
#define Light_uint8_t unsigned char
#define Light_uint16_t unsigned int
#define Light_uint32_t unsigned long
#else
#define Light_uint8_t unsigned char
#define Light_uint16_t unsigned short
#define Light_uint32_t unsigned int
#define Light_uint64_t unsigned long long
#endif
#endif
#ifndef Backlight_NULL
#define Backlight_NULL ( void * )0u
#endif
/* NULL */
void
Backlight_KL30_Wakeup_Init
(
void
);
#endif
\ No newline at end of file
Firmware/Source/Component/Components.h
View file @
2fec5b6c
...
@@ -26,5 +26,6 @@
...
@@ -26,5 +26,6 @@
#include "AMT630H\AMT630H_Datas.h"
#include "AMT630H\AMT630H_Datas.h"
#include "Data_ESpeed.h"
#include "Data_ESpeed.h"
#include "Data_VSpeed.h"
#include "Data_VSpeed.h"
#include "BackLight.h"
#endif
#endif
Firmware/Source/Component/PowerManagement/PowerManag_user.c
View file @
2fec5b6c
...
@@ -48,7 +48,6 @@ static void Power_KL30_Init(void)
...
@@ -48,7 +48,6 @@ static void Power_KL30_Init(void)
loc_config
.
pfnUARTReadMsgCallBack
=
Amt630hUartRecvData
;
loc_config
.
pfnUARTReadMsgCallBack
=
Amt630hUartRecvData
;
RTE_UART_Init
(
UART_CH2
,
&
loc_config
);
RTE_UART_Init
(
UART_CH2
,
&
loc_config
);
Analog_Signal_Conv_Init
();
Analog_Signal_Conv_Init
();
BackLight_Init
();
Sys_KL30_Init
();
Sys_KL30_Init
();
Data_Vehicle_Speed_KL30_Wakeup_Init
();
Data_Vehicle_Speed_KL30_Wakeup_Init
();
Data_Engine_Speed_KL30_Wakeup_Init
();
Data_Engine_Speed_KL30_Wakeup_Init
();
...
@@ -83,7 +82,6 @@ static void Power_Wakeup_Init(void)
...
@@ -83,7 +82,6 @@ static void Power_Wakeup_Init(void)
Analog_Signal_Conv_Init
();
Analog_Signal_Conv_Init
();
Data_User_Mileage_WakeupInit
();
Data_User_Mileage_WakeupInit
();
BackLight_Init
();
Sys_WakeUp_Init
();
Sys_WakeUp_Init
();
Data_Vehicle_Speed_KL30_Wakeup_Init
();
Data_Vehicle_Speed_KL30_Wakeup_Init
();
Data_Engine_Speed_KL30_Wakeup_Init
();
Data_Engine_Speed_KL30_Wakeup_Init
();
...
@@ -117,7 +115,6 @@ static void Power_IG_OFF_Init(void)
...
@@ -117,7 +115,6 @@ static void Power_IG_OFF_Init(void)
static
void
Power_IG_ON_Init
(
void
)
static
void
Power_IG_ON_Init
(
void
)
{
{
// ClearODO_Flag = 0;
// ClearODO_Flag = 0;
BackLight_Init
();
Line_In_KL15_ON_Init
();
Line_In_KL15_ON_Init
();
Telltales_KL15_Init
();
Telltales_KL15_Init
();
Fuel_KL15_Init
();
Fuel_KL15_Init
();
...
...
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