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
d19ce431
Commit
d19ce431
authored
Sep 14, 2024
by
张金硕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:修改RTE_TIM40.c的QAC问题
parent
d6b4d355
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
45 deletions
+60
-45
RTE_TIM40.c
...e/Source/Device/Cmsemicon/BAT32A279/RTE/Tim40/RTE_TIM40.c
+60
-45
No files found.
Firmware/Source/Device/Cmsemicon/BAT32A279/RTE/Tim40/RTE_TIM40.c
View file @
d19ce431
...
...
@@ -222,6 +222,18 @@ void RTE_Calc_Freq(uint8_t u8ch)
uint16_t
u16TSR
;
uint8_t
u8RollingCh
=
0
;
if
((
u8ch
<
0
)
||
(
u8ch
>=
RTE_TIM40_CH_SUM
))
{
;
}
else
{
if
((
g_stTIM40CapObj
[
u8ch
].
u8PeriodBufCnt
<
0
)
||
(
g_stTIM40CapObj
[
u8ch
].
u8PeriodBufCnt
>=
RTE_TIM40_PERIOD_FILTER_SUM
))
{
;
}
else
{
switch
(
u8ch
)
{
case
RTE_TIM40_CH0
:
...
...
@@ -273,6 +285,9 @@ void RTE_Calc_Freq(uint8_t u8ch)
u32Temp
=
u32Temp
/
g_stTIM40CapObj
[
u8ch
].
u8PeriodCnt
;
g_stTIM40CapObj
[
u8ch
].
u32Freq
=
(
g_stTIM40CapObj
[
u8ch
].
u32CHClock
*
10U
)
/
u32Temp
;
}
}
}
/***********************************************************************************************************************
...
...
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