diff options
Diffstat (limited to 'nuttx/arch/arm/src')
-rw-r--r-- | nuttx/arch/arm/src/lpc17xx/lpc17_ssp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_ssp.c b/nuttx/arch/arm/src/lpc17xx/lpc17_ssp.c index 151efbd89..331319cc7 100644 --- a/nuttx/arch/arm/src/lpc17xx/lpc17_ssp.c +++ b/nuttx/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 */ |