You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
adc: Adjust the adc resolution with the oversampling factor
The old SAM0 adc drivers forces you to put 12 bits when using oversampling.
The adc_raw_to_millivolts_dt function is not working properly because if
we uses an oversampling of 8, we get 16 bits of resolution.
The function uses directly the resolution in the DT,
so the voltage will not be correct.
To counter this, i forced the user to put the right resolution for his
oversampling factor.
Fixes: #74607
Signed-off-by: Robin Carrupt <[email protected]>
0 commit comments