Move kfile interface to the io/ directory.
[bertos.git] / bertos / cpu / arm / drv / spi_dma_at91.c
index 406e9d8742a6f299db0d7fec95a6f87f4107244f..2c6a9308abea753b9aef134d19acb7aa07bbd63e 100644 (file)
@@ -42,7 +42,7 @@
 #include "spi_dma_at91.h"
 #include "hw/hw_spi_dma.h"
 
-#include <kern/kfile.h>
+#include <io/kfile.h>
 #include <struct/fifobuf.h>
 #include <struct/kfile_fifo.h>
 #include <drv/timer.h>
@@ -75,8 +75,7 @@ INLINE void spi_dma_startTx(void)
        }
 }
 
-static void spi0_dma_write_irq_handler(void) __attribute__ ((interrupt));
-static void spi0_dma_write_irq_handler(void)
+static DECLARE_ISR(spi0_dma_write_irq_handler)
 {
        SPI_DMA_STROBE_ON();
        /* Pop sent chars from FIFO */
@@ -143,8 +142,7 @@ static int spi_dma_flush(UNUSED_ARG(struct KFile *, fd))
        return 0;
 }
 
-static void spi0_dma_read_irq_handler(void) __attribute__ ((interrupt));
-static void spi0_dma_read_irq_handler(void)
+static DECLARE_ISR(spi0_dma_read_irq_handler)
 {
        /* do nothing */
        AIC_EOICR = 0;