libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
#include <libopencm3/stm32/common/spi_common_all.h>
Go to the source code of this file.
Macros | |
#define | SPI_CR1_DFF_8BIT (0 << 11) |
#define | SPI_CR1_DFF_16BIT (1 << 11) |
#define | SPI_CR1_DFF (1 << 11) |
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... | |