You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by bt...@apache.org on 2021/01/17 05:04:55 UTC
[incubator-nuttx] 03/07: nrf52: enable and fix build for SPI
BITORDER
This is an automated email from the ASF dual-hosted git repository.
btashton pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit ebe596bcd1d4a39f12e330d15972ce036a3e3e18
Author: Matias N <ma...@protobits.dev>
AuthorDate: Sat Jan 16 19:27:27 2021 -0300
nrf52: enable and fix build for SPI BITORDER
---
arch/arm/Kconfig | 1 +
arch/arm/src/nrf52/nrf52_spi.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index eae7a46..dc49f39 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -211,6 +211,7 @@ config ARCH_CHIP_NRF52
select ARCH_HAVE_TICKLESS
#select ARCH_HAVE_MPU
#select ARM_HAVE_MPU_UNIFIED
+ select ARCH_HAVE_SPI_BITORDER
select ARCH_HAVE_FPU
select ARCH_HAVE_PWM_MULTICHAN
select ARCH_HAVE_SERIAL_TERMIOS
diff --git a/arch/arm/src/nrf52/nrf52_spi.c b/arch/arm/src/nrf52/nrf52_spi.c
index 84eee94..c956de2 100644
--- a/arch/arm/src/nrf52/nrf52_spi.c
+++ b/arch/arm/src/nrf52/nrf52_spi.c
@@ -920,6 +920,7 @@ static int nrf52_spi_hwfeatures(FAR struct spi_dev_s *dev,
FAR struct nrf52_spidev_s *priv = (FAR struct nrf52_spidev_s *)dev;
uint32_t setbits = 0;
uint32_t clrbits = 0;
+ uint32_t regval;
spiinfo("features=%08x\n", features);