mbed library sources modified for open wear
Dependents: openwear-lifelogger-example
Fork of mbed-src by
Revision 275:8287c40fc7ee, committed 2014-08-07
- Comitter:
- mbed_official
- Date:
- Thu Aug 07 09:15:06 2014 +0100
- Parent:
- 274:6937b19af361
- Child:
- 276:8f841524c270
- Commit message:
- Synchronized with git revision 83b4b6d213bd3ca57392eaae0e13845c3b32015f
Full URL: https://github.com/mbedmicro/mbed/commit/83b4b6d213bd3ca57392eaae0e13845c3b32015f/
[Kinetis K] K64F and K20D50M - SPI Slave read bug fix
Changed in this revision
--- 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; }
--- a/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_K64F/spi_api.c Wed Aug 06 08:15:07 2014 +0100 +++ b/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_K64F/spi_api.c Thu Aug 07 09:15:06 2014 +0100 @@ -133,6 +133,7 @@ } int spi_slave_read(spi_t *obj) { + dspi_hal_clear_status_flag(obj->instance, kDspiRxFifoDrainRequest); return dspi_hal_read_data(obj->instance); }