Use new interrupt! table format to /enable/ the IRQs also.

This commit is contained in:
Bob McWhirter 2021-07-27 13:23:33 -04:00
parent b910551c9a
commit 8759213fcc
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ unsafe fn on_irq() {
/// safety: must be called only once
pub(crate) unsafe fn init() {
pac::interrupts! {
(BDMA, $irq:ident) => {
($peri:ident, bdma, $block:ident, $signal_name:ident, $irq:ident) => {
crate::interrupt::$irq::steal().enable();
};
}

View File

@ -149,7 +149,7 @@ unsafe fn on_irq() {
/// safety: must be called only once
pub(crate) unsafe fn init() {
pac::interrupts! {
(DMA, $irq:ident) => {
($peri:ident, dma, $block:ident, $signal_name:ident, $irq:ident) => {
interrupt::$irq::steal().enable();
};
}