mbed library sources(for async_print)
Fork of mbed-src by
Revision 533:589848968e4d, committed 2015-05-04
- Comitter:
- mbed_official
- Date:
- Mon May 04 08:30:08 2015 +0100
- Parent:
- 532:fe11edbda85c
- Child:
- 534:6cdb58309977
- Commit message:
- Synchronized with git revision ffaae4bf4b40d730019091feaba2966aedce31fa
Full URL: https://github.com/mbedmicro/mbed/commit/ffaae4bf4b40d730019091feaba2966aedce31fa/
K64F - Removed configuration of MII pins
Changed in this revision
targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/spi_api.c | Show annotated file Show diff for this revision Revisions of this file |
--- a/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/spi_api.c Thu Apr 30 13:45:11 2015 +0100 +++ b/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/spi_api.c Mon May 04 08:30:08 2015 +0100 @@ -91,6 +91,7 @@ CLOCK_SYS_GetFreq(kBusClock, &busClock); uint32_t spi_address[] = SPI_BASE_ADDRS; DSPI_HAL_SetBaudRate(spi_address[obj->instance], kDspiCtar0, (uint32_t)hz, busClock); + DSPI_HAL_CalculateDelay(spi_address[obj->instance], kDspiCtar0, kDspiLastSckToPcs, busClock, 500000000 / hz); //Half clock period delay after SPI transfer } static inline int spi_writeable(spi_t * obj) {