mbed library sources

Fork of mbed-src by mbed official

Revision:
275:8287c40fc7ee
Parent:
255:20b371a9491b
--- a/targets/hal/TARGET_Freescale/TARGET_K20D50M/spi_api.c	Wed Aug 06 08:15:07 2014 +0100
+++ b/targets/hal/TARGET_Freescale/TARGET_K20D50M/spi_api.c	Thu Aug 07 09:15:06 2014 +0100
@@ -165,6 +165,7 @@
 }
 
 int spi_slave_read(spi_t *obj) {
+    obj->spi->SR |= SPI_SR_RFDF_MASK;
     return obj->spi->POPR;
 }