Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
TianYing_ty100
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
baizhengyuan
TianYing_ty100
Commits
2f6c8476
Commit
2f6c8476
authored
Aug 18, 2024
by
陈家乐
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://tyw-server.synology.me:12345/ty/tianying_ty100
into CHENJIALE
parents
8490aef1
bed48f07
Changes
8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
68 additions
and
21 deletions
+68
-21
BackLight.c
Firmware/Source/Application/BackLight/BackLight.c
+9
-2
Data_Coolant.c
Firmware/Source/Application/Data_Coolant/Data_Coolant.c
+49
-13
PowerManag_user.c
Firmware/Source/Component/PowerManagement/PowerManag_user.c
+5
-1
cgc.c
...ource/Device/Cmsemicon/BAT32A239/Library/Driver/src/cgc.c
+2
-2
UDS_ISO14229_Services.h
Firmware/Source/UDS/UDS_ISO14229_Services.h
+3
-3
TY_TY200.080000b_ty_BAT32G139GK64FB_BootApp_S1.15_240817.srec
...Y200.080000b_ty_BAT32G139GK64FB_BootApp_S1.15_240817.srec
+0
-0
TY_TY200.080000b_ty_BAT32G139GK64FB_UpdateApp_S1.15_240817.srec
...00.080000b_ty_BAT32G139GK64FB_UpdateApp_S1.15_240817.srec
+0
-0
TianYing.hex
Firmware/utility/程序释放/20240817-1/TianYing.hex
+0
-0
No files found.
Firmware/Source/Application/BackLight/BackLight.c
View file @
2f6c8476
...
...
@@ -48,6 +48,8 @@ void BackLight_Process(void)
// }
//}
//if ( LED_Turnon == 5 )
if
(
Common_GetIgnOnTime
()
>=
3000
)
{
if
(
Line_In_Get_Status
(
LINE_IN_Little_Lamp
))
{
TimerM_PWM_set_duty
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
BACK_LIGHT_NIGHT
);
...
...
@@ -56,6 +58,11 @@ void BackLight_Process(void)
{
TimerM_PWM_set_duty
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
BACK_LIGHT_DAY
);
}
}
else
{
TimerM_PWM_set_duty
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
BACK_LIGHT_DAY
);
}
}
else
...
...
Firmware/Source/Application/Data_Coolant/Data_Coolant.c
View file @
2f6c8476
...
...
@@ -50,28 +50,29 @@ typedef struct
}
HYS_Seg_Table_st_t
;
const
HYS_Seg_Table_st_t
stHYSSegTableTemp
[
7
]
=
{
{
0U
,
470U
},
// 0
{
500
U
,
59
0U
},
// 1
{
620
U
,
77
0U
},
// 2
{
800
U
,
95
0U
},
// 3
{
980
U
,
112
0U
},
// 4
{
1150
U
,
199
0U
},
// 5
{
1990
U
,
2
000U
},
// 6
{
0U
,
470
0
U
},
// 0
{
500
0U
,
590
0U
},
// 1
{
620
0U
,
770
0U
},
// 2
{
800
0U
,
950
0U
},
// 3
{
980
0U
,
1120
0U
},
// 4
{
1150
0U
,
1990
0U
},
// 5
{
1990
0U
,
20
000U
},
// 6
};
uint32_t
u32CoolantDataTimeCount
=
0UL
;
uint32_t
u32ColCurNum
=
0UL
;
/*阻尼数显*/
uint32_t
u32CoolantNum
=
0UL
;
/*当前实际数据,与显示数值不完全一致*/
/*
u32CoolantDir:0:下行,1:上行 2:无变化
*/
uint32_t
Data_Coolant_Cal_Num
(
uint32_t
u32CoolantCurSeg
,
uint32_t
u32CoolantDir
,
uint32_t
u32CoolantRemTime
,
uint32_t
u32CoolantCurNum
,
uint32_t
u32CoolantDesNum
)
{
uint32_t
u32CoolantNum
=
u32CoolantCurNum
;
uint32_t
u32CoolantNumMax
=
0UL
;
uint32_t
u32CoolantNumMin
=
0UL
;
uint32_t
u32CoolantSegDesNum
=
0UL
;
uint32_t
u32CoolantCalBuf
=
0UL
;
uint32_t
u32CoolantCalBuf1
=
0UL
;
uint32_t
u32CoolantCalResult
=
u32CoolantCurNum
;
/*计算当前格对应的目标数值*/
/*当前格数对应的数值范围,目标数值是否在这个范围内,如果在就直接用目标值。如果不在就根据上下行选择该范围内的极大和极小值。*/
...
...
@@ -138,17 +139,52 @@ uint32_t Data_Coolant_Cal_Num(uint32_t u32CoolantCurSeg, uint32_t u32CoolantDir,
u32CoolantNum
=
u32CoolantSegDesNum
;
}
}
u32CoolantCalResult
=
u32CoolantNum
;
if
(
u32CoolantDir
==
0
)
// down
{
// uint32_t u32CoolantCalBuf2 = 0UL;
// if (u32CoolantNum>u32CoolantCurNum)
// {
// u32CoolantCalBuf2 = u32CoolantNum-u32CoolantCurNum;
// }
// else
// {
// u32CoolantCalBuf2 = u32CoolantCurNum-u32CoolantNum;
// }
// if (u32CoolantCalBuf2>=100)
// {
// u32CoolantNum+=99UL;
// }
if
((
u32CoolantNum
+
99
)
>=
u32CoolantCurNum
)
{
u32CoolantCalResult
=
u32CoolantCurNum
;
}
else
{
u32CoolantCalResult
=
((
u32CoolantNum
+
99
)
/
100
*
100
);
}
}
}
else
// 0
{
u32CoolantNum
=
u32CoolantSegDesNum
;
u32CoolantCalResult
=
u32CoolantNum
;
}
}
/*根据目标数值计算每个变化周期内数值变化的大小,*/
/*根据目标数值以及剩余时间,修改当前显示值*/
return
u32CoolantNum
;
// return u32CoolantNum;
return
u32CoolantCalResult
;
}
void
Data_Coolant_Temp_Processing_Service
(
void
)
...
...
@@ -278,7 +314,7 @@ void Data_Coolant_Temp_Display ( void )
if
(
DataCoolantTemp_Dis
.
u8_CurSeg
>
DataCoolantTemp_Dis
.
u8_DestSeg
)
{
u32ColCurNum
=
Data_Coolant_Cal_Num
(
DataCoolantTemp_Dis
.
u8_CurSeg
,
0
,
(
DataCoolantTemp_Dis
.
u8_Downtimer
-
DataCoolantTemp_Dis
.
u8_DownFlashtimer
),
u32ColCurNum
,
DataCoolantTemp
.
Value
*
10
);
u32ColCurNum
=
Data_Coolant_Cal_Num
(
DataCoolantTemp_Dis
.
u8_CurSeg
,
0
,
(
DataCoolantTemp_Dis
.
u8_Downtimer
-
DataCoolantTemp_Dis
.
u8_DownFlashtimer
),
u32ColCurNum
,
DataCoolantTemp
.
Value
*
10
0
);
DataCoolantTemp_Dis
.
u8_UpFlashtimer
=
0
;
DataCoolantTemp_Dis
.
u8_Holdtimer
=
0
;
DataCoolantTemp_Dis
.
u8_DownFlashtimer
++
;
...
...
@@ -290,7 +326,7 @@ void Data_Coolant_Temp_Display ( void )
}
else
if
(
DataCoolantTemp_Dis
.
u8_CurSeg
<
DataCoolantTemp_Dis
.
u8_DestSeg
)
{
u32ColCurNum
=
Data_Coolant_Cal_Num
(
DataCoolantTemp_Dis
.
u8_CurSeg
,
1
,
(
DataCoolantTemp_Dis
.
u8_Uptimer
-
DataCoolantTemp_Dis
.
u8_UpFlashtimer
),
u32ColCurNum
,
DataCoolantTemp
.
Value
*
10
);
u32ColCurNum
=
Data_Coolant_Cal_Num
(
DataCoolantTemp_Dis
.
u8_CurSeg
,
1
,
(
DataCoolantTemp_Dis
.
u8_Uptimer
-
DataCoolantTemp_Dis
.
u8_UpFlashtimer
),
u32ColCurNum
,
DataCoolantTemp
.
Value
*
10
0
);
DataCoolantTemp_Dis
.
u8_DownFlashtimer
=
0
;
DataCoolantTemp_Dis
.
u8_Holdtimer
=
0
;
DataCoolantTemp_Dis
.
u8_UpFlashtimer
++
;
...
...
@@ -311,7 +347,7 @@ void Data_Coolant_Temp_Display ( void )
}
/*目标格和当前格一致时,数显如何处理*/
/*5S后更新为目标数值*/
u32ColCurNum
=
Data_Coolant_Cal_Num
(
DataCoolantTemp_Dis
.
u8_CurSeg
,
2
,
(
CoolantFlashtimer
-
DataCoolantTemp_Dis
.
u8_Holdtimer
),
u32ColCurNum
,
DataCoolantTemp
.
Value
*
10
);
u32ColCurNum
=
Data_Coolant_Cal_Num
(
DataCoolantTemp_Dis
.
u8_CurSeg
,
2
,
(
CoolantFlashtimer
-
DataCoolantTemp_Dis
.
u8_Holdtimer
),
u32ColCurNum
,
DataCoolantTemp
.
Value
*
10
0
);
}
// warning
...
...
@@ -462,7 +498,7 @@ uint16_t GET_DataCoolantTempValueDisp(void)
}
uint16_t
GET_DataCoolantSegValue
(
void
)
{
return
u32ColCurNum
/
1
0
;
return
(
u32ColCurNum
)
/
10
0
;
}
uint8_t
GET_DataCollantTempValueValid
(
void
)
{
...
...
Firmware/Source/Component/PowerManagement/PowerManag_user.c
View file @
2f6c8476
...
...
@@ -236,7 +236,11 @@ static void Power_Sleep_Init(void)
LED_Driver_Service
();
Analog_Signal_Conv_Stop
();
UART_DeInit
(
UART0
);
//if(RTE_GPIO_Get_Level(WAKEUP_KL15_In) == 0)
{
RTE_DEEPSLEEP_Enable
();
}
}
static
Power_Status_em
Power_Stay_ON
(
void
)
...
...
Firmware/Source/Device/Cmsemicon/BAT32A239/Library/Driver/src/cgc.c
View file @
2f6c8476
...
...
@@ -297,9 +297,9 @@ void CGC_HSEConfig(OSC_Pin_Mode_t main, OSC_Speed_Mode_t amph)
/* Clock switching needs to be executed in SRAM */
#if defined (__CC_ARM)
#pragma arm section code = "
sram_code
" // Arm Compiler 5
#pragma arm section code = "
RW_FUNC_PLL
" // Arm Compiler 5
#elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION > 6010050)
#pragma clang section text = "
sram_code
" // Arm Compiler 6
#pragma clang section text = "
RW_FUNC_PLL
" // Arm Compiler 6
#endif
#if defined(__ICCARM__)
...
...
Firmware/Source/UDS/UDS_ISO14229_Services.h
View file @
2f6c8476
...
...
@@ -311,13 +311,13 @@
#define CheckSumErr 7 // Checksum Error
#define UnknownPartID 8 // Unknown Part ID
#define SWV 0x11
4
// 0x100 = 1.00 software version 软件版本号
#define SWV 0x11
5
// 0x100 = 1.00 software version 软件版本号
#define HWV 0x103 // 0x100 = 1.00 hardware version 硬件版本号
#define BTV 0x100 // 0x100 = 1.00 bootloader version boot程序版本号
#define INTLV 0x11
4
// 0x100 = 1.00 internal version 内部版本号
#define INTLV 0x11
5
// 0x100 = 1.00 internal version 内部版本号
#define PROG_Y 0x24 // 0x24 = 2024年, program year
#define PROG_M 0x08 // 0x03 = 3月, program month
#define PROG_D 0x1
6
// 0x19 = 19日, program day
#define PROG_D 0x1
7
// 0x19 = 19日, program day
/******************************************************************************
Bootloader Variable
...
...
Firmware/utility/程序释放/20240817-1/TY_TY200.080000b_ty_BAT32G139GK64FB_BootApp_S1.15_240817/TY_TY200.080000b_ty_BAT32G139GK64FB_BootApp_S1.15_240817.srec
0 → 100644
View file @
2f6c8476
This diff is collapsed.
Click to expand it.
Firmware/utility/程序释放/20240817-1/TY_TY200.080000b_ty_BAT32G139GK64FB_BootApp_S1.15_240817/TY_TY200.080000b_ty_BAT32G139GK64FB_UpdateApp_S1.15_240817.srec
0 → 100644
View file @
2f6c8476
This diff is collapsed.
Click to expand it.
Firmware/utility/程序释放/20240817-1/TianYing.hex
0 → 100644
View file @
2f6c8476
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