84 uint32_t dff, uint32_t lsbfirst)
#define SPI_CR1(spi_base)
#define SPI_CR2(spi_base)
void spi_set_dff_16bit(uint32_t spi)
SPI Set Data Frame Format to 16 bits.
void spi_set_dff_8bit(uint32_t spi)
SPI Set Data Frame Format to 8 bits.
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.