Fix set_ovsr typo, ramp up to latest stm32-data-generated
This is an adaption to https://github.com/embassy-rs/stm32-data/pull/597
This commit is contained in:
parent
572e788b2e
commit
8b123b4e0d
@ -73,7 +73,7 @@ rand_core = "0.6.3"
|
|||||||
sdio-host = "0.9.0"
|
sdio-host = "0.9.0"
|
||||||
critical-section = "1.1"
|
critical-section = "1.1"
|
||||||
#stm32-metapac = { version = "16" }
|
#stm32-metapac = { version = "16" }
|
||||||
stm32-metapac = { git = "https://github.com/embassy-rs/stm32-data-generated", tag = "stm32-data-9385c0824aff194913a2eab3c957791d0de06771" }
|
stm32-metapac = { git = "https://github.com/embassy-rs/stm32-data-generated", tag = "stm32-data-a821bf5dd8d283c1e8de88fc7699235777a07e78" }
|
||||||
|
|
||||||
vcell = "0.1.3"
|
vcell = "0.1.3"
|
||||||
nb = "1.0.0"
|
nb = "1.0.0"
|
||||||
@ -102,7 +102,7 @@ proc-macro2 = "1.0.36"
|
|||||||
quote = "1.0.15"
|
quote = "1.0.15"
|
||||||
|
|
||||||
#stm32-metapac = { version = "16", default-features = false, features = ["metadata"]}
|
#stm32-metapac = { version = "16", default-features = false, features = ["metadata"]}
|
||||||
stm32-metapac = { git = "https://github.com/embassy-rs/stm32-data-generated", tag = "stm32-data-9385c0824aff194913a2eab3c957791d0de06771", default-features = false, features = ["metadata"] }
|
stm32-metapac = { git = "https://github.com/embassy-rs/stm32-data-generated", tag = "stm32-data-a821bf5dd8d283c1e8de88fc7699235777a07e78", default-features = false, features = ["metadata"] }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["rt"]
|
default = ["rt"]
|
||||||
|
|||||||
@ -305,7 +305,7 @@ impl<'d, T: Instance> Adc<'d, T> {
|
|||||||
|
|
||||||
T::regs().cfgr2().modify(|reg| {
|
T::regs().cfgr2().modify(|reg| {
|
||||||
reg.set_rovse(enable);
|
reg.set_rovse(enable);
|
||||||
reg.set_osvr(samples);
|
reg.set_ovsr(samples);
|
||||||
reg.set_ovss(right_shift);
|
reg.set_ovss(right_shift);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user