Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
64d24fcc
Commit
64d24fcc
authored
Aug 05, 2023
by
Rene Straub
Committed by
Damien George
Sep 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stm32/adc: Optimize sampling time for G4, H5, L4 and WB MCUs.
Signed-off-by:
Rene Straub
<
rene@see5.ch
>
parent
8f9bba0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ports/stm32/adc.c
ports/stm32/adc.c
+1
-1
No files found.
ports/stm32/adc.c
View file @
64d24fcc
...
...
@@ -444,7 +444,7 @@ STATIC void adc_config_channel(ADC_HandleTypeDef *adc_handle, uint32_t channel)
if
(
__HAL_ADC_IS_CHANNEL_INTERNAL
(
channel
))
{
sConfig
.
SamplingTime
=
ADC_SAMPLETIME_247CYCLES_5
;
}
else
{
sConfig
.
SamplingTime
=
ADC_SAMPLETIME_
12
CYCLES_5
;
sConfig
.
SamplingTime
=
ADC_SAMPLETIME_
6
CYCLES_5
;
}
sConfig
.
SingleDiff
=
ADC_SINGLE_ENDED
;
sConfig
.
OffsetNumber
=
ADC_OFFSET_NONE
;
...
...
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