diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-05-16 00:48:37 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-05-16 00:48:37 +0000 |
commit | 635123de5fde8c36df370f5a301fd3d43812f347 (patch) | |
tree | e1cb16005a846a76d9fb85f459dfe02618df7cd5 /nuttx/arch/arm/src/lm3s | |
parent | c6a57d524931a28d96b4f955cf2c5c5c8e72b4cb (diff) | |
download | px4-nuttx-635123de5fde8c36df370f5a301fd3d43812f347.tar.gz px4-nuttx-635123de5fde8c36df370f5a301fd3d43812f347.tar.bz2 px4-nuttx-635123de5fde8c36df370f5a301fd3d43812f347.zip |
Fix SSI mode setting logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2678 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lm3s')
-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); |