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