[LPC812] change ssp_busy() to check RXOV

pull/138/head
ytsuboi 2013-12-31 20:24:46 +09:00
parent 0a11767877
commit 4fbf286ee3
1 changed files with 3 additions and 3 deletions

View File

@ -183,8 +183,8 @@ static inline int ssp_read(spi_t *obj) {
}
static inline int ssp_busy(spi_t *obj) {
// TODO
return 0;
// checking RXOV(Receiver Overrun interrupt flag)
return obj->spi->STAT & (1 << 2);
}
int spi_master_write(spi_t *obj, int value) {