From edc4fd3f967e455788fb999b702f9a21f9251ae1 Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 27 Mar 2013 12:39:21 +0000 Subject: [PATCH] Patches for LPC17xx SSP driver from Chris Taglia; patch for RAM test from Rommel Marcelo git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5792 42af7a65-404d-4744-a932-0658087f49c3 --- arch/arm/src/lpc17xx/lpc17_ssp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/src/lpc17xx/lpc17_ssp.c b/arch/arm/src/lpc17xx/lpc17_ssp.c index 151efbd89b..331319cc76 100644 --- a/arch/arm/src/lpc17xx/lpc17_ssp.c +++ b/arch/arm/src/lpc17xx/lpc17_ssp.c @@ -495,7 +495,7 @@ static void ssp_setbits(FAR struct spi_dev_s *dev, int nbits) regval = ssp_getreg(priv, LPC17_SSP_CR0_OFFSET); regval &= ~SSP_CR0_DSS_MASK; regval |= ((nbits - 1) << SSP_CR0_DSS_SHIFT); - regval = ssp_getreg(priv, LPC17_SSP_CR0_OFFSET); + ssp_putreg(priv, LPC17_SSP_CR0_OFFSET, regval); /* Save the selection so the subsequence re-configurations will be faster */