Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
haoJin750TFT
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
时昊
haoJin750TFT
Commits
73b3ce4b
Commit
73b3ce4b
authored
Oct 28, 2024
by
张金硕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:修改机油压力硬线采集,对AD采集文件进行存档
parent
0d6fd094
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
21 additions
and
78 deletions
+21
-78
Analog_Signals.c
Firmware/Source/Component/Analog/Analog_Signals.c
+6
-7
Analog_Signals.h
Firmware/Source/Component/Analog/Analog_Signals.h
+2
-2
Line_In_user.c
Firmware/Source/Component/Line_In/Line_In_user.c
+1
-1
Sys_Task_List.c
Firmware/Source/System/Sys_Task_List.c
+1
-1
Analog_Signals_HaoJin750TFT.xlsm
...ware/utility/MCU_Cfg/cfg/Analog_Signals_HaoJin750TFT.xlsm
+0
-0
Analog_Signals.h
Firmware/utility/MCU_Cfg/inc/Analog_Signals.h
+5
-3
Analog_Signals.c
Firmware/utility/MCU_Cfg/src/Analog_Signals.c
+6
-2
Analog_Signals.h
Firmware/utility/MCU_Cfg/src/Analog_Signals.h
+0
-62
No files found.
Firmware/Source/Component/Analog/Analog_Signals.c
View file @
73b3ce4b
...
...
@@ -4,7 +4,7 @@
* \attention
*
* This file is automatically generated by analog signals configuration tool.
* Date : 2024/
6/18 22:46:57
* Date : 2024/
10/25 18:44:13
* Cfg Tool Ver : 1.1.0
* Engineer : ShiHao
* (c) Heilongjiang TYW electronics co., LTD
...
...
@@ -74,7 +74,7 @@ ADC_Data_st_t stADCData[ADC_SIGNAL_CH_NUMBER];
const
uint8_t
__attribute__
((
aligned
(
4
)))
u8ADCChList
[
ADC_CONV_CH_NUMBER
]
=
{
2U
,
3U
,
7U
,
5U
,
6U
,
4U
,
12U
,
2U
,
3U
,
7U
,
5U
,
6U
,
12U
,
4U
,
};
const
__attribute__
((
aligned
(
4
)))
ADC_Ch_Cfg_st_t
stADCChCfg
[
ADC_SIGNAL_CH_NUMBER
]
=
...
...
@@ -84,9 +84,8 @@ const __attribute__((aligned(4))) ADC_Ch_Cfg_st_t stADCChCfg[ADC_SIGNAL_CH_NUMBE
{
2U
,
0U
,
0U
,
0U
,
0U
,
1U
,
ADC_Voltage_Calc_Circuit101
,},
{
3U
,
2U
,
0U
,
2U
,
0U
,
1U
,
ADC_Res_Calc_Circuit101
,},
{
4U
,
2U
,
0U
,
2U
,
0U
,
1U
,
ADC_Res_Calc_Circuit101
,},
{
5U
,
3U
,
0U
,
5000U
,
0U
,
10U
,
ADC_Res_Calc_Circuit201
,},
{
6U
,
0U
,
0U
,
0U
,
0U
,
1U
,
ADC_Voltage_Calc_Circuit101
,},
{
5U
,
0U
,
0U
,
0U
,
0U
,
1U
,
ADC_Voltage_Calc_Circuit101
,},
{
6U
,
3U
,
0U
,
5000U
,
0U
,
10U
,
ADC_Res_Calc_Circuit201
,},
};
const
__attribute__
((
aligned
(
4
)))
ADC_Res_List_st_t
stADCResList
[
ADC_SIGNAL_CH_NUMBER
]
=
...
...
@@ -96,8 +95,8 @@ const __attribute__((aligned(4))) ADC_Res_List_st_t stADCResList[ADC_SIGNAL_CH_N
{
0U
,
0U
,
0U
,
0U
,},
{
0U
,
0U
,
500U
,
300U
,},
{
0U
,
0U
,
500U
,
0U
,},
{
47000U
,
0U
,
100000U
,
0U
,},
{
0U
,
100000U
,
0U
,
0U
,},
{
47000U
,
0U
,
100000U
,
0U
,},
};
/* Private function prototypes ----------------------------------------------*/
...
...
Firmware/Source/Component/Analog/Analog_Signals.h
View file @
73b3ce4b
...
...
@@ -4,7 +4,7 @@
* \attention
*
* This file is automatically generated by analog signals configuration tool.
* Date : 2024/
6/18 22:46:57
* Date : 2024/
10/25 18:44:13
* Cfg Tool Ver : 1.1.0
* Engineer : ShiHao
* (c) Heilongjiang TYW electronics co., LTD
...
...
@@ -33,8 +33,8 @@ enum ADCChName
ADC_CH_FUEL_VREF
,
ADC_CH_FUEL1
,
ADC_CH_COOLANT_TEMP1_R
,
ADC_CH_NTC_TEMP
,
ADC_CH_LIGHT_SENSITIVE
,
ADC_CH_NTC_TEMP
,
};
/* Exported macro ------------------------------------------------------------*/
...
...
Firmware/Source/Component/Line_In/Line_In_user.c
View file @
73b3ce4b
...
...
@@ -95,7 +95,7 @@ Linelib_uint8_t Get_LINE_IN_Auto_Start_Stop(void)
Linelib_uint8_t
Get_LINE_IN_Oil_Pressure_Alert
(
void
)
{
Linelib_uint8_t
ret
=
0U
;
if
(
RTE_GPIO_Get_Level
(
Gears_N_MCU
))
if
(
RTE_GPIO_Get_Level
(
MCU_SPI_MOSI
))
{
ret
=
1u
;
}
...
...
Firmware/Source/System/Sys_Task_List.c
View file @
73b3ce4b
...
...
@@ -20,7 +20,7 @@ void Sys_2ms_Tasks(void)
Sys_Status_Update_Service
();
Analog_Signal_Conv_Service
();
AMT630H_Main
();
Check_MCU_Info_in_630H
();
//
Check_MCU_Info_in_630H();
DoCAN_Timer_Update
(
2000u
);
//Can_Write_Fun(&CAN_CH0_CanMsgTxOp, 2000u);无外发
CanMSg_XMS_Analysis
(
&
CAN_CH0_CanMsgOp
,
2u
);
...
...
Firmware/utility/MCU_Cfg/cfg/Analog_Signals_HaoJin750TFT.xlsm
View file @
73b3ce4b
No preview for this file type
Firmware/utility/MCU_Cfg/inc/Analog_Signals.h
View file @
73b3ce4b
...
...
@@ -4,7 +4,7 @@
* \attention
*
* This file is automatically generated by analog signals configuration tool.
* Date : 2024/
6/18 22:46:57
* Date : 2024/
10/25 18:44:13
* Cfg Tool Ver : 1.1.0
* Engineer : ShiHao
* (c) Heilongjiang TYW electronics co., LTD
...
...
@@ -33,11 +33,13 @@ enum ADCChName
ADC_CH_FUEL_VREF
,
ADC_CH_FUEL1
,
ADC_CH_COOLANT_TEMP1_R
,
ADC_CH_LIGHT_SENSITIVE
,
ADC_CH_NTC_TEMP
,
};
/* Exported macro ------------------------------------------------------------*/
#define ADC_TOTAL_CH_NUMBER (
5
U)
#define ADC_SIGNAL_CH_NUMBER (
5
U)
#define ADC_TOTAL_CH_NUMBER (
7
U)
#define ADC_SIGNAL_CH_NUMBER (
7
U)
#define ADC_REF_VOLTAGE u16ADCRefVoltage
/* Exported variables --------------------------------------------------------*/
...
...
Firmware/utility/MCU_Cfg/src/Analog_Signals.c
View file @
73b3ce4b
...
...
@@ -4,7 +4,7 @@
* \attention
*
* This file is automatically generated by analog signals configuration tool.
* Date : 2024/
6/18 22:46:57
* Date : 2024/
10/25 18:44:13
* Cfg Tool Ver : 1.1.0
* Engineer : ShiHao
* (c) Heilongjiang TYW electronics co., LTD
...
...
@@ -74,7 +74,7 @@ ADC_Data_st_t stADCData[ADC_SIGNAL_CH_NUMBER];
const
uint8_t
__attribute__
((
aligned
(
4
)))
u8ADCChList
[
ADC_CONV_CH_NUMBER
]
=
{
2U
,
3U
,
7U
,
5U
,
6U
,
2U
,
3U
,
7U
,
5U
,
6U
,
12U
,
4U
,
};
const
__attribute__
((
aligned
(
4
)))
ADC_Ch_Cfg_st_t
stADCChCfg
[
ADC_SIGNAL_CH_NUMBER
]
=
...
...
@@ -84,6 +84,8 @@ const __attribute__((aligned(4))) ADC_Ch_Cfg_st_t stADCChCfg[ADC_SIGNAL_CH_NUMBE
{
2U
,
0U
,
0U
,
0U
,
0U
,
1U
,
ADC_Voltage_Calc_Circuit101
,},
{
3U
,
2U
,
0U
,
2U
,
0U
,
1U
,
ADC_Res_Calc_Circuit101
,},
{
4U
,
2U
,
0U
,
2U
,
0U
,
1U
,
ADC_Res_Calc_Circuit101
,},
{
5U
,
0U
,
0U
,
0U
,
0U
,
1U
,
ADC_Voltage_Calc_Circuit101
,},
{
6U
,
3U
,
0U
,
5000U
,
0U
,
10U
,
ADC_Res_Calc_Circuit201
,},
};
const
__attribute__
((
aligned
(
4
)))
ADC_Res_List_st_t
stADCResList
[
ADC_SIGNAL_CH_NUMBER
]
=
...
...
@@ -93,6 +95,8 @@ const __attribute__((aligned(4))) ADC_Res_List_st_t stADCResList[ADC_SIGNAL_CH_N
{
0U
,
0U
,
0U
,
0U
,},
{
0U
,
0U
,
500U
,
300U
,},
{
0U
,
0U
,
500U
,
0U
,},
{
0U
,
100000U
,
0U
,
0U
,},
{
47000U
,
0U
,
100000U
,
0U
,},
};
/* Private function prototypes ----------------------------------------------*/
...
...
Firmware/utility/MCU_Cfg/src/Analog_Signals.h
deleted
100644 → 0
View file @
0d6fd094
/**************************************************************************//**
* \file Analog_Signals.h
* \brief Analog signal processing
* \attention
*
* This file is automatically generated by analog signals configuration tool.
* Date : 2024/6/18 22:46:57
* Cfg Tool Ver : 1.1.0
* Engineer : ShiHao
* (c) Heilongjiang TYW electronics co., LTD
*
******************************************************************************/
#ifndef ANALOG_SIGNALS_H__
#define ANALOG_SIGNALS_H__
/* Includes -----------------------------------------------------------------*/
#include "ADC.h"
#include "Analog_Circuits.h"
#include "RTE.h"
/* C binding of definitions if building with C++ compiler */
#ifdef __cplusplus
extern
{
#endif
/*! @{ */
/* Exported types ------------------------------------------------------------*/
enum
ADCChName
{
ADC_CH_KL30_VOLTAGE
=
0
,
ADC_CH_KL15_VOLTAGE
,
ADC_CH_FUEL_VREF
,
ADC_CH_FUEL1
,
ADC_CH_COOLANT_TEMP1_R
,
};
/* Exported macro ------------------------------------------------------------*/
#define ADC_TOTAL_CH_NUMBER (5U)
#define ADC_SIGNAL_CH_NUMBER (5U)
#define ADC_REF_VOLTAGE u16ADCRefVoltage
/* Exported variables --------------------------------------------------------*/
extern
volatile
uint16_t
u16ADCRefVoltage
;
extern
const
uint8_t
u8ADCChList
[];
/* Exported functions --------------------------------------------------------*/
extern
void
Analog_Signal_Conv_Init
(
void
);
extern
void
Analog_Signal_Conv_Stop
(
void
);
extern
void
Analog_Signal_Conv_Service
(
void
);
extern
uint16_t
ADC_Read_Signal
(
uint8_t
u8ADCCh
);
extern
uint8_t
ADC_Read_Signal_Valid
(
uint8_t
u8ADCCh
);
extern
uint16_t
ADC_Conv_Single_Channel
(
uint8_t
u8ADCCh
);
/*! @} */
#ifdef __cplusplus
}
#endif
#endif
/* ANALOG_SIGNALS_H__ */
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