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
2b46a4e3
Commit
2b46a4e3
authored
Aug 18, 2024
by
时昊
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://tyw-server.synology.me:12345/shihao/haojin750tft
into shihao
parents
9bb5e7b9
4f2a15be
Changes
14
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
308 additions
and
61 deletions
+308
-61
HaoJin750TFT.uvprojx
.../Project/Cmsemicon/BAT32A279/MDK_ARM/HaoJin750TFT.uvprojx
+19
-4
HaoJin750TFT.sct
...ject/Cmsemicon/BAT32A279/MDK_ARM/Objects/HaoJin750TFT.sct
+2
-2
userdefine.h
...BAT32A279/MDK_ARM/RTE/Device/BAT32A279KM64FB/userdefine.h
+1
-1
BackLight.c
Firmware/Source/Application/BackLight.c
+32
-26
BlueTooth.c
Firmware/Source/Application/BlueTooth.c
+22
-0
BlueTooth.h
Firmware/Source/Application/BlueTooth.h
+14
-0
UartProtocol.h
Firmware/Source/Component/AMT630H/UartProtocol.h
+199
-19
UartProtocol_V1.32_BAT32A239.lib
...Source/Component/AMT630H/UartProtocol_V1.32_BAT32A239.lib
+0
-0
kei_S1.0.4_20240818.lib
Firmware/Source/Component/AMT630H/kei_S1.0.4_20240818.lib
+0
-0
Components.h
Firmware/Source/Component/Components.h
+1
-0
PowerManag_user.c
Firmware/Source/Component/PowerManagement/PowerManag_user.c
+8
-0
System_Monitor.lib
Firmware/Source/Component/System_Monitor/System_Monitor.lib
+0
-0
Sys_Task_List.c
Firmware/Source/System/Sys_Task_List.c
+1
-0
Option.properties
Firmware/utility/诊断工具/Option/Option.properties
+9
-9
No files found.
Firmware/Project/Cmsemicon/BAT32A279/MDK_ARM/HaoJin750TFT.uvprojx
View file @
2b46a4e3
...
...
@@ -275,7 +275,7 @@
</OCR_RVCT3>
<OCR_RVCT4>
<Type>
1
</Type>
<StartAddress>
0x0
</StartAddress>
<StartAddress>
0x
c40
0
</StartAddress>
<Size>
0x73c00
</Size>
</OCR_RVCT4>
<OCR_RVCT5>
...
...
@@ -361,7 +361,7 @@
</VariousControls>
</Aads>
<LDads>
<umfTarg>
1
</umfTarg>
<umfTarg>
0
</umfTarg>
<Ropi>
0
</Ropi>
<Rwpi>
0
</Rwpi>
<noStLib>
0
</noStLib>
...
...
@@ -728,6 +728,16 @@
<FileType>
5
</FileType>
<FilePath>
..\..\..\..\Source\Application\FaultCode.h
</FilePath>
</File>
<File>
<FileName>
BlueTooth.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\..\..\Source\Application\BlueTooth.c
</FilePath>
</File>
<File>
<FileName>
BlueTooth.h
</FileName>
<FileType>
5
</FileType>
<FilePath>
..\..\..\..\Source\Application\BlueTooth.h
</FilePath>
</File>
</Files>
</Group>
<Group>
...
...
@@ -969,9 +979,9 @@
<FilePath>
..\..\..\..\Source\Component\AMT630H\PicBin.h
</FilePath>
</File>
<File>
<FileName>
UartProtocol_V1.32_BAT32A239
.lib
</FileName>
<FileName>
kei_S1.0.4_20240818
.lib
</FileName>
<FileType>
4
</FileType>
<FilePath>
..\..\..\..\Source\Component\AMT630H\
UartProtocol_V1.32_BAT32A239
.lib
</FilePath>
<FilePath>
..\..\..\..\Source\Component\AMT630H\
kei_S1.0.4_20240818
.lib
</FilePath>
</File>
<File>
<FileName>
UartProtocol.h
</FileName>
...
...
@@ -1008,6 +1018,11 @@
<FileType>
5
</FileType>
<FilePath>
..\..\..\..\Source\Component\System_Monitor\System_Monitor_User.h
</FilePath>
</File>
<File>
<FileName>
System_Monitor.lib
</FileName>
<FileType>
4
</FileType>
<FilePath>
..\..\..\..\Source\Component\System_Monitor\System_Monitor.lib
</FilePath>
</File>
</Files>
</Group>
<Group>
...
...
Firmware/Project/Cmsemicon/BAT32A279/MDK_ARM/Objects/HaoJin750TFT.sct
View file @
2b46a4e3
...
...
@@ -2,8 +2,8 @@
; *** Scatter-Loading Description File generated by uVision ***
; *************************************************************
LR_IROM1 0x0000
00
00 0x00073C00 { ; load region size_region
ER_IROM1 0x0000
00
00 0x00073C00 { ; load address = execution address
LR_IROM1 0x0000
C4
00 0x00073C00 { ; load region size_region
ER_IROM1 0x0000
C4
00 0x00073C00 { ; load address = execution address
*.o (RESET, +First)
*(InRoot$$Sections)
.ANY (+RO)
...
...
Firmware/Project/Cmsemicon/BAT32A279/MDK_ARM/RTE/Device/BAT32A279KM64FB/userdefine.h
View file @
2b46a4e3
...
...
@@ -20,7 +20,7 @@ User definitions
typedef
unsigned
short
MD_STATUS
;
#define HAS_BOOTLOADER (
0
u) // 仅仿真App时设置为0
#define HAS_BOOTLOADER (
1
u) // 仅仿真App时设置为0
#define APP_BASE (0x0000C400ul)
/* Status list definition */
...
...
Firmware/Source/Application/BackLight.c
View file @
2b46a4e3
...
...
@@ -78,7 +78,8 @@ void Data_Light_Res_service(Light_uint8_t deltaTime)//获取光感阻值,并
LightRes
+=
5
;
}
}
else
timeCount
+=
deltaTime
;
if
(
LightADCompleteFlg
)
{
LightRes
=
32000
;
}
...
...
@@ -142,7 +143,6 @@ void Data_Light_Res_service(Light_uint8_t deltaTime)//获取光感阻值,并
TimerM_PWM_set_duty
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
800
);
}
}
}
else
if
(
Menu_Item_Select_Get
(
MENU_ITEM_BACKLIGHT_AUTO
))
{
...
...
@@ -169,9 +169,8 @@ void Data_Light_Res_service(Light_uint8_t deltaTime)//获取光感阻值,并
}
else
{
BackLight_Process
(
);
TimerM_PWM_set_duty
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
0
);
}
}
...
...
@@ -257,10 +256,10 @@ Light_uint8_t Backlight_SetPwmLevel(void)
}
/* 获取电阻值回调函数 */
Light_uint
8
_t
Backlight_NtcRes
(
void
)
Light_uint
16
_t
Backlight_NtcRes
(
void
)
{
return
1
;
Light_uint16_t
u8NtcRes
=
ADC_Read_Signal
(
ADC_CH_NTC_TEMP
);
return
u8NtcRes
;
}
void
Backlight_Init
(
BackLightExtPara
*
backlightInit
)
...
...
@@ -535,28 +534,35 @@ void BackLight_Service(void)
void
BackLight_Process
(
void
)
{
if
(
Menu_Item_Select_Get
(
MENU_ITEM_BACKLIGHT_5
)
==
1
)
{
TimerM_PWM_set_duty
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
BACK_LIGHT_Val_5
);
}
else
if
(
Menu_Item_Select_Get
(
MENU_ITEM_BACKLIGHT_4
)
==
1
)
{
TimerM_PWM_set_duty
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
BACK_LIGHT_Val_4
);
}
else
if
(
Menu_Item_Select_Get
(
MENU_ITEM_BACKLIGHT_3
)
==
1
)
{
TimerM_PWM_set_duty
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
BACK_LIGHT_Val_3
);
}
else
if
(
Menu_Item_Select_Get
(
MENU_ITEM_BACKLIGHT_2
)
==
1
)
{
TimerM_PWM_set_duty
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
BACK_LIGHT_Val_2
);
}
else
if
(
Menu_Item_Select_Get
(
MENU_ITEM_BACKLIGHT_1
)
==
1
)
if
(
SYS_OPR_STAT_IGN_ON
)
{
TimerM_PWM_set_duty
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
BACK_LIGHT_Val_1
);
if
(
Menu_Item_Select_Get
(
MENU_ITEM_BACKLIGHT_5
)
==
1
)
{
TimerM_PWM_set_duty
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
BACK_LIGHT_Val_5
);
}
else
if
(
Menu_Item_Select_Get
(
MENU_ITEM_BACKLIGHT_4
)
==
1
)
{
TimerM_PWM_set_duty
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
BACK_LIGHT_Val_4
);
}
else
if
(
Menu_Item_Select_Get
(
MENU_ITEM_BACKLIGHT_3
)
==
1
)
{
TimerM_PWM_set_duty
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
BACK_LIGHT_Val_3
);
}
else
if
(
Menu_Item_Select_Get
(
MENU_ITEM_BACKLIGHT_2
)
==
1
)
{
TimerM_PWM_set_duty
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
BACK_LIGHT_Val_2
);
}
else
if
(
Menu_Item_Select_Get
(
MENU_ITEM_BACKLIGHT_1
)
==
1
)
{
TimerM_PWM_set_duty
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
BACK_LIGHT_Val_1
);
}
else
{
TimerM_PWM_set_duty
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
BACK_LIGHT_Val_4
);
}
}
else
{
TimerM_PWM_set_duty
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
BACK_LIGHT_Val_4
);
TimerM_PWM_set_duty
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
0
);
}
}
Firmware/Source/Application/BlueTooth.c
0 → 100644
View file @
2b46a4e3
#include "Components.h"
const
uint8_t
HJBlueToothName
[
9
]
=
{
"HJ_750TFT"
};
uint8_t
UUIDConfigBuf
[
22
]
=
{
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0x00
};
void
BlueToothService
()
{
// _PICID_Struct PicObj;
// PicObj.qr_logo_id = Pic_0020;
// PicObj.qr_pic_id = Pic_0002;
// PicObj.update_pic_id = 0;
// PicObj.second_menu = 0;
// PicObj.navigation_task_id = 0;
// PackedTransfer_DisplayPhoneMirrorQRcode(1, PicObj);
SetBlueToothName
((
uint8_t
*
)
HJBlueToothName
,
sizeof
(
HJBlueToothName
));
SetUUIDData
((
char
*
)
UUIDConfigBuf
,
22
);
// _QRCODE_RECT QRCode_Rect;
// QRCode_Rect.x = QRCode_X;
// QRCode_Rect.y = QRCode_Y;
// QRCode_Rect.height = QRCode_HEIGHT;
// QRCode_Rect.width = QRCode_WIDTH;
// SetScreenType(QRCode_TYPE, QRCode_Rect);
}
\ No newline at end of file
Firmware/Source/Application/BlueTooth.h
0 → 100644
View file @
2b46a4e3
#ifndef _BLUETOOTH_H
#define _BLUETOOTH_H
/*QRCode X Y height Width*/
#define QRCode_X 457
#define QRCode_Y 134
#define QRCode_HEIGHT 240
#define QRCode_WIDTH 240
#define QRCode_TYPE Square_Instrument
extern
void
BlueToothService
(
void
);
#endif
\ No newline at end of file
Firmware/Source/Component/AMT630H/UartProtocol.h
View file @
2b46a4e3
This diff is collapsed.
Click to expand it.
Firmware/Source/Component/AMT630H/UartProtocol_V1.32_BAT32A239.lib
deleted
100644 → 0
View file @
9bb5e7b9
File deleted
Firmware/Source/Component/AMT630H/kei_S1.0.4_20240818.lib
0 → 100644
View file @
2b46a4e3
File added
Firmware/Source/Component/Components.h
View file @
2b46a4e3
...
...
@@ -35,6 +35,7 @@
#include "CAN_CH0_CAN_Communication_Matrix.h"
#include "Telltales\Telltales_user.h"
#include "Telltales\Telltales_Lib.h"
#include "Application\BlueTooth.h"
#endif
Firmware/Source/Component/PowerManagement/PowerManag_user.c
View file @
2b46a4e3
...
...
@@ -54,6 +54,7 @@ static void Power_KL30_Init(void)
Key_KL30_Init_EXample
();
Data_User_Mileage_KL30Init
();
Fuel_KL30_Init
();
Backlight_KL30_Wakeup_Init
();
Amt630hInit
();
Telltales_Init
();
TimerM_PWM_counter_Output_Init
(
TIMERM_COUNTER1
,
20000
,
64000000
);
...
...
@@ -87,6 +88,7 @@ static void Power_Wakeup_Init(void)
Key_Wakeup_Init_EXample
();
Line_In_KL15_ON_Init
();
Fuel_KL30_Init
();
Backlight_KL30_Wakeup_Init
();
Amt630hInit
();
TimerM_PWM_counter_Output_Init
(
TIMERM_COUNTER1
,
20000
,
64000000
);
TimerM_PWM_CH_Output_init
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
ActiveLevel_High
);
...
...
@@ -122,6 +124,8 @@ static void Power_IG_ON_Init(void)
Fuel_KL15_Init
();
//RTE_GPIO_Set_Level(Blacklight_PWM, 1);
FaultCode_Init
();
Amt630hInit
();
ResetInitedState
();
}
static
void
Power_Sleep_Init
(
void
)
...
...
@@ -173,6 +177,10 @@ static Power_Status_em Power_Stay_OFF(void)
{
u8PowerSts
=
EM_IGN_OFF
;
}
else
{
u8PowerSts
=
EM_IGN_Sleep_Init
;
}
}
return
u8PowerSts
;
...
...
Firmware/Source/Component/System_Monitor/System_Monitor.lib
0 → 100644
View file @
2b46a4e3
File added
Firmware/Source/System/Sys_Task_List.c
View file @
2b46a4e3
...
...
@@ -52,6 +52,7 @@ void Sys_20ms_Tasks(void)
void
Sys_50ms_Tasks
(
void
)
{
// BlueToothService();
Telltales_Management
();
g_u8Cursor_Posittion
=
Menu_Get_Current_Cursor_Information
();
...
...
Firmware/utility/诊断工具/Option/Option.properties
View file @
2b46a4e3
#new Option
#
Tue Aug 13 23:16:37
CST 2024
#
Sun Aug 18 11:51:19
CST 2024
IsSort
=
true
MergeFlashIsCompression
=
false
ChangeAppFilePath
=
MergeCanXLSPath
=
RH850_D1M1AGPIOJSONpath
=
DBFFilePath
=
MergeCrcTtpe
=
2
9
MergeBootFilePath
=
C
\:\\
Users
\\
Lenovo
\\
Desktop
\\
haojin750_TFT
\\
haojin750tft
\\
Firmware
\\
utility
\\
Boot_Release
\\
HaoJin_750TFT_HJYB-7500TFT_BV1.01_20240808
.hex
MergeCrcTtpe
=
2
1
MergeBootFilePath
=
D
\:\\
git
\\
haojin750tft
\\
Firmware
\\
utility
\\
Boot_Release
\\
HaoJin_750TFT_HJYB-7500TFT_BV1.03_20240816
.hex
IsMergeChangeAddress
=
false
MergeFlashOutPutFilePath
=
GPIOOutPutPath
=
...
...
@@ -26,11 +26,11 @@ MergeLineInOutPutPath=
Leave2ID
=
17
PHYID
=
781
BaudRate
=
500K
AppUpdateFilePath
=
C
\:\\
Users
\\
Lenovo
\\
Desktop
\\
haojin750tft_2024-8-13
\\
APP_20240813230755344371.srec
AppUpdateFilePath
=
FUNID
=
7DF
IsMergeCreateBin
=
false
IsOverWrite
=
true
DllFilePath
=
C
\:\\
Users
\\
Lenovo
\\
Desktop
\\
haojin750_TFT
\\
haojin750tft
\\
Firmware
\\
utility
\\\u
8BCA
\u
65AD
\u
5DE5
\u5177\\\u
89E3
\u9501\u6587\u
4EF6
\\
default_64.dll
DllFilePath
=
MergeAudioOutPutPath
=
MergeCanOutPutPath
=
ChangeOutPutFilePath
=
...
...
@@ -42,12 +42,12 @@ UpdateProcess=\u9ED8\u8BA4
Driver
=
Kvaser
MergeFlashImageFormat
=
RH850_F1KMGPIOJSONpath
=
DriverFilePath
=
C
\:\\
Users
\\
Lenovo
\\
Desktop
\\
haojin750_TFT
\\
haojin750tft
\\
Firmware
\\
utility
\\\u
8BCA
\u
65AD
\u
5DE5
\u5177\\
FlashDriver
\\
R5_FlashDriver.srec
DriverFilePath
=
IsMergeCreateHex
=
false
MergeFlashIsCreateREC
=
false
TTFExtractTTFpath
=
MergeImageFilePath
=
IsMergeCreateUpdateBin
=
fals
e
IsMergeCreateUpdateBin
=
tru
e
MergeImageSize
=
128M
CRCFilePath
=
MergeFlashCompressionFormat
=
...
...
@@ -56,8 +56,8 @@ IsHexDisplay=true
MergeLineInXLSPath
=
MergeFlashInPutFilePath
=
MergeFlashIsInternal
=
false
MergeOutPutFilePath
=
C
\:\\
Users
\\
Lenovo
\\
Desktop
\\
haojin750tft_2024-8-13
MergeAppFilePath
=
C
\:\\
Users
\\
Lenovo
\\
Desktop
\\
haojin750tft_2024-8-13
\\
HaoJin750TFT.hex
MergeOutPutFilePath
=
D
\:\\\u9879\u
76EE
\\\u
8C6A
\u
8FDB
\\
haojin750TFT
\\
srec
MergeAppFilePath
=
D
\:\\
git
\\
haojin750tft
\\
Firmware
\\
Project
\\
Cmsemicon
\\
BAT32A279
\\
MDK_ARM
\\
Objects
\\
HaoJin750TFT.hex
MergeTelltalesXLSPath
=
FillingByte
=
-86
ImageVersion
=
0
...
...
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