kasjer opened a new pull request, #3034: URL: https://github.com/apache/mynewt-core/pull/3034
SPI clock settings allowed only specific number of values to be set. Requesting value not in predefined set resulted in SPI not being configured. Other MCUs' HALs, when SPI frequency is specified try to set frequency that does not exceed requested one. This approach allows to have common frequency value that applies to device that is connected to SPI for wider range of MCUs. For example MMC requires SPI to be in range of 100-400kHz during startup and MMC code have frequency set to 125kHz just because this value is supported by NRF52. With this change NRF5x SPI frequency is set to value that does not exeed requested one. It should not affect existing code that must have exact value set to work at all. Now it will be possible to specify 200kHz and HAL will setup value 125kHz it this is what hardware supports. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@mynewt.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org