You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/10/11 13:20:50 UTC

(nuttx) branch master updated: rpmsg_port_spi_slave: fix compile error when enable RPMSG_PORT_SPI_SLAVE only

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang 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 82ef95b6e2 rpmsg_port_spi_slave: fix compile error when enable RPMSG_PORT_SPI_SLAVE only
82ef95b6e2 is described below

commit 82ef95b6e268b53a7816206a0b25fae0231ade46
Author: liaoao <li...@xiaomi.com>
AuthorDate: Thu Aug 1 19:02:51 2024 +0800

    rpmsg_port_spi_slave: fix compile error when enable RPMSG_PORT_SPI_SLAVE only
    
    Signed-off-by: liaoao <li...@xiaomi.com>
---
 include/nuttx/rpmsg/rpmsg_port.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/nuttx/rpmsg/rpmsg_port.h b/include/nuttx/rpmsg/rpmsg_port.h
index 48efd744f3..ae4a16b4b3 100644
--- a/include/nuttx/rpmsg/rpmsg_port.h
+++ b/include/nuttx/rpmsg/rpmsg_port.h
@@ -56,7 +56,7 @@ struct rpmsg_port_config_s
   FAR void       *rxbuf;
 };
 
-#ifdef CONFIG_RPMSG_PORT_SPI
+#if defined(CONFIG_RPMSG_PORT_SPI) || defined(CONFIG_RPMSG_PORT_SPI_SLAVE)
 
 /* There are two gpios used for communication between two chips. At the SPI
  * master side, mreq is an output gpio pin which is used to notify the