fix h7 adc (#2442)

This commit is contained in:
Matthew Kennedy 2021-03-10 16:52:39 -08:00 committed by GitHub
parent ecf0e9762f
commit df5403356c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ static constexpr ADCConversionGroup convGroupSlow = {
.end_cb = nullptr,
.error_cb = nullptr,
.cfgr = 0,
.cfgr2 = 16 << ADC_CFGR2_OVSR_Pos | // Oversample by 16x
.cfgr2 = 15 << ADC_CFGR2_OVSR_Pos | // Oversample by 16x (register contains N-1)
4 << ADC_CFGR2_OVSS_Pos | // shift the result right 4 bits to make a 16 bit result
ADC_CFGR2_ROVSE, // Enable oversampling
.ccr = 0,