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
TY
TianYing_ty100
Commits
cb431a97
Commit
cb431a97
authored
Nov 15, 2024
by
陈家乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:QAC问题4749
parent
bab91c00
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
adc.c
...ource/Device/Cmsemicon/BAT32A239/Library/Driver/src/adc.c
+2
-2
No files found.
Firmware/Source/Device/Cmsemicon/BAT32A239/Library/Driver/src/adc.c
View file @
cb431a97
...
...
@@ -121,7 +121,7 @@ uint16_t ADC_Converse_Scan(ADC_Channel_t ch, uint32_t times, uint16_t *buf)
uint32_t
i
,
j
;
volatile
uint8_t
flag
;
uint32_t
total
=
0
;
uint16_t
*
buff
=
buf
;
if
(
times
==
0
)
{
return
0
;
...
...
@@ -149,7 +149,7 @@ uint16_t ADC_Converse_Scan(ADC_Channel_t ch, uint32_t times, uint16_t *buf)
while
(
INTC_GetPendingIRQ
(
ADC_IRQn
)
==
0
);
INTC_ClearPendingIRQ
(
ADC_IRQn
);
// clear INTAD interrupt flag
*
buf
++
=
ADC
->
ADCR
;
*
buf
f
++
=
ADC
->
ADCR
;
total
+=
ADC
->
ADCR
;
...
...
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