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
cb6f1ae8
Commit
cb6f1ae8
authored
Sep 19, 2024
by
王雅楠
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://tyw-server.synology.me:12345/shihao/haojin750tft
into wangyanan
parents
656d06f3
ebcb1966
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
487 additions
and
465 deletions
+487
-465
HaoJin750TFT.uvprojx
.../Project/Cmsemicon/BAT32A279/MDK_ARM/HaoJin750TFT.uvprojx
+5
-5
BackLight.c
Firmware/Source/Application/BackLight.c
+443
-429
BackLight.h
Firmware/Source/Application/BackLight.h
+16
-4
AMT630H_Datas.c
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
+18
-18
PowerManag_user.c
Firmware/Source/Component/PowerManagement/PowerManag_user.c
+4
-8
Sys_Task_List.c
Firmware/Source/System/Sys_Task_List.c
+1
-1
No files found.
Firmware/Project/Cmsemicon/BAT32A279/MDK_ARM/HaoJin750TFT.uvprojx
View file @
cb6f1ae8
...
...
@@ -393,6 +393,11 @@
<FileType>
5
</FileType>
<FilePath>
..\..\..\..\Source\System\main.h
</FilePath>
</File>
<File>
<FileName>
Sys_Scheduler_Lib.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\..\..\Source\System\Sys_Scheduler_Lib.c
</FilePath>
</File>
<File>
<FileName>
Sys_Scheduler.c
</FileName>
<FileType>
1
</FileType>
...
...
@@ -403,11 +408,6 @@
<FileType>
5
</FileType>
<FilePath>
..\..\..\..\Source\System\Sys_Scheduler.h
</FilePath>
</File>
<File>
<FileName>
Sys_Scheduler_Lib.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\..\..\Source\System\Sys_Scheduler_Lib.c
</FilePath>
</File>
<File>
<FileName>
Sys_Scheduler_Lib.h
</FileName>
<FileType>
5
</FileType>
...
...
Firmware/Source/Application/BackLight.c
View file @
cb6f1ae8
This diff is collapsed.
Click to expand it.
Firmware/Source/Application/BackLight.h
View file @
cb6f1ae8
...
...
@@ -22,10 +22,22 @@
#endif
/* NULL */
extern
Light_uint16_t
LightR_Status
;
void
Backlight_KL30_Wakeup_Init
(
void
);
void
BackLight_Process
(
void
);
Light_uint8_t
Backlight_SetPwmLevel
(
void
);
extern
void
BackLight_Service
(
void
);
extern
void
BackLight_30_Init
(
void
);
extern
void
BackLight_15_Init
(
void
);
extern
void
BackLight_WakeUp_Init
(
void
);
extern
void
BackLight_Sleep_Init
(
void
);
extern
void
BackLight_Back_PWM_Init
(
void
);
extern
void
BackLight_Set_Lvl
(
Light_uint8_t
lvl
);
extern
void
BackLight_Process
(
void
);
extern
Light_uint8_t
Backlight_GetPwmLevel
(
void
);
...
...
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
View file @
cb6f1ae8
...
...
@@ -1734,14 +1734,14 @@ void AMT630H_GUI_Display_Mode_Setting(Menu_Item_en_t display_mode) /*图 显示
if
(
Menu_Item_Select_Get
(
MENU_ITEM_SELECT_AUTO
)
==
1
)
{
g_u8Display_Mode_select
=
ModeATUO
;
if
(
LightR_Status
==
0
)
{
g_u8Display_Mode
=
ModeNIGHT
;
}
else
if
(
LightR_Status
==
1
)
{
g_u8Display_Mode
=
ModeDAY
;
}
//
if(LightR_Status == 0)
//
{
//
g_u8Display_Mode = ModeNIGHT;
//
}
//
else if(LightR_Status == 1)
//
{
//
g_u8Display_Mode = ModeDAY;
//
}
}
else
{
...
...
@@ -1892,23 +1892,23 @@ void AMT630H_GUI_Backlight_Setting(Menu_Item_en_t back_mode) /*图 背光*/
if
(
Menu_Item_Select_Get
(
MENU_ITEM_BACKLIGHT_AUTO
))
{
g_u8Backlight_select
=
Backlight_ATUO
;
if
(
Backlight_
S
etPwmLevel
()
==
5
)
if
(
Backlight_
G
etPwmLevel
()
==
5
)
{
g_u8Backlight
=
Backlight_5
;
}
else
if
(
Backlight_
S
etPwmLevel
()
==
4
)
else
if
(
Backlight_
G
etPwmLevel
()
==
4
)
{
g_u8Backlight
=
Backlight_4
;
}
else
if
(
Backlight_
S
etPwmLevel
()
==
3
)
else
if
(
Backlight_
G
etPwmLevel
()
==
3
)
{
g_u8Backlight
=
Backlight_3
;
}
else
if
(
Backlight_
S
etPwmLevel
()
==
2
)
else
if
(
Backlight_
G
etPwmLevel
()
==
2
)
{
g_u8Backlight
=
Backlight_2
;
}
else
if
(
Backlight_
S
etPwmLevel
()
==
1
)
else
if
(
Backlight_
G
etPwmLevel
()
==
1
)
{
g_u8Backlight
=
Backlight_1
;
}
...
...
@@ -2053,23 +2053,23 @@ void AMT630H_GUI_Backlight_Setting(Menu_Item_en_t back_mode) /*图 背光*/
if
(
Menu_Item_Select_Get
(
MENU_ITEM_BACKLIGHT_AUTO
))
{
g_u8Backlight_select
=
Backlight_ATUO
;
if
(
Backlight_
S
etPwmLevel
()
==
5
)
if
(
Backlight_
G
etPwmLevel
()
==
5
)
{
g_u8Backlight
=
Backlight_5
;
}
else
if
(
Backlight_
S
etPwmLevel
()
==
4
)
else
if
(
Backlight_
G
etPwmLevel
()
==
4
)
{
g_u8Backlight
=
Backlight_4
;
}
else
if
(
Backlight_
S
etPwmLevel
()
==
3
)
else
if
(
Backlight_
G
etPwmLevel
()
==
3
)
{
g_u8Backlight
=
Backlight_3
;
}
else
if
(
Backlight_
S
etPwmLevel
()
==
2
)
else
if
(
Backlight_
G
etPwmLevel
()
==
2
)
{
g_u8Backlight
=
Backlight_2
;
}
else
if
(
Backlight_
S
etPwmLevel
()
==
1
)
else
if
(
Backlight_
G
etPwmLevel
()
==
1
)
{
g_u8Backlight
=
Backlight_1
;
}
...
...
Firmware/Source/Component/PowerManagement/PowerManag_user.c
View file @
cb6f1ae8
...
...
@@ -55,11 +55,9 @@ static void Power_KL30_Init(void)
Key_KL30_Init_EXample
();
Data_User_Mileage_KL30Init
();
Fuel_KL30_Init
();
Back
light_KL30_Wakeup
_Init
();
Back
Light_30
_Init
();
Amt630hInit
();
Telltales_Init
();
TimerM_PWM_counter_Output_Init
(
TIMERM_COUNTER1
,
20000
,
64000000
);
TimerM_PWM_CH_Output_init
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
ActiveLevel_High
);
g_stRTCInformation
.
u8RTCSecond
=
0
;
g_stRTCInformation
.
u8RTCMinute
=
0
;
g_stRTCInformation
.
u8RTCHour
=
0
;
...
...
@@ -71,7 +69,7 @@ static void Power_KL30_Init(void)
UDS_Startup_Init
();
Can_Init
();
Protocol_KL30_Wakeup_Init
();
TimerM_PWM_set_duty
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
500
);
RTE_DEEPSLEEP_GPIO_Interrupt_Enable
(
KL15_AD_IN
,
Trigger_Rising
);
FaultCode_Init
();
}
...
...
@@ -92,7 +90,7 @@ static void Power_Wakeup_Init(void)
Key_Wakeup_Init_EXample
();
Line_In_KL15_ON_Init
();
Fuel_KL30_Init
();
Back
light_KL30_Wakeu
p_Init
();
Back
Light_WakeU
p_Init
();
RTE_UART_Sleep_Init
(
UART_CH2
);
loc_config
.
u32UARTChEn
=
1U
;
loc_config
.
u32UARTbps
=
115200U
;
...
...
@@ -101,8 +99,6 @@ static void Power_Wakeup_Init(void)
UART_DeInit
(
UART2
);
RTE_UART_Init
(
UART_CH2
,
&
loc_config
);
/* 配置串口,630H上电发送0x0D,但是底板没回复 */
Amt630hInit
();
TimerM_PWM_counter_Output_Init
(
TIMERM_COUNTER1
,
20000
,
64000000
);
TimerM_PWM_CH_Output_init
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
ActiveLevel_High
);
Telltales_Init
();
Key_KL30_Init_EXample
();
Menu_User_WAKEUP
();
...
...
@@ -124,7 +120,7 @@ static void Power_OVP_Init(void)
static
void
Power_IG_OFF_Init
(
void
)
{
Line_In_KL15_OFF_Init
();
TimerM_PWM_set_duty
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
0
);
BackLight_15_Init
(
);
}
static
void
Power_IG_ON_Init
(
void
)
...
...
Firmware/Source/System/Sys_Task_List.c
View file @
cb6f1ae8
...
...
@@ -42,6 +42,7 @@ void Sys_10ms_Tasks(void)
Fuel_R_Cal
(
10u
);
Coolant_R_Cal
(
10u
);
Data_Light_Res_service
(
10
);
BackLight_Process
();
}
void
Sys_20ms_Tasks
(
void
)
...
...
@@ -52,7 +53,6 @@ void Sys_20ms_Tasks(void)
void
Sys_50ms_Tasks
(
void
)
{
BackLight_Service
();
Telltales_Management
();
UDS_Read_Preconditions
();
g_u8Cursor_Posittion
=
Menu_Get_Current_Cursor_Information
();
...
...
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