From 82ef95b6e268b53a7816206a0b25fae0231ade46 Mon Sep 17 00:00:00 2001 From: liaoao Date: Thu, 1 Aug 2024 19:02:51 +0800 Subject: [PATCH] rpmsg_port_spi_slave: fix compile error when enable RPMSG_PORT_SPI_SLAVE only Signed-off-by: liaoao --- 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 48efd744f38f8..ae4a16b4b35f9 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