mbed library with additional peripherals for ST F401 board
Fork of mbed-src by
This mbed LIB has additional peripherals for ST F401 board
- UART2 : PA_3 rx, PA_2 tx
- UART3 : PC_7 rx, PC_6 tx
- I2C2 : PB_3 SDA, PB_10 SCL
- I2C3 : PB_4 SDA, PA_8 SCL
Diff: targets/hal/TARGET_NXP/TARGET_LPC81X/spi_api.c
- Revision:
- 69:49e45cb70de1
- Parent:
- 46:bebbbd80dd87
- Child:
- 81:a9456fdf72fa
--- a/targets/hal/TARGET_NXP/TARGET_LPC81X/spi_api.c Thu Dec 26 13:00:06 2013 +0000 +++ b/targets/hal/TARGET_NXP/TARGET_LPC81X/spi_api.c Tue Dec 31 15:30:05 2013 +0000 @@ -183,9 +183,9 @@ } 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) { ssp_write(obj, value);