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
68178d89
Commit
68178d89
authored
Apr 21, 2025
by
李梓源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:S1检测台初版程序
parent
1e86da41
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
46 additions
and
133 deletions
+46
-133
Check_Ctrl.c
YueJin_test_bench/source/Appliciation/Check_Ctrl.c
+3
-44
Display_Info.c
YueJin_test_bench/source/Appliciation/Display_Info.c
+29
-72
RTE_GPIO.c
YueJin_test_bench/source/Appliciation/RTE_GPIO.c
+6
-6
RTE_GPIO.h
YueJin_test_bench/source/Appliciation/RTE_GPIO.h
+7
-10
Analog_Signals.c
..._test_bench/source/Driver/Analog_Signals/Analog_Signals.c
+1
-1
No files found.
YueJin_test_bench/source/Appliciation/Check_Ctrl.c
View file @
68178d89
...
...
@@ -73,7 +73,7 @@ void Function_Check_Ctrl(uint32_t cmd);
void
MENU_CHECK_STEP_ADD
(
void
)
{
MENU_CHECK_STEP
++
;
if
(
MENU_CHECK_STEP
>
9
)
if
(
MENU_CHECK_STEP
>
8
)
{
MENU_CHECK_STEP
=
0
;
}
...
...
@@ -603,7 +603,8 @@ void Function_Check_Ctrl(uint32_t cmd)
RELAY_VBAT_MCU
=
1
;
RELAY_DC12V_MCU
=
1
;
RELAY_KEY_MCU
=
1
;
left_turn
=
1
;
// Aima_SLF(1u, 0x04, 0x1, 1u);
// left_turn = 1;
}
break
;
}
...
...
@@ -650,8 +651,6 @@ void Function_Check_Ctrl(uint32_t cmd)
RELAY_DC12V_MCU
=
1
;
RELAY_KEY_MCU
=
0
;
}
// ABC_OUT = 1;
left_turn
=
0
;
break
;
...
...
@@ -745,48 +744,8 @@ void Function_Check_Ctrl(uint32_t cmd)
ABC_OUT
=
0
;
break
;
}
case
9
:
{
RELAY_VBAT_MCU
=
1
;
RELAY_DC12V_MCU
=
1
;
RELAY_KEY_MCU
=
1
;
RELAY_LIGHTCONTROL_MCU
=
0
;
if
(
ACCONOFF_delay_3s
<=
5
)
{
ONE_START
=
1
;
}
else
if
(
ACCONOFF_delay_3s
>
5
&&
ACCONOFF_delay_3s
<=
8
)
{
ONE_START
=
0
;
}
else
if
(
ACCONOFF_delay_3s
>
10
&&
ACCONOFF_delay_3s
<=
13
)
{
ONE_START
=
1
;
}
else
if
(
ACCONOFF_delay_3s
>
13
&&
ACCONOFF_delay_3s
<=
17
)
{
ONE_START
=
0
;
}
else
{
ONE_START
=
1
;
}
if
(
ACCONOFF_delay_3s
>
17
&&
CHECK_Value
==
0
)
{
ACCONOFF_delay_3s
=
0
;
}
break
;
}
default:
break
;
// }
}
}
}
...
...
YueJin_test_bench/source/Appliciation/Display_Info.c
View file @
68178d89
...
...
@@ -4434,7 +4434,10 @@ void Display_Send_Vspead(uint8_t menu)
{
case 0:
{
CHECK_Value
=
1
;
if(CHECK_Ctrl_delay > 20)
{
CHECK_Value = 1;
}
}
break;
case 1:
...
...
@@ -4446,28 +4449,30 @@ void Display_Send_Vspead(uint8_t menu)
break;
}
case 2:
if
(
DIS_AD
==
0
)
{
TFT_LCD_Draw_Bmp
(
51
,
261
,(
uint8_t
*
)
gImage_Alarm_09_Word0X51_Y261
);
DIS_VALUE
=
1
;
}
else
if(CHECK_Ctrl_delay >=20)
{
if
(
DIS_
VALUE
==
1
)
if(DIS_
AD
== 1)
{
if
(
DIS_AD
==
1
)
{
DIS_VALUE
=
0
;
CHECK_Value
=
1
;
}
else
TFT_LCD_Draw_Bmp(51,261,( uint8_t * )gImage_Alarm_09_Word0X51_Y261);
DIS_VALUE = 1;
}
else
{
if(DIS_VALUE == 1)
{
CHECK_Value
=
0
;
if(DIS_AD == 0)
{
DIS_VALUE = 0;
CHECK_Value = 1;
}
else
{
CHECK_Value = 0;
}
}
// TFT_LCD_Draw_Box(0, 261, 239, 319, TFT_LCD_FILL_FULL, TFT_LCD_TYPE_CLR);
}
// TFT_LCD_Draw_Box(0, 261, 239, 319, TFT_LCD_FILL_FULL, TFT_LCD_TYPE_CLR);
}
break;
case 3:
...
...
@@ -4480,7 +4485,7 @@ void Display_Send_Vspead(uint8_t menu)
// CHECK_Value = 0;
// }
if
(
DIS_AD
==
0
)
if(DIS_AD ==
1
)
{
DIS_VALUE = 1;
TFT_LCD_Draw_Bmp(51,261,( uint8_t * )gImage_Alarm_10_Word0X51_Y261);
...
...
@@ -4489,7 +4494,7 @@ void Display_Send_Vspead(uint8_t menu)
{
if(DIS_VALUE == 1)
{
if
(
DIS_AD
==
1
)
if(DIS_AD ==
0
)
{
DIS_VALUE = 0;
CHECK_Value = 1;
...
...
@@ -4499,26 +4504,14 @@ void Display_Send_Vspead(uint8_t menu)
CHECK_Value = 0;
}
}
//
TFT_LCD_Draw_Box(0, 261, 239, 319, TFT_LCD_FILL_FULL, TFT_LCD_TYPE_CLR);
//
TFT_LCD_Draw_Box(0, 261, 239, 319, TFT_LCD_FILL_FULL, TFT_LCD_TYPE_CLR);
}
break;
case 4:
if(CHECK_Ctrl_delay >= 30)
{
CHECK_Value = 1;
}
if
(
LOGOTY_AD
==
1
)
{
// CHECK_Value = 1;
TFT_LCD_Draw_Bmp
(
51
,
261
,(
uint8_t
*
)
gImage_Alarm_13_Word0X51_Y261
);
}
else
{
// CHECK_Value = 1;
TFT_LCD_Draw_Box
(
0
,
261
,
239
,
319
,
TFT_LCD_FILL_FULL
,
TFT_LCD_TYPE_CLR
);
}
}
break;
case 5:
if(CHECK_Ctrl_delay >= 30)
...
...
@@ -4580,46 +4573,10 @@ void Display_Send_Vspead(uint8_t menu)
TFT_LCD_Draw_Box(0, 261, 239, 319, TFT_LCD_FILL_FULL, TFT_LCD_TYPE_CLR);
}
break
;
// case 8:
// if(DIS_AD == 0)
// {
// DIS_VALUE = 1;
// TFT_LCD_Draw_Bmp(51,261,( uint8_t * )gImage_Alarm_10_Word0X51_Y261);
// }
// else
// {
// if(DIS_VALUE == 1)
// {
// CHECK_Value = 1;
// DIS_VALUE = 0;
// }
// // TFT_LCD_Draw_Box(0, 261, 239, 319, TFT_LCD_FILL_FULL, TFT_LCD_TYPE_CLR);
// }
// break;
case
9
:
if
(
ZYS_A
==
1
)
{
CHECK_Value
=
1
;
TFT_LCD_Draw_Bmp
(
51
,
261
,(
uint8_t
*
)
gImage_Alarm_08_Word0X51_Y261
);
}
else
{
// Display_TFT_Clear();
}
if
(
ZYS_B
==
1
)
{
CHECK_Value
=
1
;
TFT_LCD_Draw_Bmp
(
51
,
200
,(
uint8_t
*
)
gImage_gImage_ABSX6_Y165
);
}
else
{
// Display_TFT_Clear();
}
break;
default:
MENU_CHECK_STEP
=
0
;
break
;
MENU_CHECK_STEP = 0;
break;
}
}
...
...
YueJin_test_bench/source/Appliciation/RTE_GPIO.c
View file @
68178d89
...
...
@@ -89,6 +89,12 @@ void RTE_GPIO_Init(void)
gpio_temp
.
enGPIODir
=
GPIO_DIR_IN
;
gpio_temp
.
enGPIOAltFun
=
GPIO_ALTER_FUN_1
;
GPIO_Config
(
&
gpio_temp
);
gpio_temp
.
enGPIOPort
=
GPIO_PORT_GROUP_AP0
;
gpio_temp
.
enGPIOPIN
=
GPIO_PIN_7
;
gpio_temp
.
enGPIOMode
=
GPIO_MODE_PORT
;
gpio_temp
.
enGPIODir
=
GPIO_DIR_IN
;
gpio_temp
.
enGPIOAltFun
=
GPIO_ALTER_FUN_1
;
GPIO_Config
(
&
gpio_temp
);
gpio_temp
.
enGPIOPort
=
GPIO_PORT_GROUP_8
;
gpio_temp
.
enGPIOPIN
=
GPIO_PIN_12
;
gpio_temp
.
enGPIOMode
=
GPIO_MODE_PORT
;
...
...
@@ -132,12 +138,6 @@ void RTE_GPIO_Init(void)
gpio_temp
.
enGPIOAltFun
=
GPIO_ALTER_FUN_1
;
GPIO_Config
(
&
gpio_temp
);
gpio_temp
.
enGPIOPort
=
GPIO_PORT_GROUP_AP0
;
gpio_temp
.
enGPIOPIN
=
GPIO_PIN_9
;
gpio_temp
.
enGPIOMode
=
GPIO_MODE_PORT
;
gpio_temp
.
enGPIODir
=
GPIO_DIR_IN
;
gpio_temp
.
enGPIOAltFun
=
GPIO_ALTER_FUN_1
;
GPIO_Config
(
&
gpio_temp
);
gpio_temp
.
enGPIOPort
=
GPIO_PORT_GROUP_AP0
;
gpio_temp
.
enGPIOPIN
=
GPIO_PIN_10
;
gpio_temp
.
enGPIOMode
=
GPIO_MODE_PORT
;
gpio_temp
.
enGPIODir
=
GPIO_DIR_IN
;
...
...
YueJin_test_bench/source/Appliciation/RTE_GPIO.h
View file @
68178d89
...
...
@@ -7,8 +7,9 @@
#define LINE_OUT_NEG_09 GPIO_OUT_PORT10_PIN04 //485_RE
#define ONE_START GPIO_OUT_PORT10_PIN1
3
//一键启动
#define ONE_START GPIO_OUT_PORT10_PIN1
4
//一键启动
#define ABC_OUT GPIO_OUT_PORT00_PIN04 //ABC轮动报警输出
#define BCDD_MCU GPIO_OUT_PORT10_PIN00 //脚撑
#define RELAY_VBAT_MCU GPIO_OUT_PORT10_PIN10
#define RELAY_DC12V_MCU GPIO_OUT_PORT10_PIN09
...
...
@@ -31,15 +32,11 @@
#define SW8 GPIO_IN_APORT00_PIN05
#define AD_B GPIO_IN_APORT00_PIN06
#define ACC_AD GPIO_IN_APORT00_PIN07
#define TY_YL_AD GPIO_IN_APORT00_PIN08
#define WYTY_AD GPIO_IN_APORT00_PIN09
#define LOGOTY_AD GPIO_IN_APORT00_PIN10
#define DIS_AD GPIO_IN_APORT00_PIN11
#define Light_control_headlights GPIO_IN_APORT00_PIN12 //光控大灯
#define ZXSW_AD GPIO_IN_APORT00_PIN13
#define ZYS_B GPIO_IN_APORT00_PIN14 //坐桶锁B
#define ZYS_A GPIO_IN_APORT00_PIN15 //坐桶锁A
#define DCF_Open GPIO_IN_APORT00_PIN07 //电磁阀开
#define ZXSW_AD GPIO_IN_APORT00_PIN08
#define DCF_Close GPIO_IN_APORT00_PIN09 //电磁阀关
#define DIS_AD GPIO_IN_APORT00_PIN10
#define Light_control_headlights GPIO_IN_APORT00_PIN11 //光控大灯
#define TX_OUT GPIO_OUT_PORT00_PIN08 //一线通TX输出
...
...
YueJin_test_bench/source/Driver/Analog_Signals/Analog_Signals.c
View file @
68178d89
...
...
@@ -74,7 +74,7 @@ ADC_Data_st_t stADCData[ADC_SIGNAL_CH_NUMBER];
const
uint8_t
u8ADCChList
[
ADC_CONV_CH_NUMBER
]
=
{
9U
,
15U
,
1
2U
,
13
U
,
9U
,
15U
,
1
1U
,
8
U
,
};
const
ADC_Ch_Cfg_st_t
stADCChCfg
[
ADC_SIGNAL_CH_NUMBER
]
=
...
...
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