General clean-up and removal of dead code.

This commit is contained in:
Bob McWhirter
2021-06-03 14:25:17 -04:00
parent d75bf143eb
commit 240616aa72
5 changed files with 7 additions and 60 deletions

View File

@ -185,31 +185,3 @@ crate::pac::interrupts!(
irq!(HASH_RNG);
};
);
/*
macro_rules! impl_rng {
($inst:ident, $irq:ident) => {
impl crate::rng::sealed::Instance for peripherals::RNG {
fn regs() -> crate::pac::rng::Rng {
crate::pac::RNG
}
}
impl crate::rng::Instance for peripherals::RNG {}
mod rng_irq {
use crate::interrupt;
#[interrupt]
unsafe fn $irq() {
let bits = $crate::pac::RNG.sr().read();
if bits.drdy() || bits.seis() || bits.ceis() {
$crate::pac::RNG.cr().write(|reg| reg.set_ie(false));
$crate::rng::RNG_WAKER.wake();
}
}
}
};
}
*/