Use new interrupt! table format to /enable/ the IRQs also.
This commit is contained in:
parent
b910551c9a
commit
8759213fcc
@ -143,7 +143,7 @@ unsafe fn on_irq() {
|
|||||||
/// safety: must be called only once
|
/// safety: must be called only once
|
||||||
pub(crate) unsafe fn init() {
|
pub(crate) unsafe fn init() {
|
||||||
pac::interrupts! {
|
pac::interrupts! {
|
||||||
(BDMA, $irq:ident) => {
|
($peri:ident, bdma, $block:ident, $signal_name:ident, $irq:ident) => {
|
||||||
crate::interrupt::$irq::steal().enable();
|
crate::interrupt::$irq::steal().enable();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -149,7 +149,7 @@ unsafe fn on_irq() {
|
|||||||
/// safety: must be called only once
|
/// safety: must be called only once
|
||||||
pub(crate) unsafe fn init() {
|
pub(crate) unsafe fn init() {
|
||||||
pac::interrupts! {
|
pac::interrupts! {
|
||||||
(DMA, $irq:ident) => {
|
($peri:ident, dma, $block:ident, $signal_name:ident, $irq:ident) => {
|
||||||
interrupt::$irq::steal().enable();
|
interrupt::$irq::steal().enable();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user