use core::fmt; use libregister::*; mod regs; pub struct DmaC { regs: &'static mut regs::RegisterBlock, } impl DmaC { pub fn new() -> Self { DmaC { regs: regs::RegisterBlock::dmac0_ns(), } } }