Adjust to DMA1EN in the rcc for l0.

This commit is contained in:
Bob McWhirter
2021-07-12 14:11:18 -04:00
parent d31e30f382
commit 06e899b14c
3 changed files with 4 additions and 4 deletions

View File

@ -170,7 +170,7 @@ impl<'d> Rcc<'d> {
pub fn enable_debug_wfe(&mut self, _dbg: &mut peripherals::DBGMCU, enable_dma: bool) {
// NOTE(unsafe) We have exclusive access to the RCC and DBGMCU
unsafe {
pac::RCC.ahbenr().modify(|w| w.set_dmaen(enable_dma));
pac::RCC.ahbenr().modify(|w| w.set_dma1en(enable_dma));
pac::DBGMCU.cr().modify(|w| {
w.set_dbg_sleep(true);