Example #1
0
void spi_slave_write(spi_t *obj, int value) {
    while (ssp_writeable(obj) == 0) ;
    obj->spi->DR = value;
}
Example #2
0
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;
}
Example #3
0
static inline void ssp_write(spi_t *obj, int value) {
    obj->spi->DR = value;
    while (ssp_writeable(obj));
}