void spi_slave_write(spi_t *obj, int value) { while (ssp_writeable(obj) == 0) ; obj->spi->DR = value; }
void spi_slave_write(spi_t *obj, int value) { SPI_TypeDef *spi = (SPI_TypeDef *)(obj->spi); while (!ssp_writeable(obj)); spi->DR = (uint16_t)value; }
static inline void ssp_write(spi_t *obj, int value) { obj->spi->DR = value; while (ssp_writeable(obj)); }