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
649ed310
Commit
649ed310
authored
Aug 30, 2024
by
张金硕
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jinshuo' into 'dev'
Jinshuo See merge request
!68
parents
582e5a68
6b079117
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
76 additions
and
47 deletions
+76
-47
HaoJin750TFT.uvprojx
.../Project/Cmsemicon/BAT32A279/MDK_ARM/HaoJin750TFT.uvprojx
+2
-2
BlueTooth.c
Firmware/Source/Application/BlueTooth.c
+31
-34
BlueTooth.h
Firmware/Source/Application/BlueTooth.h
+1
-2
AMT630H_Datas.c
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
+13
-0
UartProtocol.h
Firmware/Source/Component/AMT630H/UartProtocol.h
+29
-8
kei_S1.0.5_20240822.lib
Firmware/Source/Component/AMT630H/kei_S1.0.5_20240822.lib
+0
-0
kei_S1.0.6_20240827.lib
Firmware/Source/Component/AMT630H/kei_S1.0.6_20240827.lib
+0
-0
Sys_Task_List.c
Firmware/Source/System/Sys_Task_List.c
+0
-1
No files found.
Firmware/Project/Cmsemicon/BAT32A279/MDK_ARM/HaoJin750TFT.uvprojx
View file @
649ed310
...
...
@@ -979,9 +979,9 @@
<FilePath>
..\..\..\..\Source\Component\AMT630H\PicBin.h
</FilePath>
</File>
<File>
<FileName>
kei_S1.0.
5_20240822
.lib
</FileName>
<FileName>
kei_S1.0.
6_20240827
.lib
</FileName>
<FileType>
4
</FileType>
<FilePath>
..\..\..\..\Source\Component\AMT630H\kei_S1.0.
5_20240822
.lib
</FilePath>
<FilePath>
..\..\..\..\Source\Component\AMT630H\kei_S1.0.
6_20240827
.lib
</FilePath>
</File>
<File>
<FileName>
UartProtocol.h
</FileName>
...
...
Firmware/Source/Application/BlueTooth.c
View file @
649ed310
...
...
@@ -53,11 +53,38 @@ void BlueToothService()
{
Menu_Change_Branch_To_Item
(
MENU_BRANCH_ANIMATION
,
MENU_ITEM_MAIN_ITEM
);
}
SetUUIDData
((
char
*
)
UUIDConfigBuf
,
22
);
QRCode_Rect
.
x
=
650
;
QRCode_Rect
.
y
=
210
;
QRCode_Rect
.
height
=
240
;
QRCode_Rect
.
width
=
240
;
SetScreenType
(
QRCode_TYPE
,
QRCode_Rect
);
if
(
Menu_Get_Current_Cursor_Information
()
!=
MENU_ITEM_FAULT_INFORMATION
)
{
OTA_Update_Flag
=
0
;
}
if
(
OTA_Update_Flag
==
1
)
{
if
(
OTA_Update_Count_Open
<
5
)
{
SetUpdateCtrl
(
1
,
QRCode_Rect
);
OTA_Update_Count_Open
++
;
}
OTA_Update_Count_Close
=
0
;
}
else
{
if
(
OTA_Update_Count_Close
<
5
)
{
SetUpdateCtrl
(
0
,
QRCode_Rect
);
OTA_Update_Count_Close
++
;
}
OTA_Update_Count_Open
=
0
;
}
// SetTaskbarHeight(150);
SetBlueToothName
((
uint8_t
*
)
HJBlueToothName
,
sizeof
(
HJBlueToothName
));
TextService
();
// SetBlueToothName((uint8_t *)HJBlueToothName, sizeof(HJBlueToothName));
// SetUUIDData((char *)UUIDConfigBuf, 22);
// BlueConnectStatus = GetBlueToothPowerSTATE();
// juasfha = BlueToothPhoneData.BlueToothPhoneSate;
...
...
@@ -136,33 +163,3 @@ void TextService(void)
}
}
void
OTAUpdateService
(
void
)
{
QRCode_Rect
.
x
=
178
;
QRCode_Rect
.
y
=
130
;
QRCode_Rect
.
height
=
240
;
QRCode_Rect
.
width
=
240
;
SetScreenType
(
QRCode_TYPE
,
QRCode_Rect
);
if
(
Menu_Get_Current_Cursor_Information
()
!=
MENU_ITEM_FAULT_INFORMATION
)
{
OTA_Update_Flag
=
0
;
}
if
(
OTA_Update_Flag
==
1
)
{
if
(
OTA_Update_Count_Open
<
5
)
{
SetUpdateCtrl
(
1
,
QRCode_Rect
);
OTA_Update_Count_Open
++
;
}
OTA_Update_Count_Close
=
0
;
}
else
{
if
(
OTA_Update_Count_Close
<
5
)
{
SetUpdateCtrl
(
0
,
QRCode_Rect
);
OTA_Update_Count_Close
++
;
}
OTA_Update_Count_Open
=
0
;
}
}
Firmware/Source/Application/BlueTooth.h
View file @
649ed310
...
...
@@ -32,8 +32,7 @@ typedef struct {
extern
void
BlueToothService
(
void
);
extern
void
OTAUpdateService
(
void
);
extern
void
OTAUpdateInit
(
void
);
extern
_PICID_Struct
PicObj
;
extern
_QRCODE_RECT
QRCode_Rect
;
#endif
\ No newline at end of file
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
View file @
649ed310
...
...
@@ -4335,6 +4335,19 @@ void AMT630H_GUI_ReadPosittion_Display(void)
AMT630H_GUI_Phone_Connect_Win
();
break
;
case
MENU_ITEM_PHONE_CONNECT_APP
:
// PicObj.qr_logo_id = Pic_0234;//小数字9
// PicObj.main_pic_id = Pic_0382; //大白背景图
// PicObj.qr_pic_id = Pic_0479;//小数字0
// PicObj.update_pic_id = Pic_0233;//小数字8
// PicObj.second_menu = 0;
// PicObj.navigation_task_id = Pic_0411;//红色小e
// PackedTransfer_DisplayPhoneMirrorQRcode(1, PicObj);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0001_0_0);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0476_0_0);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0477_178_130);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0234_605_289);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0479_242_313);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0411_56_533);
break
;
default:
...
...
Firmware/Source/Component/AMT630H/UartProtocol.h
View file @
649ed310
...
...
@@ -31,6 +31,9 @@ extern uint8_t GetAliveCounter(ALIVE_COUNTER_TYPE n); /* 0:ALIVE_COUNTER_COMM, 1
extern
uint32_t
GetCrcErrCnts
(
void
);
extern
uint32_t
GetRecvLenErrCnts
(
void
);
extern
uint8_t
GetLcdInitSt
(
void
);
extern
uint8_t
GetCameraSignalSt
(
void
);
extern
uint8_t
GetVideoCaptureSt
(
void
);
extern
uint8_t
GetAmt630InBoot
(
void
);
extern
uint8_t
GetLcdInitStB
(
void
);
extern
uint8_t
*
GetUartRecvData
(
uint32_t
*
UartRecvBufLen
,
uint32_t
*
UartRecvPos
);
extern
void
UartSendData
(
uint8_t
*
data
,
uint32_t
len
);
...
...
@@ -190,6 +193,11 @@ extern void PackedTransfer_InitPointer(POINTER_ENUM PointerN, uint8_t *data, uin
extern
uint8_t
GetPointerInitSt
(
POINTER_ENUM
PointerN
);
extern
void
PackedTransfer_SetPointerDestVal
(
POINTER_ENUM
PointerN
,
uint16_t
DestVal
,
uint8_t
NoDamping
);
/* DestVal:0~1000, NoDamping: 0-have damping, 1:no damping */
extern
uint16_t
GetPointerCurVal
(
POINTER_ENUM
PointerN
);
/* CurVal:0~1000 */
#define POINTER_NUM_LIST_MAX 20
extern
void
SetPointerNumPic
(
POINTER_ENUM
PointerN
,
uint8_t
n
,
uint16_t
PicIndex
,
uint16_t
PointerVal
);
extern
void
SetPointerNumZoomPara
(
POINTER_ENUM
PointerN
,
uint16_t
ZoomRange
,
float
ZoomMax
);
extern
void
PackedTransfer_PointerNumData
(
POINTER_ENUM
PointerN
);
/* Pointer end */
/* Page Data */
...
...
@@ -227,21 +235,26 @@ typedef enum {
TFT_ROT_270
,
}
TFT_ROT_TYPE
;
#define TEXT_ROT_SCALE (r, s) ((((r) & 0xffff) << 16) | (
s) & 0xffff
)
#define TEXT_ROT_SCALE (r, s) ((((r) & 0xffff) << 16) | (
(s) & 0xffff)
)
#define TEXT_COLOR(r, g, b, a) ((((r) & 0xff) << 24) | (((g) & 0xff) << 16) | (((b) & 0xff) << 8) | ((a) & 0xff))
#define TEXT_LINE_OFFSET(x, y) ((((x) & 0xffff) << 16) | ((y) & 0xffff))
#define GROUP_ALIGN_LEFT 0x0
#define GROUP_ALIGN_CENTER 0x40
extern
void
SetPageGuid
(
GRAPHICS_PAGE_ENUM
page
,
uint8_t
h
,
uint8_t
m
,
uint8_t
l
);
extern
void
SetPageBackground
(
GRAPHICS_PAGE_ENUM
page
,
uint16_t
PicIndex
);
extern
void
SetPagePic
(
GRAPHICS_PAGE_ENUM
page
,
uint16_t
PicIndex
);
extern
void
SetPagePicPointerNum
(
GRAPHICS_PAGE_ENUM
page
,
POINTER_ENUM
PointN
,
uint16_t
PicIndex
);
extern
void
SetPagePicFree
(
GRAPHICS_PAGE_ENUM
page
,
uint16_t
PicIndex
,
int16_t
PosX
,
int16_t
PosY
);
extern
void
SetPagePicFreeAppend
(
GRAPHICS_PAGE_ENUM
page
,
uint16_t
pic
,
int16_t
PosX
,
int16_t
PosY
);
extern
void
SetPagePicGroupExtParaOriCoor
(
GRAPHICS_PAGE_ENUM
page
,
uint8_t
PicNum
,
uint16_t
NumZeroPic
);
extern
void
SetPagePicGroup
(
GRAPHICS_PAGE_ENUM
page
,
int16_t
Interval
,
int16_t
PosX
,
int16_t
PosY
,
uint16_t
*
PicList
,
uint32_t
Align_Num
,
uint16_t
Dot_Itv
,
TFT_ROT_TYPE
TftRot
);
extern
void
SetPageText
(
GRAPHICS_PAGE_ENUM
page
,
uint16_t
LabelNum
,
int16_t
PosX
,
int16_t
PosY
,
int16_t
MaxX
,
TEXT_ALIGN_TYPE
AlginType
,
uint32_t
RotScale
,
uint32_t
Color
);
/* TEXT_ROT_SCALE:use TEXT_ROT_SCALE macro, (r:0~3600); (s:-1000 ~ 1000, 0:no scale, 1 ~ 1000:zoom in, -1 ~ -1000:zoom out); Color:use TEXT_COLOR
macro */
extern
void
SetPageText
(
GRAPHICS_PAGE_ENUM
page
,
uint16_t
LabelNum
,
int16_t
PosX
,
int16_t
PosY
,
int16_t
MaxX
,
TEXT_ALIGN_TYPE
AlginType
,
uint32_t
RotScale
,
uint32_t
Color
,
uint32_t
LineOffset
);
/* TEXT_ROT_SCALE:use TEXT_ROT_SCALE macro, (r:0~3600); (s:-1000 ~ 1000, 0:no scale, 1 ~ 1000:zoom in, -1 ~ -1000:zoom out); Color:use TEXT_COLOR macro; LineOffset:use TEXT_LINE_OFFSET
macro */
extern
void
SetPagePointerPic
(
GRAPHICS_PAGE_ENUM
page
,
POINTER_ENUM
PointN
,
uint16_t
PicIndex
);
extern
void
SetPagePointerSePic
(
GRAPHICS_PAGE_ENUM
page
,
POINTER_ENUM
PointN
);
extern
void
SetPagePointerTrackPic
(
GRAPHICS_PAGE_ENUM
page
,
POINTER_ENUM
PointN
,
uint16_t
PicIndex
);
extern
void
SetPageSliderNumPic
(
GRAPHICS_PAGE_ENUM
page
,
uint8_t
SliderNum
);
extern
void
PackedTransfer_PicDirectDraw
(
uint32_t
PicIndex
,
uint8_t
Valid
);
extern
void
PackedTransfer_BgJpg
(
uint32_t
PicIndex
);
extern
void
PackedTransfer_Page
(
void
);
...
...
@@ -255,9 +268,6 @@ extern void PackedTransfer_ComposeData(uint8_t *data, uint8_t len);
/* Label List */
extern
uint8_t
GetLanguageInitSt
(
void
);
extern
uint8_t
GetCameraImageValid
(
void
);
extern
uint8_t
GetItuTakeVideo
(
void
);
extern
uint8_t
GetCarlinkLcdTack
(
void
);
extern
void
PackedTransfer_InitLanguageFont
(
uint8_t
Language
,
uint8_t
Font
);
extern
void
PackedTransfer_LabelsList
(
uint16_t
LabelNum
,
uint8_t
*
LabelBuf
,
uint32_t
LabelLen
);
/* Label List end */
...
...
@@ -274,15 +284,16 @@ extern void PackedTransfer_CheckFlashForceDisplay(FLASH_CHECK_FORCE_DISPLAY_TYPE
/* Flash Check end */
/* Video Input */
extern
void
PackedTransfer_VedioInputOn
(
void
);
extern
void
PackedTransfer_VedioInputOn
(
uint32_t
PosX
,
uint32_t
PosY
,
uint32_t
Wdith
,
uint32_t
Height
,
uint32_t
CutX
,
uint32_t
CutY
);
extern
void
PackedTransfer_VedioInputOff
(
void
);
extern
void
PackedTransfer_VedioInputArk7116OutputOff
(
void
);
extern
void
PackedTransfer_VedioInputArk7116OutputOn
(
void
);
/* Video Input end */
/* Get Mcu or Backup Data */
typedef
enum
{
REQ_DATA
,
GET_STATUS
,
GET_OFFSET
,
GET_APP_DATA_OFFSET
,
GET_BACKUP_DATA_OFFSET
,
GET_BACKUP_DATA_CRC
,
...
...
@@ -303,6 +314,15 @@ extern void PackedTransfer_GetBackupDataCrc(uint32_t addr, uint32_t len);
extern
void
PackedTransfer_WriteBackupData
(
uint32_t
addr
,
uint8_t
*
data
,
uint16_t
len
);
/* Get Mcu or Backup Data end */
/* Set tft io mode */
extern
void
PackedTransfer_SetTftIoMode
(
uint8_t
st
);
/*st 0:normal gpio, 1:TFT io*/
/* Set tft io mode end */
/* Slider Num */
extern
void
PackedTransfer_SliderNumData
(
uint8_t
n
,
uint8_t
*
data
,
uint32_t
len
);
extern
void
PackedTransfer_SliderNumDestVal
(
uint8_t
n
,
uint16_t
val
,
uint8_t
ForceUpdate
,
uint8_t
DisplayValid
);
/* Slider Num end */
enum
{
NUM_0
,
NUM_1
,
NUM_2
,
NUM_3
,
NUM_4
,
NUM_5
,
NUM_6
,
NUM_7
,
NUM_8
,
NUM_9
,
NUM_POINT
,
NUM_LINE
};
typedef
struct
{
const
uint16_t
*
NumList
;
...
...
@@ -349,7 +369,7 @@ enum BlueToothStatus
{
BlueTooth_Undefine
=
0u
,
BlueTooth_DisConnect
,
BlueTooth_Connection
,
BlueTooth_Connection
};
enum
ECNaviIcon
...
...
@@ -510,5 +530,6 @@ extern void SetUpdateCtrl(uint8_t cmddata,_QRCODE_RECT qrcode_obj);
extern
void
SetBlueToothName
(
uint8_t
*
data
,
uint8_t
len
);
extern
void
SetTaskbarHeight
(
uint16_t
height
);
extern
void
Set_Pro_Unique_Identifier
(
uint8_t
*
data
,
uint8_t
len
);
extern
uint8_t
GetUpdate
(
void
);
#endif
Firmware/Source/Component/AMT630H/kei_S1.0.5_20240822.lib
deleted
100644 → 0
View file @
582e5a68
File deleted
Firmware/Source/Component/AMT630H/kei_S1.0.6_20240827.lib
0 → 100644
View file @
649ed310
File added
Firmware/Source/System/Sys_Task_List.c
View file @
649ed310
...
...
@@ -83,7 +83,6 @@ void Sys_100ms_Tasks(void)
Coolant_Cal_Sevice
(
100u
);
Services_Mileage_Callback
();
// Data_Mileage_Clear();
OTAUpdateService
();
RTE_GPIO_Config
(
RTE_GPIO_PORT05_PIN04
,
GpioOut_High
);
//BackLight_Process();
//TimerM_PWM_set_duty(TIMERM_COUNTER1, TIMERM_CHB, 100);
...
...
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