mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-23 07:12:29 +00:00
remove unnecessary use, disable DAC and DMA after transfer
This commit is contained in:
parent
f5d084552d
commit
78a2ca8a0e
@ -2,7 +2,7 @@
|
||||
|
||||
use embassy_hal_common::{into_ref, PeripheralRef};
|
||||
|
||||
use crate::dma::{slice_ptr_parts, word, Transfer};
|
||||
use crate::dma::Transfer;
|
||||
use crate::pac::dac;
|
||||
use crate::rcc::RccPeripheral;
|
||||
use crate::{peripherals, Peripheral};
|
||||
@ -269,9 +269,9 @@ impl<'d, T: Instance, Tx> Dac<'d, T, Tx> {
|
||||
|
||||
T::regs().cr().modify(|w| {
|
||||
// Disable the dac peripheral
|
||||
//w.set_en(CHANNEL, false);
|
||||
w.set_en(CHANNEL, false);
|
||||
// Disable the DMA. TODO: Is this necessary?
|
||||
//w.set_dmaen(CHANNEL, false);
|
||||
w.set_dmaen(CHANNEL, false);
|
||||
});
|
||||
}
|
||||
Ok(())
|
||||
|
Loading…
Reference in New Issue
Block a user