spi_dma_at91.c File Reference
SPI driver with DMA. More...
#include "cfg/cfg_spi_dma.h"#include "spi_dma_at91.h"#include <kern/kfile.h>#include "hw/hw_spi_dma.h"#include <struct/fifobuf.h>#include <struct/kfile_fifo.h>#include <drv/timer.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 (SpiDmaAt91 *spi) |
| Init DMA SPI driver. | |
Detailed Description
SPI driver with DMA.
- Version:
- Id
- spi_dma_at91.c 3215 2010-03-17 11:45:15Z arighi
Definition in file spi_dma_at91.c.
Function Documentation
| void spi_dma_init | ( | SpiDmaAt91 * | spi | ) |
Init DMA SPI driver.
- Parameters:
-
spi A pointer to a SpiDmaAt91 structure.
Definition at line 203 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 93 of file spi_dma_at91.c.
