spi_dma_at91.c File Reference
SPI driver with DMA. More...
#include "cfg/cfg_spi_dma.h"
#include "spi_dma_at91.h"
#include "hw/hw_spi_dma.h"
#include <kern/kfile.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 2735 2009-07-03 14:20:05Z lottaviano
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 205 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 94 of file spi_dma_at91.c.
