More KL25Z SPI fixes

This commit is contained in:
Gregory Nutt
2013-06-20 19:58:45 -06:00
parent b14f0cf9f7
commit 59e1d1c6cd
2 changed files with 40 additions and 27 deletions
+2 -2
View File
@@ -707,13 +707,13 @@ FAR struct spi_dev_s *up_spiinitialize(int port)
/* Configure master mode, select mode 0, MSB first. Disable interrupts. */
spi_putreg(priv, KL_SPI_C1_OFFSET, SPI_C1_SPIE | SPI_C1_MSTR);
spi_putreg(priv, KL_SPI_C1_OFFSET, SPI_C1_SPE | SPI_C1_MSTR);
/* Disable interrupts, DMA, bidirectional mode, stop-in-wait mode, enable
* master mode fault detection
*/
spi_putreg(priv, KL_SPI_C1_OFFSET, 0);
spi_putreg(priv, KL_SPI_C2_OFFSET, 0);
/* Set the initial SPI configuration */