mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-10-02 14:44:32 +00:00
stm32 ringbuffered adc: fix for metapac changes
This commit is contained in:
parent
8cbb64226b
commit
1f30ad595b
@ -291,7 +291,7 @@ impl<'d, T: Instance> RingBufferedAdc<'d, T> {
|
|||||||
// Enable DMA mode
|
// Enable DMA mode
|
||||||
w.set_dma(true);
|
w.set_dma(true);
|
||||||
// Enable continuous conversions
|
// Enable continuous conversions
|
||||||
w.set_cont(vals::Cont::CONTINUOUS);
|
w.set_cont(true);
|
||||||
// DMA requests are issues as long as DMA=1 and data are converted.
|
// DMA requests are issues as long as DMA=1 and data are converted.
|
||||||
w.set_dds(vals::Dds::CONTINUOUS);
|
w.set_dds(vals::Dds::CONTINUOUS);
|
||||||
// EOC flag is set at the end of each conversion.
|
// EOC flag is set at the end of each conversion.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user