mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 04:19:37 +08:00
rpmsg_port_spi: add spi transport layer
Add Rpmsg-Port-SPI transport layer. Rpmsg Port SPI is a new rpmsg transport layer based on the Rpmsg Port, it provides the capability for two SPI-connected (and two extra GPIO) chips to communicate with each other using Rpmsg. All already implemented Rpmsg Services can be used with this new transport layer without any modifications. Signed-off-by: liaoao <liaoao@xiaomi.com>
This commit is contained in:
@@ -27,6 +27,34 @@ config RPMSG_PORT
|
||||
---help---
|
||||
Rpmsg port transport layer used for cross chip communication.
|
||||
|
||||
config RPMSG_PORT_SPI
|
||||
bool "Rpmsg SPI Port Driver Support"
|
||||
default n
|
||||
select RPMSG_PORT
|
||||
---help---
|
||||
Rpmsg SPI Port driver used for cross chip communication.
|
||||
|
||||
if RPMSG_PORT_SPI
|
||||
|
||||
config RPMSG_PORT_SPI_THREAD_PRIORITY
|
||||
int "Rpmsg SPI Port Thread Priority"
|
||||
default 224
|
||||
|
||||
config RPMSG_PORT_SPI_THREAD_STACKSIZE
|
||||
int "Rpmsg SPI Port Stack Size"
|
||||
default DEFAULT_TASK_STACKSIZE
|
||||
|
||||
config RPMSG_PORT_SPI_CRC
|
||||
bool "Rpmsg SPI Port Use CRC Check"
|
||||
default n
|
||||
|
||||
config RPMSG_PORT_SPI_RX_THRESHOLD
|
||||
int "Rpmsg SPI Port Rx Buffer Threshold"
|
||||
default 50
|
||||
range 0 100
|
||||
|
||||
endif # RPMSG_PORT_SPI
|
||||
|
||||
endif # RPMSG
|
||||
|
||||
config RPMSG_VIRTIO
|
||||
|
||||
Reference in New Issue
Block a user