20 #define SPI_0_28125MHZ_CLOCK_DIVIDER 256
21 #define SPI_0_5625MHZ_CLOCK_DIVIDER 128
22 #define SPI_18MHZ_CLOCK_DIVIDER 2
23 #define SPI_9MHZ_CLOCK_DIVIDER 4
25 bool spiInit(SPI_TypeDef *instance);
30 void spiTransfer(SPI_TypeDef *instance, uint8_t *out,
const uint8_t *in,
int len);
void spiSetDivisor(SPI_TypeDef *instance, uint16_t divisor)
Definition: bus_spi.c:530
bool spiInit(SPI_TypeDef *instance)
Definition: bus_spi.c:423
bool spiIsBusBusy(SPI_TypeDef *instance)
Definition: bus_spi.c:482
uint8_t spiTransferByte(SPI_TypeDef *instance, uint8_t in)
Definition: bus_spi.c:450
void spiTransfer(SPI_TypeDef *instance, uint8_t *out, const uint8_t *in, int len)
Definition: bus_spi.c:493