spi_dma_sam3.c File Reference
SPI driver with DMA. More...
#include "cfg/cfg_spi_dma.h"#include "hw/hw_spi_dma.h"#include <io/cm3.h>#include <io/kfile.h>#include <struct/fifobuf.h>#include <struct/kfile_fifo.h>#include <drv/timer.h>#include <drv/spi_dma.h>#include <cpu/attr.h>#include <cpu/power.h>#include <string.h>Go to the source code of this file.
Functions | |
| void | spi_dma_setclock (uint32_t rate) |
| Set the clock rate for SPI bus. | |
| void | spi_dma_init (SpiDma *spi) |
| Init DMA SPI driver. | |
Detailed Description
SPI driver with DMA.
Definition in file spi_dma_sam3.c.
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_sam3.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_sam3.c.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/bertos_logo.png)