This is an automated email from the ASF dual-hosted git repository.
casaroli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 6f47a1c3d66 include/nuttx/spi: rename SPI_STATUS_BUSY to
SPI_STATUS_DEVBUSY
6f47a1c3d66 is described below
commit 6f47a1c3d664bf7d803beedbaa956ebc3a2c1b90
Author: yangsong8 <[email protected]>
AuthorDate: Wed Nov 11 12:43:09 2026 +0800
include/nuttx/spi: rename SPI_STATUS_BUSY to SPI_STATUS_DEVBUSY
SPI_STATUS_BUSY, added to spi.h for the device busy status bit, clashes
with the SPI_STATUS_BUSY register bit in
arch/arm/src/lpc31xx/lpc31_spi.h, and lpc31_spi.c fails to build with
-Werror ("SPI_STATUS_BUSY" redefined). Rename it to SPI_STATUS_DEVBUSY;
nothing uses it yet.
Signed-off-by: yangsong8 <[email protected]>
---
include/nuttx/spi/spi.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/nuttx/spi/spi.h b/include/nuttx/spi/spi.h
index 4683c90f4d8..7523efbb81b 100644
--- a/include/nuttx/spi/spi.h
+++ b/include/nuttx/spi/spi.h
@@ -272,7 +272,7 @@
#define SPI_STATUS_PRESENT 0x01 /* Bit 0=1: MMC/SD card present */
#define SPI_STATUS_WRPROTECTED 0x02 /* Bit 1=1: MMC/SD card write protected */
-#define SPI_STATUS_BUSY 0x04 /* Bit 2=1: MMC/SD card busy */
+#define SPI_STATUS_DEVBUSY 0x04 /* Bit 2=1: MMC/SD card busy */
/****************************************************************************
* Name: SPI_CMDDATA