You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2019/05/16 03:58:38 UTC

[GitHub] [mynewt-core] wes3 opened a new pull request #1823: hw/mcu/nordic: Initialize SCK for SPI in config API

wes3 opened a new pull request #1823: hw/mcu/nordic: Initialize SCK for SPI in config API
URL: https://github.com/apache/mynewt-core/pull/1823
 
 
   This commit moves the initialization of the SCK gpio to hal_config_spi_master.
   This initialization was done in hal_spi_init_master previously. The reason
   for moving this is the data mode in the structure does not get set prior to
   calling the init function. This could cause the GPIO to be configured in
   an incorrect manner. Note that the nordic specification makes specific mention
   regarding how SPI GPIO should be configured prior to enabling the SPI master.
   In this case, SCK should be an output with state set same as CONFIG.CPOL

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services