spi_dma.h File Reference
SPI driver with DMA. More...
#include <io/kfile.h>Go to the source code of this file.
Functions | |
| void | spi_dma_init (SpiDma *spi) |
| Init DMA SPI driver. | |
| void | spi_dma_setclock (uint32_t rate) |
| Set the clock rate for SPI bus. | |
Detailed Description
SPI driver with DMA.
- Note:
- Only one copy of SpiDma is allowed for each application.
Definition in file spi_dma.h.
Function Documentation
| void spi_dma_init | ( | SpiDma * | spi | ) |
Init DMA SPI driver.
- Parameters:
-
spi A pointer to a SpiDma structure.
Definition at line 135 of file spi_dma_at91.c.
| void spi_dma_setclock | ( | uint32_t | rate | ) |
Set the clock rate for SPI bus.
- Parameters:
-
rate The rate you want to set for SPI.
Definition at line 58 of file spi_dma_at91.c.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/bertos_logo.png)