mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-10-02 14:44:32 +00:00
adjusted for u0 as well
This commit is contained in:
parent
a912a3798d
commit
adb728009c
@ -248,9 +248,9 @@ impl<'d, T: Instance> Adc<'d, T> {
|
|||||||
Averaging::Samples256 => (true, 7, 8),
|
Averaging::Samples256 => (true, 7, 8),
|
||||||
};
|
};
|
||||||
T::regs().cfgr2().modify(|reg| {
|
T::regs().cfgr2().modify(|reg| {
|
||||||
#[cfg(not(adc_g0))]
|
#[cfg(not(any(adc_g0, adc_u0)))]
|
||||||
reg.set_rovse(enable);
|
reg.set_rovse(enable);
|
||||||
#[cfg(adc_g0)]
|
#[cfg(any(adc_g0, adc_u0))]
|
||||||
reg.set_ovse(enable);
|
reg.set_ovse(enable);
|
||||||
#[cfg(any(adc_h5, adc_h7rs))]
|
#[cfg(any(adc_h5, adc_h7rs))]
|
||||||
reg.set_ovsr(samples.into());
|
reg.set_ovsr(samples.into());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user