diff options
Diffstat (limited to 'nuttx/arch/arm/src/lm3s/lm3s_ssi.c')
-rwxr-xr-x | nuttx/arch/arm/src/lm3s/lm3s_ssi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/lm3s/lm3s_ssi.c b/nuttx/arch/arm/src/lm3s/lm3s_ssi.c index 18418b886..ac3924451 100755 --- a/nuttx/arch/arm/src/lm3s/lm3s_ssi.c +++ b/nuttx/arch/arm/src/lm3s/lm3s_ssi.c @@ -1223,10 +1223,10 @@ static void ssi_setmodeinternal(struct lm3s_ssidev_s *priv, enum spi_mode_e mode return; } - /* Then set the selected mode */ + /* Then set the selected mode: Freescale SPI format, mode0-3 */ regval = ssi_getreg(priv, LM3S_SSI_CR0_OFFSET); - regval &= ~SSI_CR0_FRF_MASK; + regval &= ~(SSI_CR0_FRF_MASK|SSI_CR0_SPH|SSI_CR0_SPO); regval |= modebits; ssi_putreg(priv, LM3S_SSI_CR0_OFFSET, regval); ssivdbg("CR0: %08x\n", regval); |