mbed
Fork of mbed-dev by
Diff: targets/TARGET_STM/stm_spi_api.c
- Revision:
- 160:d5399cc887bb
- Parent:
- 159:612c381a210f
- Child:
- 165:e614a9f1c9e2
--- a/targets/TARGET_STM/stm_spi_api.c Tue Feb 28 17:13:35 2017 +0000 +++ b/targets/TARGET_STM/stm_spi_api.c Tue Mar 14 16:40:56 2017 +0000 @@ -308,7 +308,7 @@ /* In case maximum pre-scaler still gives too high freq, raise an error */ if (spi_hz > hz) { - error("Couldn't set suitable spi freq: request:%d, lowest:%d\r\n", hz, spi_hz); + DEBUG_PRINTF("WARNING: lowest SPI freq (%d) higher than requested (%d)\r\n", spi_hz, hz); } DEBUG_PRINTF("spi_frequency, request:%d, select:%d\r\n", hz, spi_hz);