mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
feat(openthread) Add custom transport to OpenThread
- add a custom transport with Tx() and Rx() callbacks in OpenThread config - OpenThread calls Tx() to transmit, Rx() to receive data - external driver provides the transport for sending data between OT RCP and Host - add an OpenThread call used by external driver to send a signal to OpenThread when there is incoming data
This commit is contained in:
@@ -201,6 +201,11 @@ menu "OpenThread"
|
||||
help
|
||||
Select this to connect to a Radio Co-Processor via SPI.
|
||||
|
||||
config OPENTHREAD_RADIO_SPINEL_CUSTOM
|
||||
bool "Connect via Custom Transport"
|
||||
help
|
||||
Select this to connect to a Radio Co-Processor via a provided Custom Transport.
|
||||
|
||||
config OPENTHREAD_RADIO_154_NONE
|
||||
bool "Disable the Thread radio based on 15.4 link"
|
||||
help
|
||||
@@ -232,6 +237,11 @@ menu "OpenThread"
|
||||
bool "USB RCP"
|
||||
help
|
||||
Select this to enable connection to host over USB JTAG serial.
|
||||
|
||||
config OPENTHREAD_RCP_CUSTOM
|
||||
bool "Custom Transport RCP"
|
||||
help
|
||||
Select this to enable a custom transport connection to host
|
||||
endchoice
|
||||
|
||||
config OPENTHREAD_NCP_VENDOR_HOOK
|
||||
@@ -500,6 +510,13 @@ menu "OpenThread"
|
||||
help
|
||||
Set the OpenThread UART buffer size.
|
||||
|
||||
config OPENTHREAD_TRANSPORT_BUFFER_SIZE
|
||||
depends on OPENTHREAD_RCP_CUSTOM || OPENTHREAD_RADIO_SPINEL_CUSTOM
|
||||
int "The custom transport received buffer size of openthread"
|
||||
default 2048
|
||||
help
|
||||
Set the OpenThread Custom transport buffer size.
|
||||
|
||||
config OPENTHREAD_MAC_MAX_CSMA_BACKOFFS_DIRECT
|
||||
int "Maximum backoffs times before declaring a channel access failure."
|
||||
default 4
|
||||
|
||||
Reference in New Issue
Block a user