Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiancetai
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
陈家乐
jiancetai
Commits
afa7cddb
Commit
afa7cddb
authored
Nov 05, 2024
by
郑萍
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:部分贴图
parent
5b45145d
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1801 additions
and
533 deletions
+1801
-533
io_config.c
source/app/api_gpio/io_config.c
+2
-2
api_timer.c
source/app/api_timer/api_timer.c
+2
-2
app_tft.c
source/app/app_tft/app_tft.c
+242
-233
picture.h
source/app/app_tft/picture.h
+1477
-221
bsp_app_AUTO.c
source/bsp_source/bsp_button/bsp_app_AUTO.c
+4
-2
bsp_button.c
source/bsp_source/bsp_button/bsp_button.c
+71
-72
bsp_button.h
source/bsp_source/bsp_button/bsp_button.h
+2
-0
main.c
source/main.c
+1
-1
No files found.
source/app/api_gpio/io_config.c
View file @
afa7cddb
...
...
@@ -87,7 +87,7 @@ void Api_GPIO_Init(void)
Port_SetPinConfig
(
1
,
3
,
&
stc_IN_pin_config
);
//
Port_SetPinConfig
(
1
,
7
,
&
stc_IN_pin_config
);
//
// Port_SetPinConfig(1, 4, &stc_IN_pin_config); //NEW BUTTON 7 AD �ɼ�
Port_SetPinConfig
(
1
,
15
,
&
stc_IN_pin_config
);
// b+~
Port_SetPinConfig
(
1
,
10
,
&
stc_IN_pin_config
);
// test
//AD�ɼ���
...
...
@@ -111,7 +111,7 @@ void Api_GPIO_Init(void)
.
enGpioInitOutputLevel
=
PortGpioLow
,
};
Port_SetPinConfig
(
1
,
15
,
&
stc_OUT_pin_config
);
// b+~
//BD8379����
Port_SetPinConfig
(
2
,
4
,
&
stc_OUT_pin_config
);
//L_ONEBitCLU_OUT
Port_SetPinConfig
(
2
,
5
,
&
stc_OUT_pin_config
);
//L_CLKBitCLU_OUT
...
...
source/app/api_timer/api_timer.c
View file @
afa7cddb
...
...
@@ -277,7 +277,7 @@ static void TIMER_1MS_ISR(void)
CanRecvLibTimerCall
(
Timer1msCnts
);
//button State
if
(
ClusterValidTimerCnts
)
{
if
(
g_Stage
!=
STAGE_ClearODO
&&
g_Stage
!=
STAGE_AutoCheck
)
{
if
(
g_Stage
!=
STAGE_ClearODO
&&
HJ_OtherKeyCurrent
.
count
!=
11
)
{
ClusterValidTimerCnts
--
;
}
else
{
...
...
@@ -656,7 +656,7 @@ static void TIMER13_10MS_ISR(void)
DisplayErrTimer
=
0
;
}
if
(
g_Stage
==
STAGE_AutoCheck
)
{
if
(
HJ_OtherKeyCurrent
.
count
==
11
)
{
if
(
StaticCurrent
.
count
<
50
){
StaticCurrent
.
buf
[
StaticCurrent
.
count
]
=
AdcValList
[
14
];
//18
AAA
=
AdcValList
[
14
];
...
...
source/app/app_tft/app_tft.c
View file @
afa7cddb
This diff is collapsed.
Click to expand it.
source/app/app_tft/picture.h
View file @
afa7cddb
This source diff could not be displayed because it is too large. You can
view the blob
instead.
source/bsp_source/bsp_button/bsp_app_AUTO.c
View file @
afa7cddb
...
...
@@ -38,6 +38,8 @@ uint8_t NUM5_Data[10];
uint8_t
NUM6_Data
[
10
];
uint8_t
NUM7_Data
[
10
];
uint8_t
NUM8_Data
[
20
];
uint8_t
NUM9_Data
[
20
];
uint8_t
NUM10_Data
[
20
];
uint8_t
CSW_Data
[
10
];
uint8_t
SendSW
;
uint8_t
SendNUM1
;
...
...
@@ -2057,7 +2059,7 @@ void OtherCheck(void)
SetStartTime
(
0
);
break
;
case
AUTO_STATIC
:
StaticCurrentCheck
();
break
;
// case AUTO_OTHER:
// SpeedFreqILLCheck();
...
...
@@ -2528,7 +2530,7 @@ void APP_AUTO(void)
default:
ErrorCode
=
99
;
//??????
SetStartTime
(
0
);
ButtomCurrent
.
enable
=
0
;
break
;
}
}
...
...
source/bsp_source/bsp_button/bsp_button.c
View file @
afa7cddb
...
...
@@ -131,7 +131,7 @@ void Get_Button_Value()//��ȡ����AD
else
Botton.Back_light.Flag = 0;
#else
if
(
g_Stage
!=
STAGE_AutoCheck
)
{
if
(
HJ_OtherKeyCurrent
.
count
!=
11
)
{
Test_AD
=
Calculate_Thermistor
(
AdcValList
[
15
]);
if
((
Test_AD
>
130
)
&&
(
Test_AD
<
150
))
//����
Botton
.
Luminosity
.
Flag
=
1
;
...
...
@@ -1409,7 +1409,7 @@ void UserPressAuto(void)
{
g_Stage
=
STAGE_AutoCheck
;
#if (PRO_CONFIG_CHECK_APPLY)
Auto_Init
(
1
);
//��������̬�������
//
Auto_Init(1);//��������̬�������
#endif
}
...
...
@@ -1447,41 +1447,42 @@ uint8_t g_LedCheckDeriction = 0;
void
UserPressWarning
(
void
)
{
g_Stage
=
STAGE_Led_Telltale_Check
;
#if (PRO_CONFIG_CHECK_APPLY)
if
(
g_LedCheckDeriction
==
1
&&
LedCurrent
.
count
>
0
)
{
LedCurrent
.
count
=
0
;
}
g_LedCheckDeriction
=
0
;
if
(
g_uiLedWaitTimer
<=
0
){
#if (SEMI_AUTOMATIC_STAGE)
if
(
LedCurrent
.
count
<
STAGE_COUNT_HARD_LINE_LED
)
LedCurrent
.
count
++
;
g_uiLedWaitTimer
=
1000
;
// if(LedCurrent.count == 4){
// LedCurrent.count = 1;
// }
#else
#if (PRO_NU2)
if
(
LedCurrent
.
count
<
6
)
LedCurrent
.
count
++
;
g_uiLedWaitTimer
=
1000
;
if
(
LedCurrent
.
count
==
6
){
LedCurrent
.
count
=
1
;
}
#else
if
(
LedCurrent
.
count
<
4
)
LedCurrent
.
count
++
;
g_uiLedWaitTimer
=
1000
;
if
(
LedCurrent
.
count
==
4
){
LedCurrent
.
count
=
1
;
}
#endif
#endif
}
memset
(
&
BuzzerAlarm
,
0
,
sizeof
(
BuzzerAlarm
));
memset
(
&
CheckCurrent
,
0
,
sizeof
(
CheckCurrent
));
LedCurrent
.
Flag
=
0
;
#endif
// #if (PRO_CONFIG_CHECK_APPLY)
// if(g_LedCheckDeriction == 1 && LedCurrent.count > 0) {
// LedCurrent.count = 0;
// }
// g_LedCheckDeriction = 0;
// if (g_uiLedWaitTimer <= 0){
// #if (SEMI_AUTOMATIC_STAGE)
// if(LedCurrent.count < STAGE_COUNT_HARD_LINE_LED)
// LedCurrent.count ++;
// g_uiLedWaitTimer = 1000;
// // if(LedCurrent.count == 4){
// // LedCurrent.count = 1;
// // }
// #else
// #if (PRO_NU2)
// if(LedCurrent.count < 6)
// LedCurrent.count ++;
// g_uiLedWaitTimer = 1000;
// if(LedCurrent.count == 6){
// LedCurrent.count = 1;
// }
// #else
// if(LedCurrent.count < 4)
// LedCurrent.count ++;
// g_uiLedWaitTimer = 1000;
// if(LedCurrent.count == 4){
// LedCurrent.count = 1;
// }
// #endif
// #endif
// }
// memset(&BuzzerAlarm, 0, sizeof(BuzzerAlarm));
// memset(&CheckCurrent,0,sizeof(CheckCurrent));
// LedCurrent.Flag = 0;
// #endif
}
uint8_t
g_SpeedCheckDeriction
=
0
;
void
UserPressKeySpeedUp
(
void
)
...
...
@@ -2290,23 +2291,7 @@ void HJ_SwitchSecondPage()
g_Stage
=
STAGE_Other
;
//VSPEED
if
(
HJ_OtherKeyCurrent
.
count
<=
10
)
{
HJ_CurvSpeedNum
=
((((
HJ_OtherKeyCurrent
.
count
-
1
)
*
20
)
*
100
)
/
105
)
+
1
;
if
(
HJ_CurvSpeedNum
<
25
)
HJ_CurvSpeedNum
-=
1
;
}
else
{
HJ_CurvSpeedNum
=
199
;
}
//Gear
if
(
HJ_OtherKeyCurrent
.
count
<=
7
)
{
HJ_SettingNum
=
(
HJ_OtherKeyCurrent
.
count
-
1
);}
else
if
(
HJ_OtherKeyCurrent
.
count
==
8
)
{
HJ_SettingNum
=
0
;
}
else
{
HJ_SettingNum
=
15
-
HJ_OtherKeyCurrent
.
count
;
}
//ESPEED
if
(
HJ_OtherKeyCurrent
.
count
<=
9
)
{
...
...
@@ -2519,7 +2504,7 @@ void Stage_Manage()
#endif
}
if
(
Botton
.
Auto
.
Statu
==
1
){
// �Լ�
if
(
(
Botton
.
Auto
.
Statu
==
1
)
){
// �Լ�
Botton
.
Auto
.
Statu
=
0
;
#if (SEMI_AUTOMATIC_STAGE)
#else
...
...
@@ -2534,11 +2519,7 @@ void Stage_Manage()
// UserPressEOL();//��������
g_Stage
=
STAGE_Other
;
if
(
HJ_OtherKeyCurrent
.
count
==
0
)
{
HJ_OtherKeyCurrent
.
count
=
11
;
}
else
{
HJ_OtherKeyCurrent
.
count
--
;
}
ClearOtherSWFlagFun
();
ClearOtherFlagFun
();
Othercount
=
0
;
...
...
@@ -2557,11 +2538,24 @@ void Stage_Manage()
if
(
Botton
.
SpeedDown
.
Statu
==
1
){
// SPEED DOWN
Botton
.
SpeedDown
.
Statu
=
0
;
g_Stage
=
STAGE_Speed
;
HJ_OtherKeyCurrent
.
count
++
;
if
(
HJ_OtherKeyCurrent
.
count
==
11
)
{
Auto_Init
(
1
);
}
if
(
HJ_OtherKeyCurrent
.
count
>
11
)
{
HJ_OtherKeyCurrent
.
count
=
1
;
}
#if (SEMI_AUTOMATIC_STAGE)
if
(
g_PerFuncExecSecond
==
0
)
ExecSemiAutomaticCheck
(
0
);
#else
UserPressKeySpeedDown
();
//����-����
// UserPressKeySpeedDown();//����-����
#endif
}
...
...
@@ -2575,14 +2569,22 @@ void Stage_Manage()
if
(
Botton
.
FuelWaterUp
.
Statu
==
1
){
Botton
.
FuelWaterUp
.
Statu
=
0
;
g_Stage
=
STAGE_WaterAndFuel
;
if
(
HJ_OtherKeyCurrent
.
count
==
0
)
{
HJ_OtherKeyCurrent
.
count
=
11
;
Auto_Init
(
1
);
}
else
{
HJ_OtherKeyCurrent
.
count
--
;
}
#if (SEMI_AUTOMATIC_STAGE)
#else
UserPressKeyOilTempUp
();
//ȼ�͡�ˮ��+����
Gear_SWCount
++
;
if
(
Gear_SWCount
>
5
)
{
Gear_SWCount
=
1
;
}
//
UserPressKeyOilTempUp();//ȼ�͡�ˮ��+����
//
Gear_SWCount ++;
//
if(Gear_SWCount > 5)
//
{
//
Gear_SWCount = 1;
//
}
#endif
}
...
...
@@ -2684,15 +2686,12 @@ void Stage_Manage()
//UserPressKeyElse();//��������
// DOWNKeyCurrent.count ++;
g_Stage
=
STAGE_Other
;
HJ_OtherKeyCurrent
.
count
++
;
Line_Temp
();
ClearOtherSWFlagFun
();
ClearOtherFlagFun
();
Othercount
=
0
;
if
(
HJ_OtherKeyCurrent
.
count
>
11
)
{
HJ_OtherKeyCurrent
.
count
=
1
;
}
#endif
}
...
...
@@ -2707,7 +2706,7 @@ void Stage_Manage()
g_OldStage
=
g_Stage
;
if
(
g_Stage
!=
STAGE_AutoCheck
)
if
(
HJ_OtherKeyCurrent
.
count
!=
11
)
{
ErrorCode
=
0
;
StaticCurrent
.
Finsh
=
0
;
...
...
source/bsp_source/bsp_button/bsp_button.h
View file @
afa7cddb
...
...
@@ -26,6 +26,8 @@ extern uint8_t NUM5_Data[10];
extern
uint8_t
NUM6_Data
[
10
];
extern
uint8_t
NUM7_Data
[
10
];
extern
uint8_t
NUM8_Data
[
20
];
extern
uint8_t
NUM9_Data
[
20
];
extern
uint8_t
NUM10_Data
[
20
];
extern
uint8_t
CSW_Data
[
10
];
extern
volatile
uint16_t
ErrorCode
;
...
...
source/main.c
View file @
afa7cddb
...
...
@@ -836,7 +836,7 @@ void CANInit(void)
for
(;;)
{
RS485_User_Tx_Data
();
//
RS485_User_Tx_Data();
// // Port_SetPortPinLevel(1, 21, PortGpioLow);//测试
// Speed_Output_Update(PWMCH_SPEED_OUT, 356, 50);
...
...
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