libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
spi_common_v1.c File Reference
Include dependency graph for spi_common_v1.c:

Go to the source code of this file.

Functions

int spi_init_master (uint32_t spi, uint32_t br, uint32_t cpol, uint32_t cpha, uint32_t dff, uint32_t lsbfirst)
 Configure the SPI as Master. More...
 
void spi_set_dff_8bit (uint32_t spi)
 SPI Set Data Frame Format to 8 bits. More...
 
void spi_set_dff_16bit (uint32_t spi)
 SPI Set Data Frame Format to 16 bits. More...