Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8ac5cef

Browse files
fpistmcparata
authored andcommitted
fix(U5): ensure ADC timing initialised
Complete the PRstm32duino#1766Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent5f064c3 commit8ac5cef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎libraries/SrcWrapper/src/stm32/analog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ uint16_t adc_read_value(PinName pin, uint32_t resolution)
898898
#if defined(STM32F0xx)
899899
AdcHandle.Init.SamplingTimeCommon = samplingTime;
900900
#endif
901-
#if defined(STM32G0xx) || defined(STM32WLxx)
901+
#if defined(STM32G0xx) || defined(STM32U5xx) || defined(STM32WLxx)
902902
AdcHandle.Init.SamplingTimeCommon1 = samplingTime;/* Set sampling time common to a group of channels.*/
903903
AdcHandle.Init.SamplingTimeCommon2 = samplingTime;/* Set sampling time common to a group of channels, second common setting possible.*/
904904
#endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp