Skip to content

Commit 82ef95b

Browse files
leo11261xiaoxiang781216
authored andcommitted
rpmsg_port_spi_slave: fix compile error when enable RPMSG_PORT_SPI_SLAVE only
Signed-off-by: liaoao <liaoao@xiaomi.com>
1 parent de1701c commit 82ef95b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/nuttx/rpmsg/rpmsg_port.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ struct rpmsg_port_config_s
5656
FAR void *rxbuf;
5757
};
5858

59-
#ifdef CONFIG_RPMSG_PORT_SPI
59+
#if defined(CONFIG_RPMSG_PORT_SPI) || defined(CONFIG_RPMSG_PORT_SPI_SLAVE)
6060

6161
/* There are two gpios used for communication between two chips. At the SPI
6262
* master side, mreq is an output gpio pin which is used to notify the

0 commit comments

Comments
 (0)