fix h7 adc (#2442)
This commit is contained in:
parent
ecf0e9762f
commit
df5403356c
|
@ -41,7 +41,7 @@ static constexpr ADCConversionGroup convGroupSlow = {
|
||||||
.end_cb = nullptr,
|
.end_cb = nullptr,
|
||||||
.error_cb = nullptr,
|
.error_cb = nullptr,
|
||||||
.cfgr = 0,
|
.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
|
4 << ADC_CFGR2_OVSS_Pos | // shift the result right 4 bits to make a 16 bit result
|
||||||
ADC_CFGR2_ROVSE, // Enable oversampling
|
ADC_CFGR2_ROVSE, // Enable oversampling
|
||||||
.ccr = 0,
|
.ccr = 0,
|
||||||
|
|
Loading…
Reference in New Issue