You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2023/06/02 14:13:10 UTC

[nuttx] 02/02: mpfs_corespi: Change default motorola mode to MODE3

This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit d193c5094786bec6f16b0d29cab3ca1861caabd2
Author: Ville Juven <vi...@unikie.com>
AuthorDate: Thu Jun 1 14:34:12 2023 +0300

    mpfs_corespi: Change default motorola mode to MODE3
---
 arch/risc-v/src/mpfs/mpfs_corespi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/risc-v/src/mpfs/mpfs_corespi.c b/arch/risc-v/src/mpfs/mpfs_corespi.c
index da1b576a6c..43b1cacf3a 100644
--- a/arch/risc-v/src/mpfs/mpfs_corespi.c
+++ b/arch/risc-v/src/mpfs/mpfs_corespi.c
@@ -192,7 +192,7 @@ static void mpfs_spi_enable(struct mpfs_spi_priv_s *priv, uint8_t enable);
 static const struct mpfs_spi_config_s mpfs_spi_config =
 {
   .clk_freq = MPFS_SPI_FREQ_DEFAULT,
-  .mode     = SPIDEV_MODE0,
+  .mode     = SPIDEV_MODE3,
   .nbits    = 8,
   .use_irq  = true,
 };