projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Recode files to unix newlines.
[bertos.git]
/
bertos
/
cpu
/
arm
/
drv
/
spi_dma_at91.c
diff --git
a/bertos/cpu/arm/drv/spi_dma_at91.c
b/bertos/cpu/arm/drv/spi_dma_at91.c
index 406e9d8742a6f299db0d7fec95a6f87f4107244f..dceae9767d68c2bc3bb637f410658e340695ccb1 100644
(file)
--- a/
bertos/cpu/arm/drv/spi_dma_at91.c
+++ b/
bertos/cpu/arm/drv/spi_dma_at91.c
@@
-32,7
+32,6
@@
*
* \brief SPI driver with DMA.
*
*
* \brief SPI driver with DMA.
*
- * \version $Id$
* \author Francesco Sacchi <batt@develer.com>
* \author Luca Ottaviano <lottaviano@develer.com>
*/
* \author Francesco Sacchi <batt@develer.com>
* \author Luca Ottaviano <lottaviano@develer.com>
*/
@@
-42,7
+41,7
@@
#include "spi_dma_at91.h"
#include "hw/hw_spi_dma.h"
#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>
#include <struct/fifobuf.h>
#include <struct/kfile_fifo.h>
#include <drv/timer.h>
@@
-75,8
+74,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 */
{
SPI_DMA_STROBE_ON();
/* Pop sent chars from FIFO */
@@
-143,8
+141,7
@@
static int spi_dma_flush(UNUSED_ARG(struct KFile *, fd))
return 0;
}
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;
{
/* do nothing */
AIC_EOICR = 0;