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
be88bac5
Commit
be88bac5
authored
Oct 23, 2025
by
何锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:完成水温指示灯
parent
ab34077c
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
159 additions
and
1417 deletions
+159
-1417
CAN_APP.c
YueJin_test_bench/source/Appliciation/CAN_APP.c
+70
-1074
CAN_APP.h
YueJin_test_bench/source/Appliciation/CAN_APP.h
+1
-3
CAN_Communication_Matrix.c
...test_bench/source/Appliciation/CAN_Communication_Matrix.c
+0
-7
Check_Ctrl.c
YueJin_test_bench/source/Appliciation/Check_Ctrl.c
+26
-222
Display_Info.c
YueJin_test_bench/source/Appliciation/Display_Info.c
+57
-57
RTE_GPIO.h
YueJin_test_bench/source/Appliciation/RTE_GPIO.h
+3
-42
Task.c
YueJin_test_bench/source/Appliciation/Task.c
+2
-12
No files found.
YueJin_test_bench/source/Appliciation/CAN_APP.c
View file @
be88bac5
This diff is collapsed.
Click to expand it.
YueJin_test_bench/source/Appliciation/CAN_APP.h
View file @
be88bac5
...
@@ -15,7 +15,6 @@ void Can_Set_Buff_69B(uint8_t CopyData []);
...
@@ -15,7 +15,6 @@ void Can_Set_Buff_69B(uint8_t CopyData []);
void
Can_Set_Buff_28A
(
uint8_t
CopyData
[]);
void
Can_Set_Buff_28A
(
uint8_t
CopyData
[]);
void
Can_Set_Buff_2E1
(
uint8_t
CopyData
[]);
void
Can_Set_Buff_0E1
(
uint8_t
CopyData
[]);
void
Can_Set_Buff_0E1
(
uint8_t
CopyData
[]);
void
Can_Set_Buff_0F6
(
uint8_t
CopyData
[]);
void
Can_Set_Buff_0F6
(
uint8_t
CopyData
[]);
void
Can_Set_Buff_036
(
uint8_t
CopyData
[]);
void
Can_Set_Buff_036
(
uint8_t
CopyData
[]);
...
@@ -52,14 +51,13 @@ extern uint8_t ruanjianbanbenhao[8];
...
@@ -52,14 +51,13 @@ extern uint8_t ruanjianbanbenhao[8];
void
Get_PN_msg
(
void
);
void
Get_PN_msg
(
void
);
extern
void
Get_UID_msg
(
void
);
extern
void
Get_UID_msg
(
void
);
void
change_UDS_DID
(
void
);
void
change_UDS_DID
(
void
);
void
resetchangeUDSfuc
(
void
);
void
resetpowerfuel
(
void
);
void
UIDWrite
(
void
);
void
UIDWrite
(
void
);
extern
void
Get_SW_msg
(
void
);
extern
void
Get_SW_msg
(
void
);
extern
void
Get_SWIN_msg
(
void
);
extern
void
Get_SWIN_msg
(
void
);
extern
void
Get_HW_msg
(
void
);
extern
void
Get_HW_msg
(
void
);
extern
void
UIDRead
(
void
);
extern
void
UIDRead
(
void
);
extern
void
uidreset
(
void
);
extern
void
uidreset
(
void
);
extern
void
CAN_Service
(
void
);
extern
uint8_t
UIDcode1
[
33
];
extern
uint8_t
UIDcode1
[
33
];
extern
uint8_t
UIDcode2
[
33
];
extern
uint8_t
UIDcode2
[
33
];
extern
uint8_t
UIDNumber
[
19
];
extern
uint8_t
UIDNumber
[
19
];
...
...
YueJin_test_bench/source/Appliciation/CAN_Communication_Matrix.c
View file @
be88bac5
...
@@ -8,13 +8,6 @@ can4 64 95
...
@@ -8,13 +8,6 @@ can4 64 95
*/
*/
//Tx:
const
st_CAN_SendAttribute
st_CANSendAttr
[
ID_SEND_TOTAL
]
=
{
{
0x2E1ul
,
50ul
*
1000ul
,
0ul
,
0u
,
0
,
64u
,
8u
,
0
,
Can_Set_Buff_2E1
,
(
void
*
)
0
},
};
//Rx:
//Rx:
const
st_CANMsgAttribute
CAN_MSG_CONST_ARRAY
[
CAN_CH0_ID_TOTAL_MAX
]
=
const
st_CANMsgAttribute
CAN_MSG_CONST_ARRAY
[
CAN_CH0_ID_TOTAL_MAX
]
=
...
...
YueJin_test_bench/source/Appliciation/Check_Ctrl.c
View file @
be88bac5
This diff is collapsed.
Click to expand it.
YueJin_test_bench/source/Appliciation/Display_Info.c
View file @
be88bac5
This diff is collapsed.
Click to expand it.
YueJin_test_bench/source/Appliciation/RTE_GPIO.h
View file @
be88bac5
...
@@ -4,24 +4,7 @@
...
@@ -4,24 +4,7 @@
#include "TYW_stdint.h"
#include "TYW_stdint.h"
#include "GPIO.h"
#include "GPIO.h"
/*按键对应引脚*/
// #define LINE_IN_CHARGE GPIO_IN_PORT11_PIN00
// #define LINE_IN_BRAKE_LEVELn GPIO_IN_PORT08_PIN08
// #define LINE_IN_OIL_PRESSUREn GPIO_IN_PORT08_PIN09
// #define LINE_IN_WASHING_LEVELn GPIO_IN_PORT09_PIN01
// #define LINE_IN_PARKn GPIO_IN_PORT09_PIN00
// #define LED1 GPIO_OUT_APORT00_PIN07
// #define LED2 GPIO_OUT_APORT00_PIN08
// #define LED3 GPIO_OUT_APORT00_PIN10
// #define LED4 GPIO_OUT_APORT00_PIN11
// #define LED5 GPIO_OUT_APORT00_PIN12
// #define LED6 GPIO_OUT_PORT10_PIN06
// #define LED7 GPIO_OUT_PORT10_PIN06
// #define LCDAL GPIO_IN_APORT00_PIN13
// #define LCDAR GPIO_IN_APORT00_PIN14
#define SW1 GPIO_IN_APORT00_PIN00
#define SW1 GPIO_IN_APORT00_PIN00
#define SW2 GPIO_IN_PORT10_PIN05
#define SW2 GPIO_IN_PORT10_PIN05
#define SW3 GPIO_IN_APORT00_PIN01
#define SW3 GPIO_IN_APORT00_PIN01
...
@@ -33,25 +16,16 @@
...
@@ -33,25 +16,16 @@
#define SW8 GPIO_IN_APORT00_PIN06
#define SW8 GPIO_IN_APORT00_PIN06
#define SW9 GPIO_IN_PORT09_PIN00
#define SW9 GPIO_IN_PORT09_PIN00
#define SW10 GPIO_IN_PORT10_PIN06
#define SW10 GPIO_IN_PORT10_PIN06
/*燃油对应引脚*/
#define FUEL_RES_1 GPIO_OUT_PORT00_PIN13
#define FUEL_RES_1 GPIO_OUT_PORT00_PIN13
#define FUEL_RES_2 GPIO_OUT_PORT08_PIN12
#define FUEL_RES_2 GPIO_OUT_PORT08_PIN12
#define FUEL_RES_3 GPIO_OUT_PORT08_PIN10
#define FUEL_RES_3 GPIO_OUT_PORT08_PIN10
#define FUEL_RES_4 GPIO_OUT_PORT08_PIN11
#define FUEL_RES_4 GPIO_OUT_PORT08_PIN11
/*电源对应引脚*/
// #define LINE_OUT_CHARGER GPIO_OUT_PORT10_PIN06//
// #define LINE_OUT_OIL GPIO_OUT_PORT10_PIN06
// #define LINE_OUT_BREAK_LEVEL GPIO_OUT_PORT10_PIN06
// #define LINE_OUT_WARSH_LEVEL GPIO_OUT_PORT10_PIN06
// #define LINE_OUT_PARK GPIO_OUT_PORT10_PIN06
// #define LINE_OUT_EPS GPIO_OUT_PORT10_PIN06 //远光
#define POWER_CTRL_KL30 GPIO_OUT_PORT10_PIN13
#define POWER_CTRL_KL30 GPIO_OUT_PORT10_PIN13
#define POWER_CTRL_KL15 GPIO_OUT_PORT10_PIN12
#define POWER_CTRL_KL15 GPIO_OUT_PORT10_PIN12
#define POWER_CTRL_KL30_Current GPIO_OUT_PORT10_PIN14
#define POWER_CTRL_KL30_Current GPIO_OUT_PORT10_PIN14
// #define LINE_OUT_FANGDAO GPIO_OUT_PORT10_PIN06
#define SD_FMQ GPIO_OUT_PORT10_PIN02
#define SD_FMQ GPIO_OUT_PORT10_PIN02
#define PWM_FMQ GPIO_OUT_PORT10_PIN11
#define PWM_FMQ GPIO_OUT_PORT10_PIN11
...
@@ -67,19 +41,6 @@
...
@@ -67,19 +41,6 @@
#define NEG_9_Ctrl GPIO_OUT_PORT10_PIN04
#define NEG_9_Ctrl GPIO_OUT_PORT10_PIN04
#define NEG_10_Ctrl GPIO_OUT_PORT00_PIN08
#define NEG_10_Ctrl GPIO_OUT_PORT00_PIN08
// #define LINE_SafeBelt_1 NEG_1_Ctrl
// #define LINE_SafeBelt_2 NEG_2_Ctrl
// #define LINE_SafeBelt_3 NEG_3_Ctrl
// #define LINE_SafeBelt_4 NEG_4_Ctrl
// #define LINE_SafeBelt_5 NEG_5_Ctrl
// #define LINE_SafeBelt_2_press NEG_6_Ctrl
// #define LINE_SafeBelt_3_press NEG_7_Ctrl
// #define LINE_SafeBelt_4_press NEG_8_Ctrl
// #define LINE_SafeBelt_5_press NEG_9_Ctrl
//左转
//左转
#define LINE_OUT_POS_04 GPIO_OUT_APORT00_PIN05
#define LINE_OUT_POS_04 GPIO_OUT_APORT00_PIN05
//右转
//右转
...
...
YueJin_test_bench/source/Appliciation/Task.c
View file @
be88bac5
...
@@ -68,7 +68,6 @@ void Sys_Run_Mode_5ms_Tasks_Group(void)
...
@@ -68,7 +68,6 @@ void Sys_Run_Mode_5ms_Tasks_Group(void)
/*==============================================================================
/*==============================================================================
10ms����ִ������ ��0��
10ms����ִ������ ��0��
------------------------------------------------------------------------------*/
------------------------------------------------------------------------------*/
uint32_t
fakedelay
=
0
;
uint32_t
send0x714time
=
0
;
uint32_t
send0x714time
=
0
;
extern
uint8_t
HWtestresult
;
extern
uint8_t
HWtestresult
;
extern
uint8_t
PNtestresult
;
extern
uint8_t
PNtestresult
;
...
@@ -113,20 +112,11 @@ void Sys_Run_Mode_10ms_Tasks_Group(void)
...
@@ -113,20 +112,11 @@ void Sys_Run_Mode_10ms_Tasks_Group(void)
}
}
if
(
fuelreset1
==
1
||
fuelreset2
==
1
||
fuelreset3
==
1
||
fuelreset4
==
1
)
if
(
fuelreset1
==
1
||
fuelreset2
==
1
||
fuelreset3
==
1
||
fuelreset4
==
1
)
{
{
resetpowerfuel
();
}
}
BusOff_Service
(
);
BusOff_Service
(
);
Key_Service
(
);
Key_Service
(
);
resetchangeUDSfuc
();
if
(
fakedelay
<
100
)
{
fakedelay
++
;
}
else
{
change_UDS_DID
();
}
if
(
MENU_CHECK_STEP
==
0
)
if
(
MENU_CHECK_STEP
==
0
)
{
{
...
@@ -177,7 +167,7 @@ void Sys_Run_Mode_10ms_Tasks_Group(void)
...
@@ -177,7 +167,7 @@ void Sys_Run_Mode_10ms_Tasks_Group(void)
void
Sys_Run_Mode_20ms_Tasks_Group0
(
void
)
void
Sys_Run_Mode_20ms_Tasks_Group0
(
void
)
{
{
//Total_Check( );
//Total_Check( );
CAN_Service
();
}
}
/*==============================================================================
/*==============================================================================
...
...
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