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