Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
VC66_7C
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
ISUZU
VC66_7C
Commits
8e698101
Commit
8e698101
authored
3 years ago
by
hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整气压server逻辑,调整大G最大值,增加小G个数-20个,调整EEP块分配
parent
352472da
Changes
16
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
22434 additions
and
22471 deletions
+22434
-22471
project
ghs/project
+0
-0
project.hex
ghs/project.hex
+22143
-22140
project.siz
ghs/project.siz
+2
-2
Data_AirPressure.c
source/Application/APP/Data_AirPressure/Data_AirPressure.c
+239
-272
Data_AirPressure.h
source/Application/APP/Data_AirPressure/Data_AirPressure.h
+11
-10
Services_ODO_user.c
source/Application/APP/Data_ODO/Services_ODO_user.c
+6
-6
libodo.a
source/Application/APP/Data_ODO/libodo.a
+0
-0
Data_Voltmeter.c
source/Application/APP/Data_Voltmeter/Data_Voltmeter.c
+3
-1
Gauges.c
source/Application/APP/GaugesMode/Gauges.c
+2
-9
GaugesInterface.c
source/Application/APP/GaugesMode/GaugesInterface.c
+3
-3
GaugesInterface.h
source/Application/APP/GaugesMode/GaugesInterface.h
+0
-5
PowerManagement_user.c
...ce/Application/APP/PowerManagement/PowerManagement_user.c
+5
-3
SEG_DISPLAY.c
source/Application/APP/SEG_LCD/SEG_DISPLAY.c
+14
-14
CAN_FUNC.c
source/Application/CAN_APP_NM/CAN_App/CAN_FUNC.c
+2
-2
Emulated_EEPROM.c
source/Driver/Memory/Emulated_EEPROM.c
+3
-3
Emulated_EEPROM.h
source/Driver/Memory/Emulated_EEPROM.h
+1
-1
No files found.
ghs/project
View file @
8e698101
No preview for this file type
This diff is collapsed.
Click to expand it.
ghs/project.hex
View file @
8e698101
This diff is collapsed.
Click to expand it.
ghs/project.siz
View file @
8e698101
project .intvect 1536
project .text 317
516
project .rodata 4110
87
project .text 317
660
project .rodata 4110
71
project .secinfo 120
project .syscall 6
project .romdata 9029
...
...
This diff is collapsed.
Click to expand it.
source/Application/APP/Data_AirPressure/Data_AirPressure.c
View file @
8e698101
This diff is collapsed.
Click to expand it.
source/Application/APP/Data_AirPressure/Data_AirPressure.h
View file @
8e698101
#ifndef DATA_AIRPRESSURE_H
#define DATA_AIRPRESSURE_H
#include "GaugesInterface.h"
#include "TYW_stdint.h"
extern
DataStruct
DataStrGas1
;
extern
DataStruct
DataStrGas2
;
extern
DataStruct
DataStrWET
;
extern
void
AirPressure_KL30_Init
(
void
);
extern
void
AirPressure_KL15_ON_Init
(
void
);
...
...
@@ -13,12 +15,11 @@ extern void AirPressure_Wakeup_Init(void);
extern
void
AirPressure_Sleep_Init
(
void
);
extern
void
AirPressure_Processing_Service
(
void
);
void
Data_Gas1_Processing_Service
(
void
);
void
Data_Gas2_Processing_Service
(
void
);
void
Data_WET_Processing_Service
(
void
);
uint8_t
Common_Get_Air1_Valid
(
void
);
uint8_t
Common_Get_Air2_Valid
(
void
);
uint8_t
Common_Get_WET_Valid
(
void
);
extern
uint16_t
AirPressure_Get_kPa
(
uint8_t
ID
);
extern
uint8_t
AirPressure_Get_Valid
(
uint8_t
ID
);
extern
void
AirPressure_AdcData_Filter
(
void
)
;
extern
uint8_t
AirPressure_Get_CurSeg
(
uint8_t
ID
);
#endif
#endif
\ No newline at end of file
This diff is collapsed.
Click to expand it.
source/Application/APP/Data_ODO/Services_ODO_user.c
View file @
8e698101
...
...
@@ -41,7 +41,7 @@ void Data_User_Mileage_KL30Init(void)
Func
.
Get_Sys_IG_Sts
=
Common_Get_IG_Sts
;
Func
.
Get_Act_V_Speed_Valid
=
Common_Get_Act_V_Speed_Valid
;
Func
.
Get_Act_V_Speed
=
Common_Get_Act_V_Speed
;
Func
.
Get_TireSize
=
1
;
Func
.
Get_TireSize
=
(
void
*
)
0
;
Func
.
EEPromWrite_Cbk
=
Data_User_EEPROM_Write
;
//暂时未设置
Data_Mileage_KL30_Init
(
DataMilleageBuf
,
&
MileInit
,
&
Func
);
...
...
@@ -52,20 +52,20 @@ void Data_User_Mileage_KL30Init(void)
Data_User_EEPROM_Read
(
EEPROM_BLOCK_TRIP_STAMP
,
TempBuf
+
3
,
4
);
TripInit
[
EM_TRIP_A
].
Stamp
=
TempBuf
[
3
];
TripInit
[
EM_TRIP_A
].
MaxValue
=
99999
;
TripInit
[
EM_TRIP_A
].
MaxValue
=
99999
99u
;
TripInit
[
EM_TRIP_A
].
IsRestart
=
1u
;
TripInit
[
EM_TRIP_B
].
Stamp
=
TempBuf
[
4
];
TripInit
[
EM_TRIP_B
].
MaxValue
=
99999
;
TripInit
[
EM_TRIP_B
].
MaxValue
=
99999
99u
;
TripInit
[
EM_TRIP_B
].
IsRestart
=
1u
;
TripInit
[
EM_TRIP_C
].
Stamp
=
TempBuf
[
5
];
TripInit
[
EM_TRIP_C
].
MaxValue
=
99999
;
TripInit
[
EM_TRIP_C
].
IsRestart
=
0
u
;
TripInit
[
EM_TRIP_C
].
IsRestart
=
1
u
;
TripInit
[
EM_TRIP_D
].
Stamp
=
TempBuf
[
6
];
TripInit
[
EM_TRIP_D
].
MaxValue
=
99999
;
TripInit
[
EM_TRIP_D
].
IsRestart
=
0
u
;
TripInit
[
EM_TRIP_D
].
IsRestart
=
1
u
;
Data_Trip_KL30_Init
(
DataTripBuf
,
TripInit
,
EM_TRIP_MAX
,
Func
.
EEPromWrite_Cbk
);
}
...
...
@@ -77,7 +77,7 @@ void Data_User_Mileage_KL15Init(void)
Func
.
Get_Sys_IG_Sts
=
Common_Get_IG_Sts
;
Func
.
Get_Act_V_Speed_Valid
=
Common_Get_Act_V_Speed_Valid
;
Func
.
Get_Act_V_Speed
=
Common_Get_Act_V_Speed
;
Func
.
Get_TireSize
=
1
;
Func
.
Get_TireSize
=
(
void
*
)
0
;
Func
.
EEPromWrite_Cbk
=
Data_User_EEPROM_Write
;
//暂时未设置
Data_Mileage_Wakeup_Init
(
DataMilleageBuf
,
&
Func
);
...
...
This diff is collapsed.
Click to expand it.
source/Application/APP/Data_ODO/libodo.a
View file @
8e698101
No preview for this file type
This diff is collapsed.
Click to expand it.
source/Application/APP/Data_Voltmeter/Data_Voltmeter.c
View file @
8e698101
...
...
@@ -115,7 +115,8 @@ static void Data_Voltmeter_2_Gui(void)
VoltmeterVariable
.
AvrVoltage
=
Get_VoltFilter
();
VoltmeterVariable
.
AvrVoltage
+=
800u
;
/*增加二极管压降补偿*/
if
((
VoltmeterVariable
.
AvrVoltage
>=
17000
)
&&
(
VoltmeterVariable
.
AvrVoltage
<=
30500
))
if
((
VoltmeterVariable
.
AvrVoltage
>=
17000u
)
&&
(
VoltmeterVariable
.
AvrVoltage
<=
30500u
))
{
VoltmeterVariable
.
Valid
=
1
;
VoltmeterVariable
.
Timer
=
0
;
...
...
@@ -136,6 +137,7 @@ static void Data_Voltmeter_2_Gui(void)
if
(
VoltmeterVariable
.
Valid
)
{
VoltmeterVariable
.
AvrVoltage
/=
10u
;
SetGaugesPara
(
VoltGauges
,
VoltmeterVariable
.
AvrVoltage
);
u8GuiMode
=
GetGaugesCurrentPos
(
VoltGauges
);
}
...
...
This diff is collapsed.
Click to expand it.
source/Application/APP/GaugesMode/Gauges.c
View file @
8e698101
...
...
@@ -434,15 +434,8 @@ void GaugeMoveing(uint8_t GaugesNum)
}
}
}
/*电压放大倍数不同,单独处理*/
if
(
GaugesNum
==
VoltGauges
)
{
MoveTypePara
=
100u
;
}
else
{
MoveTypePara
=
10u
;
}
MoveTypePara
=
10u
;
}
else
{
...
...
This diff is collapsed.
Click to expand it.
source/Application/APP/GaugesMode/GaugesInterface.c
View file @
8e698101
...
...
@@ -41,9 +41,9 @@ static const uint16_t GaugesDataInInit[GaugesTotal][3][25] =
{
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
,
13
,
14
,
15
,
16
,
17
,
18
,
0
,
0
,
0
,
0
,
0
,
0
}
},
/*电池电压*/
{
{
0
,
1700
0
,
19000
,
20000
,
21000
,
22000
,
23000
,
24000
,
25000
,
26000
,
27000
,
28000
,
29000
,
30
000
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
},
{
0
,
1850
0
,
19500
,
20500
,
21500
,
22500
,
23500
,
24500
,
25500
,
26500
,
27500
,
28500
,
29500
,
3050
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
},
{
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
,
13
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
}
{
{
0
,
1700
,
1900
,
2000
,
2100
,
2200
,
2300
,
2400
,
2500
,
2600
,
2700
,
2800
,
2900
,
3
000
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
},
{
0
,
1850
,
1950
,
2050
,
2150
,
2250
,
2350
,
2450
,
2550
,
2650
,
2750
,
2850
,
2950
,
305
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
},
{
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
,
13
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
}
},
};
...
...
This diff is collapsed.
Click to expand it.
source/Application/APP/GaugesMode/GaugesInterface.h
View file @
8e698101
...
...
@@ -29,11 +29,6 @@ typedef struct
uint8_t
Status
;
}
DataStruct
;
extern
DataStruct
DataStrGas1
;
extern
DataStruct
DataStrGas2
;
extern
DataStruct
DataStrVoltage
;
extern
uint16_t
RealDataIn
[
GaugesTotal
];
extern
void
SetGaugesPara
(
uint8_t
GaugesID
,
uint16_t
GaugesVal
);
/* 传递表头参数 */
extern
void
UserGaugeSchedule
(
void
);
/*在主循环中调用*/
...
...
This diff is collapsed.
Click to expand it.
source/Application/APP/PowerManagement/PowerManagement_user.c
View file @
8e698101
...
...
@@ -104,7 +104,6 @@ Power_Status_t Power_KL30_Init ( void )
RTE_PWM_Init
();
/*按键部分 杨真东维护结束*/
AirPressure_KL30_Init
();
/*报警调度初始化*/
Popup_Scheduler_Init
();
/*报警调度初始化*/
...
...
@@ -171,7 +170,7 @@ Power_Status_t Power_Wakeup_Init ( void )
VCC12V0_OUT_EN
=
1U
;
/*12V 电源使能*/
VCC05V0_OUT_EN
=
1U
;
/*外设5V 电源使能*/
D1530_EN_MCU_OUT
=
1U
;
/*1530 使能*/
BL_ACC_EN
=
1U
;
/*8867 使能*/
BL_ACC_EN
=
1U
;
/*8867 使能*/
Fuel_VCC05V_OUT_EN
=
1U
;
/*燃油电源 使能*/
AIR_5V_OUT_EN
=
1u
;
/*气压 5V*/
ACC5V_LED_PWM_MCU
=
1u
;
...
...
@@ -222,13 +221,16 @@ void Power_IG_ON_Init(void)
UserGaugeK15Init
()
;
/*仪表IGON调用*/
/*end*/
/*5s不按按键计时清零*/
//LongTimeNoKey_Operation_TimeRest();
CD4051B_KL15Init
();
GUI_Display_KL15_ON_Init
();
/*气压1 气压2 WET气压数据初始化*/
AirPressure_KL15_ON_Init
();
}
Power_Status_t
Power_Stay_ON
(
void
)
{
Power_Status_t
u8PowerSts
;
...
...
This diff is collapsed.
Click to expand it.
source/Application/APP/SEG_LCD/SEG_DISPLAY.c
View file @
8e698101
...
...
@@ -1042,12 +1042,12 @@ void Seg_Display_Service(void)
if
(
Ign_Time
<
3100
)
{
SEG_PRI_Display
(
GetGaugesCurrentPos
(
PRIGasGauges
),
GUI_DISP_MODE_NORMAL
,
7u
);
// PRI气压格
SEG_SEC_Display
(
GetGaugesCurrentPos
(
SECGasGauges
),
GUI_DISP_MODE_NORMAL
,
7u
);
// SEC气压格
SEG_Coolant_Display
(
GetGaugesCurrentPos
(
TempGauges
),
GUI_DISP_MODE_NORMAL
,
7u
);
//
水温格
SEG_Fuel_Display
(
GetGaugesCurrentPos
(
TempGauges
),
GUI_DISP_MODE_NORMAL
,
7u
);
//
燃油格
SEG_Tacho_Display
(
GetGaugesCurrentPos
(
RevGauges
),
GUI_DISP_MODE_NORMAL
,
7u
);
//
转速格
SEG_VehicleSpeed_Display
(
GetGaugesCurrentPos
(
VehGauges
),
GUI_DISP_MODE_NORMAL
,
7u
);
//
车速格
SEG_PRI_Display
(
GetGaugesCurrentPos
(
PRIGasGauges
),
GUI_DISP_MODE_NORMAL
,
7u
);
// PRI气压格
SEG_SEC_Display
(
GetGaugesCurrentPos
(
SECGasGauges
),
GUI_DISP_MODE_NORMAL
,
7u
);
// SEC气压格
SEG_Coolant_Display
(
GetGaugesCurrentPos
(
TempGauges
),
GUI_DISP_MODE_NORMAL
,
7u
);
//
水温格
SEG_Fuel_Display
(
GetGaugesCurrentPos
(
TempGauges
),
GUI_DISP_MODE_NORMAL
,
7u
);
//
燃油格
SEG_Tacho_Display
(
GetGaugesCurrentPos
(
RevGauges
),
GUI_DISP_MODE_NORMAL
,
7u
);
//
转速格
SEG_VehicleSpeed_Display
(
GetGaugesCurrentPos
(
VehGauges
),
GUI_DISP_MODE_NORMAL
,
7u
);
//
车速格
/*车速数字 暂时没有变化,只是全部点亮*/
Seg_Digit_1_Disp
(
12
);
...
...
@@ -1060,21 +1060,21 @@ void Seg_Display_Service(void)
{
GaugesTimer
=
15u
;
if
(
AirPressure_Get_Valid
(
0
))
if
(
Common_Get_Air1_Valid
(
))
{
SEG_PRI_Display
(
AirPressure_Get_CurSeg
(
0
),
GUI_DISP_MODE_NORMAL
,
7u
);
// PRI气压格
SEG_PRI_Display
(
GetGaugesCurrentPos
(
PRIGasGauges
),
GUI_DISP_MODE_NORMAL
,
7u
);
// PRI气压格
}
else
{
SEG_PRI_Display
(
AirPressure_Get_CurSeg
(
0
),
GUI_DISP_MODE_INVALID
,
7u
);
// PRI气压格
SEG_PRI_Display
(
GetGaugesCurrentPos
(
PRIGasGauges
),
GUI_DISP_MODE_INVALID
,
7u
);
// PRI气压格
}
if
(
AirPressure_Get_Valid
(
1
))
if
(
Common_Get_Air2_Valid
(
))
{
SEG_SEC_Display
(
AirPressure_Get_CurSeg
(
1
),
GUI_DISP_MODE_NORMAL
,
7u
);
// SEC气压格
SEG_SEC_Display
(
GetGaugesCurrentPos
(
SECGasGauges
),
GUI_DISP_MODE_NORMAL
,
7u
);
// SEC气压格
}
else
{
SEG_SEC_Display
(
AirPressure_Get_CurSeg
(
1
),
GUI_DISP_MODE_INVALID
,
7u
);
// SEC气压格
SEG_SEC_Display
(
GetGaugesCurrentPos
(
SECGasGauges
),
GUI_DISP_MODE_INVALID
,
7u
);
// SEC气压格
}
if
(
Coolant_Get_Valid
())
...
...
@@ -1123,8 +1123,8 @@ void Seg_Display_Service(void)
{
SEG_A25_Disp
(
0u
);
//左侧弧线
SEG_C25_Disp
(
0u
);
//右侧弧线
SEG_PRI_Display
(
AirPressure_Get_CurSeg
(
0
),
GUI_DISP_MODE_BLANK
,
0u
);
// PRI气压格
SEG_SEC_Display
(
AirPressure_Get_CurSeg
(
1
),
GUI_DISP_MODE_BLANK
,
0u
);
// SEC气压格
SEG_PRI_Display
(
GetGaugesCurrentPos
(
PRIGasGauges
),
GUI_DISP_MODE_BLANK
,
0u
);
// PRI气压格
SEG_SEC_Display
(
GetGaugesCurrentPos
(
SECGasGauges
),
GUI_DISP_MODE_BLANK
,
0u
);
// SEC气压格
SEG_Coolant_Display
(
Coolant_Get_CurSeg
(),
GUI_DISP_MODE_BLANK
,
0u
);
//水温格
SEG_Fuel_Display
(
Fuel_Get_CurSeg
(),
GUI_DISP_MODE_BLANK
,
0u
);
//燃油格
SEG_Tacho_Display
(
Tacho_Get_CurSeg
(),
GUI_DISP_MODE_BLANK
,
0u
);
//转速格
...
...
This diff is collapsed.
Click to expand it.
source/Application/CAN_APP_NM/CAN_App/CAN_FUNC.c
View file @
8e698101
...
...
@@ -68,8 +68,8 @@ void Can_Set_Buff_18FEAE17(uint8_t CopyData [])
{
MsgMap
.
Data
[
i
]
=
0xff
;
}
MsgMap
.
bit
.
Service_Brake_Circuit1_AirPressure
=
(
uint8_t
)(
AirPressure_Get_kPa
(
0
)
>>
3
)
;
MsgMap
.
bit
.
Service_Brake_Circuit2_AirPressure
=
(
uint8_t
)(
AirPressure_Get_kPa
(
1
)
>>
3
)
;
//
MsgMap.bit.Service_Brake_Circuit1_AirPressure = (uint8_t)(AirPressure_Get_kPa(0) >> 3) ;
//
MsgMap.bit.Service_Brake_Circuit2_AirPressure = (uint8_t)(AirPressure_Get_kPa(1) >> 3) ;
if
(
RTE_Read_KL30_Valid
())
{
...
...
This diff is collapsed.
Click to expand it.
source/Driver/Memory/Emulated_EEPROM.c
View file @
8e698101
...
...
@@ -50,9 +50,9 @@ static const EEPROM_Block_st_t g_stEEPROMBlockTable[] =
{
0xFF200580UL
,
0xFF20067FUL
,
EEPROM_BLOCK5_BUFFER_SIZE
,
g_u32EEPROMBlock5Buffer
,},
{
0xFF200680UL
,
0xFF200A7FUL
,
EEPROM_BLOCK6_BUFFER_SIZE
,
g_u32EEPROMBlock6Buffer
,},
{
0xFF200A80UL
,
0xFF200F7FUL
,
EEPROM_BLOCK7_BUFFER_SIZE
,
g_u32EEPROMBlock7Buffer
,},
{
0xFF200F80UL
,
0xFF20
19
7FUL
,
EEPROM_BLOCK8_BUFFER_SIZE
,
g_u32EEPROMBlock8Buffer
,},
{
0xFF20
1980UL
,
0xFF2019
FFUL
,
EEPROM_BLOCK9_BUFFER_SIZE
,
g_u32EEPROMBlock9Buffer
,},
{
0xFF20
1A00UL
,
0xFF201A
FFUL
,
EEPROM_BLOCK10_BUFFER_SIZE
,
g_u32EEPROMBlock10Buffer
,},
{
0xFF200F80UL
,
0xFF20
37
7FUL
,
EEPROM_BLOCK8_BUFFER_SIZE
,
g_u32EEPROMBlock8Buffer
,},
{
0xFF20
3780UL
,
0xFF2037
FFUL
,
EEPROM_BLOCK9_BUFFER_SIZE
,
g_u32EEPROMBlock9Buffer
,},
{
0xFF20
3800UL
,
0xFF2038
FFUL
,
EEPROM_BLOCK10_BUFFER_SIZE
,
g_u32EEPROMBlock10Buffer
,},
};
/****************************************************************************
...
...
This diff is collapsed.
Click to expand it.
source/Driver/Memory/Emulated_EEPROM.h
View file @
8e698101
...
...
@@ -46,7 +46,7 @@ enum g_enEEPROMBlockName
#define EEPROM_BLOCK_UDS_DTC_SIZE (76U)
/*Life:20.0W*/
#define EEPROM_BLOCK_ODO_SIZE (4U)
/*Life:1000.0W*/
#define EEPROM_BLOCK_ODO_STAMP_SIZE (8U)
/*Life:1000.0W*/
#define EEPROM_BLOCK_TRIP_STAMP_SIZE (
16
U)
/*Life:1000.0W*/
#define EEPROM_BLOCK_TRIP_STAMP_SIZE (
80
U)
/*Life:1000.0W*/
#define EEPROM_BLOCK_SERVICE_INFO_SIZE (56U)
/*Life:20.0W*/
#define EEPROM_BLOCK_EOL_K_LINE_SIZE (64U)
/*Life:20.0W*/
...
...
This diff is collapsed.
Click to expand it.
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