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
2ee99087
Commit
2ee99087
authored
3 years ago
by
hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更换CAN驱动文件,增加工厂模式部分菜单项,修改了ODOBUG
parent
c4d9c18b
Changes
15
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
2426 additions
and
2208 deletions
+2426
-2208
Driver.gpj
ghs/group/Driver.gpj
+1
-0
Services_Mileage.h
source/Application/APP/Data_Mileage/Services_Mileage.h
+13
-13
Services_ODO_user.c
source/Application/APP/Data_ODO/Services_ODO_user.c
+2
-2
Telltales_user.c
source/Application/APP/Telltales/Telltales_user.c
+1
-1
Popups.c
source/Application/Alarm/Popups.c
+13
-13
Menu.h
source/Application/Graphic/Menu/Menu.h
+76
-54
Menu_user.c
source/Application/Graphic/Menu/Menu_user.c
+75
-56
CAN_clock.c
source/Driver/CAN/CAN_clock.c
+465
-465
RSCAN_Table.c
source/Driver/CAN/RSCAN_Table.c
+170
-0
RSCAN_Table.h
source/Driver/CAN/RSCAN_Table.h
+14
-0
Rscan.c
source/Driver/CAN/Rscan.c
+1152
-1173
Rscan.h
source/Driver/CAN/Rscan.h
+348
-336
Emulated_EEPROM.c
source/Driver/Memory/Emulated_EEPROM.c
+11
-11
Emulated_EEPROM_Access.c
source/Driver/Memory/Emulated_EEPROM_Access.c
+84
-83
tasks.c
source/System/tasks.c
+1
-1
No files found.
ghs/group/Driver.gpj
View file @
2ee99087
...
...
@@ -5,6 +5,7 @@
.\Analog_Signals\Analog_Circuits.c
.\Analog_Signals\Analog_Signals.c
.\CAN\RSCAN.c
.\CAN\RSCAN_Table.h
.\Clock\Clock.c
.\Clock\RTC.c
.\Common\debugger.c
...
...
This diff is collapsed.
Click to expand it.
source/Application/APP/Data_Mileage/Services_Mileage.h
View file @
2ee99087
...
...
@@ -7,19 +7,19 @@ Platform_16Bit
*/
#ifdef Platform_16Bit
#define Millib_uint8_t unsigned char
#define Millib_uint16_t unsigned int
#define Millib_uint32_t unsigned long
#define Millib_uint8_t unsigned char
#define Millib_uint16_t unsigned int
#define Millib_uint32_t unsigned long
#else
#define Millib_uint8_t unsigned char
#define Millib_uint16_t unsigned short
#define Millib_uint32_t unsigned int
#define Millib_uint64_t unsigned long long
#define Millib_uint8_t unsigned char
#define Millib_uint16_t unsigned short
#define Millib_uint32_t unsigned int
#define Millib_uint64_t unsigned long long
#endif
#ifndef Millib_NULL
#define Millib_NULL (void *)0u
#define Millib_NULL (void *)0u
#endif
/* NULL */
typedef
enum
...
...
@@ -54,25 +54,25 @@ typedef struct
Millib_uint16_t
(
*
Get_Act_V_Speed
)(
void
);
Millib_uint16_t
(
*
Get_TireSize
)(
void
);
EEPromWrite
EEPromWrite_Cbk
;
}
Mileage_Func_t
;
}
Mileage_Func_t
;
typedef
struct
{
Millib_uint32_t
Mileage
;
}
Mileage_Init_t
;
}
Mileage_Init_t
;
typedef
struct
{
Millib_uint32_t
Stamp
;
Millib_uint32_t
Offset
;
}
ODO_Init_t
;
}
ODO_Init_t
;
typedef
struct
{
Millib_uint32_t
Stamp
;
Millib_uint32_t
MaxValue
;
Millib_uint8_t
IsRestart
;
}
Trip_Init_t
;
}
Trip_Init_t
;
#define Data_MEM_Block_Mileage ((Millib_uint8_t)12u)
#define Data_MEM_Block_ODO ((Millib_uint8_t)12u)
...
...
@@ -85,7 +85,7 @@ void Data_Mileage_KL30_Init(Millib_uint8_t *pMemSpace, Mileage_Init_t *pInitData
void
Data_Mileage_Wakeup_Init
(
Millib_uint8_t
*
pMemSpace
,
Mileage_Func_t
*
pFunc
);
void
Data_Mileage_ISR
(
void
);
Millib_uint32_t
Data_Mileage_Read
(
void
);
Millib_uint8_t
Data_Mileage_Write
(
Millib_uint32_t
NewMileage
);
Millib_uint8_t
Data_Mileage_Write
(
Millib_uint32_t
NewMileage
);
/*在初始化之后用 0.1KM*/
void
Data_Mileage_Clear
(
void
);
void
Data_Mileage_Write_EEPROM
(
void
);
...
...
This diff is collapsed.
Click to expand it.
source/Application/APP/Data_ODO/Services_ODO_user.c
View file @
2ee99087
...
...
@@ -29,7 +29,7 @@ static void Data_User_EEPROM_Write(Data_EEPROM_Enum_t BlockID, uint32_t u32Data[
******************************************************************************/
void
Data_User_Mileage_KL30Init
(
void
)
{
uint32_t
TempBuf
[
7
]
=
{
0
};
uint32_t
TempBuf
[
EM_TRIP_MAX
+
3
]
=
{
0
};
Mileage_Init_t
MileInit
=
{
0
};
Mileage_Func_t
Func
=
{
0
};
ODO_Init_t
ODOInit
=
{
0
};
...
...
@@ -50,7 +50,7 @@ void Data_User_Mileage_KL30Init(void)
ODOInit
.
Offset
=
TempBuf
[
2
];
Data_ODO_KL30_Init
(
DataODOBuf
,
&
ODOInit
,
Func
.
EEPromWrite_Cbk
);
Data_User_EEPROM_Read
(
EEPROM_BLOCK_TRIP_STAMP
,
TempBuf
+
3
,
9
);
Data_User_EEPROM_Read
(
EEPROM_BLOCK_TRIP_STAMP
,
TempBuf
+
3
,
EM_TRIP_MAX
);
TripInit
[
EM_TRIP_A
].
Stamp
=
TempBuf
[
3
];
TripInit
[
EM_TRIP_A
].
MaxValue
=
9999999u
;
...
...
This diff is collapsed.
Click to expand it.
source/Application/APP/Telltales/Telltales_user.c
View file @
2ee99087
...
...
@@ -218,7 +218,7 @@ void Test_LED_AllLight(void)
/*---------------------------------------------------------------------------*/
#define XXXX 0u
#define LED_BRIGHTNESS 0x
ff
#define LED_BRIGHTNESS 0x
3Fu
/******************************************************************************
T1 INTER DIFF LOCK
...
...
This diff is collapsed.
Click to expand it.
source/Application/Alarm/Popups.c
View file @
2ee99087
...
...
@@ -1153,7 +1153,7 @@ void Popup_Alone_Sound_Server(void)
{
if
(
u8IG_st
==
COMMON_POWER_ON
)
{
#if 0
/*00 忘拔钥匙*/
Sound_Delete(SND_Key_Notremoved);
...
...
@@ -1422,19 +1422,19 @@ void Popup_Alone_Sound_Server(void)
{
Sound_Delete(SND_Fuel_Saving);
}
#endif
/*音源测试程序*/
// if(Sound_test&
0x001) Sound_Request (SND_Key_Notremoved, 1); else Sound_Delete(SND_Key_Notremoved );
// if(Sound_test&
0x002) Sound_Request (SND_Braking, 1); else Sound_Delete(SND_Braking );
// if(Sound_test&
0x004) Sound_Request (SND_Air_Brake, 1); else Sound_Delete(SND_Air_Brake );
// if(Sound_test&
0x008) Sound_Request (SND_BRAKE_LOCK, 1); else Sound_Delete(SND_BRAKE_LOCK );
// if(Sound_test&
0x010) Sound_Request (SND_Parking_Brake, 1); else Sound_Delete(SND_Parking_Brake );
// if(Sound_test&
0x020) Sound_Request (SND_Car_Dump_SPEED, 1); else Sound_Delete(SND_Car_Dump_SPEED );
// if(Sound_test&
0x040) Sound_Request (SND_Temp_High, 1); else Sound_Delete(SND_Temp_High );
// if(Sound_test&
0x080) Sound_Request (SND_Coolant_Low, 1); else Sound_Delete(SND_Coolant_Low );
// if(Sound_test&
0x100) Sound_Request (SND_Oil_pressure_Low, 1); else Sound_Delete(SND_Oil_pressure_Low );
// if(Sound_test&
0x200) Sound_Request (SND_ACC_AIR, 1); else Sound_Delete(SND_ACC_AIR );
// if(Sound_test&
0x400) Sound_Request (SND_BackUP_SPEED, 1); else Sound_Delete(SND_BackUP_SPEED );
if
(
Sound_test
&
0x001
)
Sound_Request
(
SND_Key_Notremoved
,
1
);
else
Sound_Delete
(
SND_Key_Notremoved
);
if
(
Sound_test
&
0x002
)
Sound_Request
(
SND_Braking
,
1
);
else
Sound_Delete
(
SND_Braking
);
if
(
Sound_test
&
0x004
)
Sound_Request
(
SND_Air_Brake
,
1
);
else
Sound_Delete
(
SND_Air_Brake
);
if
(
Sound_test
&
0x008
)
Sound_Request
(
SND_BRAKE_LOCK
,
1
);
else
Sound_Delete
(
SND_BRAKE_LOCK
);
if
(
Sound_test
&
0x010
)
Sound_Request
(
SND_Parking_Brake
,
1
);
else
Sound_Delete
(
SND_Parking_Brake
);
if
(
Sound_test
&
0x020
)
Sound_Request
(
SND_Car_Dump_SPEED
,
1
);
else
Sound_Delete
(
SND_Car_Dump_SPEED
);
if
(
Sound_test
&
0x040
)
Sound_Request
(
SND_Temp_High
,
1
);
else
Sound_Delete
(
SND_Temp_High
);
if
(
Sound_test
&
0x080
)
Sound_Request
(
SND_Coolant_Low
,
1
);
else
Sound_Delete
(
SND_Coolant_Low
);
if
(
Sound_test
&
0x100
)
Sound_Request
(
SND_Oil_pressure_Low
,
1
);
else
Sound_Delete
(
SND_Oil_pressure_Low
);
if
(
Sound_test
&
0x200
)
Sound_Request
(
SND_ACC_AIR
,
1
);
else
Sound_Delete
(
SND_ACC_AIR
);
if
(
Sound_test
&
0x400
)
Sound_Request
(
SND_BackUP_SPEED
,
1
);
else
Sound_Delete
(
SND_BackUP_SPEED
);
}
else
/*IG-OFF*/
{
...
...
This diff is collapsed.
Click to expand it.
source/Application/Graphic/Menu/Menu.h
View file @
2ee99087
...
...
@@ -54,68 +54,90 @@ typedef enum
_MN_DSP_LEVEL2_4_MENU_1
,
/* 26 设定日期*/
_MN_DSP_LEVEL2_4_MENU_2
,
/* 27 设定时间*/
_MN_DSP_LEVEL2_4_MENU_7
,
/*
亮度调节*/
_MN_DSP_LEVEL2_4_MENU_3
,
/* 2
8
语言设定*/
_MN_DSP_LEVEL2_4_MENU_4
,
/*
29
设定节油驾驶建议*/
_MN_DSP_LEVEL2_4_MENU_5
,
/* 3
0
TPMS轮胎设定*/
_MN_DSP_LEVEL2_4_MENU_6
,
/* 3
1
显示设定*/
_MN_DSP_LEVEL2_4_MENU_7
,
/*
28
亮度调节*/
_MN_DSP_LEVEL2_4_MENU_3
,
/* 2
9
语言设定*/
_MN_DSP_LEVEL2_4_MENU_4
,
/*
30
设定节油驾驶建议*/
_MN_DSP_LEVEL2_4_MENU_5
,
/* 3
1
TPMS轮胎设定*/
_MN_DSP_LEVEL2_4_MENU_6
,
/* 3
2
显示设定*/
_MN_DSP_LEVEL2_5_MENU_1
,
/* 3
2
LDWS 警报演示*/
_MN_DSP_LEVEL2_5_MENU_2
,
/* 3
3
AEBS第1警报演示*/
_MN_DSP_LEVEL2_5_MENU_3
,
/* 3
4
AEBS第2警报演示*/
_MN_DSP_LEVEL2_5_MENU_4
,
/* 3
5
AEBS全力制动警报演示*/
_MN_DSP_LEVEL2_5_MENU_1
,
/* 3
3
LDWS 警报演示*/
_MN_DSP_LEVEL2_5_MENU_2
,
/* 3
4
AEBS第1警报演示*/
_MN_DSP_LEVEL2_5_MENU_3
,
/* 3
5
AEBS第2警报演示*/
_MN_DSP_LEVEL2_5_MENU_4
,
/* 3
6
AEBS全力制动警报演示*/
_MN_DSP_LEVEL2_6_MENU_1
,
/* 3
6
轮胎气压*/
_MN_DSP_LEVEL2_6_MENU_2
,
/* 3
7
轮胎温度*/
_MN_DSP_LEVEL2_6_MENU_1
,
/* 3
7
轮胎气压*/
_MN_DSP_LEVEL2_6_MENU_2
,
/* 3
8
轮胎温度*/
/*三级菜单*/
_MN_DSP_LEVEL3_2_MENU_1
,
/* 3
8
发动机机油&滤清器*/
_MN_DSP_LEVEL3_2_MENU_2
,
/*
39
燃油滤清器*/
_MN_DSP_LEVEL3_2_MENU_3
,
/* 4
0
变速箱油*/
_MN_DSP_LEVEL3_2_MENU_4
,
/* 4
1
差速器油*/
_MN_DSP_LEVEL3_2_MENU_7
,
/* 4
2
动力转向液*/
_MN_DSP_LEVEL3_2_MENU_8
,
/* 4
3
轮胎*/
_MN_DSP_LEVEL3_3_MENU_1
,
/* 4
4
更换机油&机油滤清器*/
_MN_DSP_LEVEL3_3_MENU_2
,
/* 4
5
更换燃油滤清器*/
_MN_DSP_LEVEL3_3_MENU_3
,
/* 4
6
更换变速箱油*/
_MN_DSP_LEVEL3_3_MENU_4
,
/* 4
7
更换差速器油*/
_MN_DSP_LEVEL3_3_MENU_6
,
/* 4
8
更换动力转向液*/
_MN_DSP_LEVEL3_3_MENU_7
,
/*
49
轮胎换位・更换*/
_MN_DSP_LEVEL3_4_MENU_11
,
/* 5
0
设定日期-年*/
_MN_DSP_LEVEL3_4_MENU_12
,
/* 5
1
设定日期-月*/
_MN_DSP_LEVEL3_4_MENU_13
,
/* 5
2
设定日期-日*/
_MN_DSP_LEVEL3_4_MENU_21
,
/* 5
3
设定时间-时*/
_MN_DSP_LEVEL3_4_MENU_22
,
/* 5
4
设定时间-分*/
_MN_DSP_LEVEL3_4_MENU_3
,
/* 5
5
设定语言*/
_MN_DSP_LEVEL3_4_MENU_41
,
/* 5
6
速度设定-高速路*/
_MN_DSP_LEVEL3_4_MENU_42
,
/* 5
7
速度设定-一般路*/
_MN_DSP_LEVEL3_4_MENU_43
,
/* 5
8
发动机转速设定*/
_MN_DSP_LEVEL3_4_MENU_44
,
/*
59
急加速设定*/
_MN_DSP_LEVEL3_4_MENU_45
,
/* 6
0
急减速设定*/
_MN_DSP_LEVEL3_4_MENU_46
,
/* 6
1
长时间怠速设定*/
_MN_DSP_LEVEL3_4_MENU_47
,
/* 6
2
辅助驻车解除设定*/
_MN_DSP_LEVEL3_4_MENU_5
,
/* 6
3
轮胎匹配画面*/
_MN_DSP_LEVEL3_7_MENU_1
,
/*
亮度调节*/
_MN_DSP_LEVEL3_2_MENU_1
,
/* 3
9
发动机机油&滤清器*/
_MN_DSP_LEVEL3_2_MENU_2
,
/*
40
燃油滤清器*/
_MN_DSP_LEVEL3_2_MENU_3
,
/* 4
1
变速箱油*/
_MN_DSP_LEVEL3_2_MENU_4
,
/* 4
2
差速器油*/
_MN_DSP_LEVEL3_2_MENU_7
,
/* 4
3
动力转向液*/
_MN_DSP_LEVEL3_2_MENU_8
,
/* 4
4
轮胎*/
_MN_DSP_LEVEL3_3_MENU_1
,
/* 4
5
更换机油&机油滤清器*/
_MN_DSP_LEVEL3_3_MENU_2
,
/* 4
6
更换燃油滤清器*/
_MN_DSP_LEVEL3_3_MENU_3
,
/* 4
7
更换变速箱油*/
_MN_DSP_LEVEL3_3_MENU_4
,
/* 4
8
更换差速器油*/
_MN_DSP_LEVEL3_3_MENU_6
,
/* 4
9
更换动力转向液*/
_MN_DSP_LEVEL3_3_MENU_7
,
/*
50
轮胎换位・更换*/
_MN_DSP_LEVEL3_4_MENU_11
,
/* 5
1
设定日期-年*/
_MN_DSP_LEVEL3_4_MENU_12
,
/* 5
2
设定日期-月*/
_MN_DSP_LEVEL3_4_MENU_13
,
/* 5
3
设定日期-日*/
_MN_DSP_LEVEL3_4_MENU_21
,
/* 5
4
设定时间-时*/
_MN_DSP_LEVEL3_4_MENU_22
,
/* 5
5
设定时间-分*/
_MN_DSP_LEVEL3_4_MENU_3
,
/* 5
6
设定语言*/
_MN_DSP_LEVEL3_4_MENU_41
,
/* 5
7
速度设定-高速路*/
_MN_DSP_LEVEL3_4_MENU_42
,
/* 5
8
速度设定-一般路*/
_MN_DSP_LEVEL3_4_MENU_43
,
/* 5
9
发动机转速设定*/
_MN_DSP_LEVEL3_4_MENU_44
,
/*
60
急加速设定*/
_MN_DSP_LEVEL3_4_MENU_45
,
/* 6
1
急减速设定*/
_MN_DSP_LEVEL3_4_MENU_46
,
/* 6
2
长时间怠速设定*/
_MN_DSP_LEVEL3_4_MENU_47
,
/* 6
3
辅助驻车解除设定*/
_MN_DSP_LEVEL3_4_MENU_5
,
/* 6
4
轮胎匹配画面*/
_MN_DSP_LEVEL3_7_MENU_1
,
/*
65
亮度调节*/
/*四级菜单*/
_MN_DSP_LEVEL4_4_MENU_1
,
/* 6
4
速度设定-高速路*/
_MN_DSP_LEVEL4_4_MENU_2
,
/* 6
5
速度设定-一般路*/
_MN_DSP_LEVEL4_4_MENU_3
,
/* 6
6
发动机转速设定*/
_MN_DSP_LEVEL4_4_MENU_4
,
/* 6
7
急加速设定*/
_MN_DSP_LEVEL4_4_MENU_5
,
/*
68
急减速设定*/
_MN_DSP_LEVEL4_4_MENU_6
,
/*
69
长时间怠速设定*/
_MN_DSP_LEVEL4_4_MENU_7
,
/* 7
0
辅助驻车解除设定*/
_MN_DSP_LEVEL4_4_MENU_1
,
/* 6
6
速度设定-高速路*/
_MN_DSP_LEVEL4_4_MENU_2
,
/* 6
7
速度设定-一般路*/
_MN_DSP_LEVEL4_4_MENU_3
,
/* 6
8
发动机转速设定*/
_MN_DSP_LEVEL4_4_MENU_4
,
/* 6
9
急加速设定*/
_MN_DSP_LEVEL4_4_MENU_5
,
/*
70
急减速设定*/
_MN_DSP_LEVEL4_4_MENU_6
,
/*
71
长时间怠速设定*/
_MN_DSP_LEVEL4_4_MENU_7
,
/* 7
2
辅助驻车解除设定*/
/*特殊界面*/
_MN_DSP_ENTER_MENU
,
/* 71 确认*/
_MN_DSP_RETURN_MENU
,
/* 72 返回*/
_MN_DSP_LEVEL3_5_MENU_1
,
/* 73 LDWS 警报演示*/
_MN_DSP_LEVEL3_5_MENU_2
,
/* 74 AEBS第1警报演示*/
_MN_DSP_LEVEL3_5_MENU_3
,
/* 75 AEBS第2警报演示*/
_MN_DSP_LEVEL3_5_MENU_4
,
/* 76 AEBS全力制动警报演示*/
_MN_DSP_ENTER_MENU
,
/* 73 确认*/
_MN_DSP_RETURN_MENU
,
/* 74 返回*/
_MN_DSP_LEVEL3_5_MENU_1
,
/* 75 LDWS 警报演示*/
_MN_DSP_LEVEL3_5_MENU_2
,
/* 76 AEBS第1警报演示*/
_MN_DSP_LEVEL3_5_MENU_3
,
/* 77 AEBS第2警报演示*/
_MN_DSP_LEVEL3_5_MENU_4
,
/* 78 AEBS全力制动警报演示*/
/*工厂模式*/
_FAC_DSP_LEVEL1MENU_1
,
/* 79 DTC显示*/
_FAC_DSP_LEVEL1MENU_2
,
/* 80 DTC清除*/
_FAC_DSP_LEVEL1MENU_3
,
/* 81 仪表设定显示*/
_FAC_DSP_LEVEL1MENU_4
,
/* 82 暂时通常模式*/
_FAC_DSP_LEVEL1MENU_5
,
/* 83 结束工厂模式*/
_FAC_DSP_LEVEL1MENU_6
,
/* 84 HID自动水平初始化*/
_FAC_DSP_LEVEL1_1MENU_1
,
/* 85 发动机故障*/
_FAC_DSP_LEVEL1_1MENU_2
,
/* 86 SCR系统故障*/
_FAC_DSP_LEVEL1_1MENU_3
,
/* 87 EBS/ABS故障*/
_FAC_DSP_LEVEL1_1MENU_4
,
/* 88 仪表故障*/
_FAC_DSP_LEVEL1_2MENU_1
,
/* 89 清除所有DTC*/
_FAC_DSP_LEVEL1_2MENU_2
,
/* 90 清除所有DTC*/
_FAC_DSP_LEVEL1_3MENU_1
,
/* 91 L0-7 H2-A*/
_FAC_DSP_LEVEL1_3MENU_2
,
/* 92 L8-F H2-A*/
/*经销商模式*/
//_DIS_
}
_MenuCode
;
...
...
This diff is collapsed.
Click to expand it.
source/Application/Graphic/Menu/Menu_user.c
View file @
2ee99087
This diff is collapsed.
Click to expand it.
source/Driver/CAN/CAN_clock.c
View file @
2ee99087
This diff is collapsed.
Click to expand it.
source/Driver/CAN/RSCAN_Table.c
0 → 100644
View file @
2ee99087
#include "RSCAN_Table.h"
#if 0
const canfd_filter_type RX_RULE_TABLE_LIST[33] = {
/* CAN 0 reception rules */
{0x000002E5ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
{0x0000064Aul, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
{0x0000028Aul, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
{0x00000313ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
{0x00000314ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
{0x00000315ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
{0x00000234ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
{0x0000045Aul, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
{0x00000245ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
{0x00000291ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
{0x00000323ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
{0x00000326ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
{0x00000455ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
{0x000003D2ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
{0x00000328ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
{0x00000329ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
{0x000003B8ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
{0x000003BBul, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
{0x000003ACul, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
{0x000003A6ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
{0x000004A8ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
{0x00000123ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
{0x00000238ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
{0x00000318ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
{0x00000145ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
{0x00000225ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
{0x00000231ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
{0x00000469ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
{0x0000046Bul, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
{0x00000680ul, 0xDFFFFF80UL, 0x00000000ul, 0x00000200ul},
{0x000007DFul, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
{0x0000046Ful, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
{0x00000743ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00000200ul},
};
#endif
const
canfd_filter_type
RX_RULE_TABLE_LIST
[
RX_RULE_SIZE
]
=
{
/* CAN 0 reception rules */
{
0x84FF021Aul
,
0xDFFFFFFFUL
,
0x00000000ul
,
0x00000200ul
},
{
0x8C010305ul
,
0xDFFFFFFFUL
,
0x00000000ul
,
0x00000200ul
},
{
0x8CF00203ul
,
0xDFFFFFFFUL
,
0x00000000ul
,
0x00000200ul
},
{
0x8CF00300ul
,
0xDFFFFFFFUL
,
0x00000000ul
,
0x00000200ul
},
{
0x8CF00400ul
,
0xDFFFFFFFUL
,
0x00000000ul
,
0x00000200ul
},
{
0x8CF02FA0ul
,
0xDFFFFFFFUL
,
0x00000000ul
,
0x00000200ul
},
{
0x8CFE5A2Ful
,
0xDFFFFFFFUL
,
0x00000000ul
,
0x00000200ul
},
{
0x8CFE6CEEul
,
0xDFFFFFFFUL
,
0x00000000ul
,
0x00000200ul
},
{
0x8CFF0F27ul
,
0xDFFFFFFFUL
,
0x00000000ul
,
0x00000200ul
},
{
0x8CFF50F3ul
,
0xDFFFFFFFUL
,
0x00000000ul
,
0x00000200ul
},
{
0x8CFF61F5ul
,
0xDFFFFFFFUL
,
0x00000000ul
,
0x00000200ul
},
{
0x8CFF7A02ul
,
0xDFFFFFFFUL
,
0x00000000ul
,
0x00000200ul
},
{
0x90FE6F2Aul
,
0xDFFFFFFFUL
,
0x00000000ul
,
0x00000200ul
},
{
0x90FF94DDul
,
0xDFFFFFFFUL
,
0x00000000ul
,
0x00000200ul
},
{
0x90FFDDF2ul
,
0xDFFFFFFFUL
,
0x00000000ul
,
0x00000200ul
},
{
0x90FFF4F2ul
,
0xDFFFFFFFUL
,
0x00000000ul
,
0x00000200ul
},
{
0x98CCAAEBul
,
0xDFFFFFFFUL
,
0x00000000ul
,
0x00000200ul
},
{
0x98F00000ul
,
0xDFF00000UL
,
0x00000000ul
,
0x00000200ul
},
{
0x9CFE8100ul
,
0xDFFFFFFFUL
,
0x00000000ul
,
0x00000200ul
},
{
0x9CFEAF00ul
,
0xDFFFFFFFUL
,
0x00000000ul
,
0x00000200ul
},
{
0x9CFFEAF2ul
,
0xDFFFFFFFUL
,
0x00000000ul
,
0x00000200ul
},
{
0x9CFFFEF2ul
,
0xDFFFFFFFUL
,
0x00000000ul
,
0x00000200ul
},
{
0x98DA17FAul
,
0xDFFFFFFFUL
,
0x00000000ul
,
0x00000200ul
},
{
0x98DBFFFAul
,
0xDFFFFFFFUL
,
0x00000000ul
,
0x00000200ul
},
#if 0
{0x98DA17FAul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98DBFFFAul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FFC825ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FFC325ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FF3625ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FF3325ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FF3525ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x9CFFEAF2ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x9CFFFEF2ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x90FFF4F2ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FFF6F2ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x90FFDDF2ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FF02E7ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FFDA21ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FFDC21ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FFDB21ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FF1C7Aul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FF14E8ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FF9B3Aul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FF9A19ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FD7E16ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FFF752ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x8CFE5A2Ful, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x8CF00300ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98F00010ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x8C010305ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FD9503ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x8CF00203ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98F00503ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x8CF00400ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FF0800ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98F0000Ful, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x9CFEAF00ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FFFF00ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x9CFE8100ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FD7C00ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98F0010Bul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FDC40Bul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x90FE6F2Aul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x8CF02FA0ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x8CFF0F27ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FF9727ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FD0700ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FFD09Eul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FF9625ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FF2227ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FF107Aul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FF1500ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FF2A27ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FF2B27ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FF2C27ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FF43F0ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x8CFF50F3ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FF51F3ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FF52F3ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x8CFF61F5ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FF62F5ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FF63F5ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x8CFF7A02ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FF9F02ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FF88DEul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FF75F7ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x90FF94DDul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FF9CE0ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FF8503ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FFB970ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FFB971ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FFD916ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FFD462ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FFDE16ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FF9627ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98F533A9ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x84FF021Aul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FF8238ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FFCEA4ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98CCAAEBul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x8CFE6CEEul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FEE6EEul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FEF3FDul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FEF433ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FEF533ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FE5B33ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FE4EECul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FEEA2Ful, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FEF100ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FE4F0Bul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FE4A03ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FEF803ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FEE400ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FEEE00ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FEE500ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FEE900ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FEF200ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FEF121ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FEBF0Bul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FEF500ul, 0xDFFFFFFFUL, 0x00000000ul, 0x00020000ul},
{0x98FECA00ul, 0xDFFFFF00UL, 0x00000000ul, 0x00020000ul},
{0x98FFE000ul, 0xDFFFF000UL, 0x00000000ul, 0x00020000ul},
#endif
};
\ No newline at end of file
This diff is collapsed.
Click to expand it.
source/Driver/CAN/RSCAN_Table.h
0 → 100644
View file @
2ee99087
#ifndef RSCAN_TABLE_H
#define RSCAN_TABLE_H
#include "r_typedefs.h"
/* structure */
typedef
struct
{
uint32_t
data
[
4
];
}
canfd_filter_type
;
#define RX_RULE_SIZE 24U
extern
const
canfd_filter_type
RX_RULE_TABLE_LIST
[
RX_RULE_SIZE
]
;
#endif
This diff is collapsed.
Click to expand it.
source/Driver/CAN/Rscan.c
View file @
2ee99087
This diff is collapsed.
Click to expand it.
source/Driver/CAN/Rscan.h
View file @
2ee99087
This diff is collapsed.
Click to expand it.
source/Driver/Memory/Emulated_EEPROM.c
View file @
2ee99087
...
...
@@ -43,17 +43,17 @@ uint32_t g_u32EEPROMBlock10Buffer[EEPROM_BLOCK10_BUFFER_SIZE / 4U];
static
const
EEPROM_Block_st_t
g_stEEPROMBlockTable
[]
=
{
/* u32StartAddr u32EndAddr u32DataSize pu32DataBuffer */
{
0xFF200000UL
,
0xFF20007FUL
,
EEPROM_BLOCK0_BUFFER_SIZE
,
g_u32EEPROMBlock0Buffer
,},
{
0xFF200080UL
,
0xFF2000FFUL
,
EEPROM_BLOCK1_BUFFER_SIZE
,
g_u32EEPROMBlock1Buffer
,},
{
0xFF200100UL
,
0xFF2002FFUL
,
EEPROM_BLOCK2_BUFFER_SIZE
,
g_u32EEPROMBlock2Buffer
,},
{
0xFF200300UL
,
0xFF2004FFUL
,
EEPROM_BLOCK3_BUFFER_SIZE
,
g_u32EEPROMBlock3Buffer
,},
{
0xFF200500UL
,
0xFF20057FUL
,
EEPROM_BLOCK4_BUFFER_SIZE
,
g_u32EEPROMBlock4Buffer
,},
{
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
,
0xFF20377FUL
,
EEPROM_BLOCK8_BUFFER_SIZE
,
g_u32EEPROMBlock8Buffer
,},
{
0xFF203780UL
,
0xFF2037FFUL
,
EEPROM_BLOCK9_BUFFER_SIZE
,
g_u32EEPROMBlock9Buffer
,},
{
0xFF203800UL
,
0xFF2038FFUL
,
EEPROM_BLOCK10_BUFFER_SIZE
,
g_u32EEPROMBlock10Buffer
,},
{
0xFF200000UL
,
0xFF20007FUL
,
EEPROM_BLOCK0_BUFFER_SIZE
,
g_u32EEPROMBlock0Buffer
,},
/*EEPROM_BLOCK_UDS_FLAG*/
{
0xFF200080UL
,
0xFF2000FFUL
,
EEPROM_BLOCK1_BUFFER_SIZE
,
g_u32EEPROMBlock1Buffer
,},
/*EEPROM_BLOCK_UDS_S27*/
{
0xFF200100UL
,
0xFF2002FFUL
,
EEPROM_BLOCK2_BUFFER_SIZE
,
g_u32EEPROMBlock2Buffer
,},
/*EEPROM_BLOCK_UDS_S2E0*/
{
0xFF200300UL
,
0xFF2004FFUL
,
EEPROM_BLOCK3_BUFFER_SIZE
,
g_u32EEPROMBlock3Buffer
,},
/*EEPROM_BLOCK_UDS_S2E*/
{
0xFF200500UL
,
0xFF20057FUL
,
EEPROM_BLOCK4_BUFFER_SIZE
,
g_u32EEPROMBlock4Buffer
,},
/*EEPROM_BLOCK_UDS_CONFIG*/
{
0xFF200580UL
,
0xFF20067FUL
,
EEPROM_BLOCK5_BUFFER_SIZE
,
g_u32EEPROMBlock5Buffer
,},
/*EEPROM_BLOCK_UDS_DTC*/
{
0xFF200680UL
,
0xFF200A7FUL
,
EEPROM_BLOCK6_BUFFER_SIZE
,
g_u32EEPROMBlock6Buffer
,},
/*EEPROM_BLOCK_ODO*/
{
0xFF200A80UL
,
0xFF200F7FUL
,
EEPROM_BLOCK7_BUFFER_SIZE
,
g_u32EEPROMBlock7Buffer
,},
/*EEPROM_BLOCK_ODO_STAMP*/
{
0xFF200F80UL
,
0xFF20377FUL
,
EEPROM_BLOCK8_BUFFER_SIZE
,
g_u32EEPROMBlock8Buffer
,},
/*EEPROM_BLOCK_TRIP_STAMP*/
{
0xFF203780UL
,
0xFF2037FFUL
,
EEPROM_BLOCK9_BUFFER_SIZE
,
g_u32EEPROMBlock9Buffer
,},
/*EEPROM_BLOCK_SERVICE_INFO*/
{
0xFF203800UL
,
0xFF2038FFUL
,
EEPROM_BLOCK10_BUFFER_SIZE
,
g_u32EEPROMBlock10Buffer
,},
/*EEPROM_BLOCK_EOL_K_LINE*/
};
/****************************************************************************
...
...
This diff is collapsed.
Click to expand it.
source/Driver/Memory/Emulated_EEPROM_Access.c
View file @
2ee99087
This diff is collapsed.
Click to expand it.
source/System/tasks.c
View file @
2ee99087
...
...
@@ -142,7 +142,7 @@ void Sys_Run_Mode_10ms_Tasks(void)
Popup_Alone_Sound_Server
();
Telltales_Left_Right_Management_Service
();
Telltales_Management
();
//
Test_LED_AllLight();
//Test_LED_AllLight();
Key_Service
();
CAN_BUSOFF_Recover
();
...
...
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