BeRTOS
|
SPI driver with DMA. More...
#include "cfg/cfg_spi_dma.h"
#include "spi_dma_at91.h"
#include "hw/hw_spi_dma.h"
#include <io/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. |
SPI driver with DMA.
Definition in file spi_dma_at91.c.
void spi_dma_init | ( | SpiDmaAt91 * | spi | ) |
Init DMA SPI driver.
spi | A pointer to a SpiDmaAt91 structure. |
Definition at line 132 of file spi_dma_at91.c.
void spi_dma_setclock | ( | uint32_t | rate | ) |
Set the clock rate for SPI bus.
rate | The rate you want to set for SPI. |
Definition at line 55 of file spi_dma_at91.c.