stm32/dma: fix interrupt codegen for new stm32-data
This commit is contained in:
@ -47,7 +47,7 @@ macro_rules! dma_num {
|
||||
};
|
||||
}
|
||||
|
||||
unsafe fn on_irq() {
|
||||
pub(crate) unsafe fn on_irq() {
|
||||
pac::peripherals! {
|
||||
(dma, $dma:ident) => {
|
||||
for isrn in 0..2 {
|
||||
@ -162,15 +162,6 @@ pac::dma_channels! {
|
||||
};
|
||||
}
|
||||
|
||||
pac::interrupts! {
|
||||
($peri:ident, dma, $block:ident, $signal_name:ident, $irq:ident) => {
|
||||
#[crate::interrupt]
|
||||
unsafe fn $irq () {
|
||||
on_irq()
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
mod low_level_api {
|
||||
use super::*;
|
||||
|
||||
|
Reference in New Issue
Block a user