spi_dma_at91.h
Go to the documentation of this file.00001
00042 #ifndef DRV_SPI_DMA_AT91_H
00043 #define DRV_SPI_DMA_AT91_H
00044
00045 #include <kern/kfile.h>
00046
00047 typedef struct SpiDmaAt91
00048 {
00049 KFile fd;
00050 } SpiDmaAt91;
00051
00052 #define KFT_SPIDMAAT91 MAKE_ID('S', 'P', 'I', 'A')
00053
00054 INLINE SpiDmaAt91 * SPIDMAAT91_CAST(KFile *fd)
00055 {
00056 ASSERT(fd->_type == KFT_SPIDMAAT91);
00057 return (SpiDmaAt91 *)fd;
00058 }
00059
00064 void spi_dma_init(SpiDmaAt91 *spi);
00065
00071 void spi_dma_setclock(uint32_t rate);
00072
00073 #endif