166 SPI_CR2(spi) &= ~SPI_CR2_FRXTH;
#define SPI_CR1(spi_base)
#define SPI_CR2(spi_base)
#define SPI_DR8(spi_base)
void spi_set_data_size(uint32_t spi, uint16_t data_s)
SPI Set data size.
void spi_set_crcl_16bit(uint32_t spi)
SPI Set CRC length to 16 bits.
void spi_send8(uint32_t spi, uint8_t data)
int spi_init_master(uint32_t spi, uint32_t br, uint32_t cpol, uint32_t cpha, uint32_t lsbfirst)
Configure the SPI as Master.
void spi_set_crcl_8bit(uint32_t spi)
SPI Set CRC length to 8 bits.
uint8_t spi_read8(uint32_t spi)
void spi_fifo_reception_threshold_16bit(uint32_t spi)
SPI Set reception threshold to 16 bits.
void spi_fifo_reception_threshold_8bit(uint32_t spi)
SPI Set reception threshold to 8 bits.