kopia lustrzana https://github.com/espressif/esp-idf
openthread: add the configurable option of uart buffer size
rodzic
778aeae99e
commit
1f664bb4f7
|
@ -150,4 +150,12 @@ menu "OpenThread"
|
||||||
help
|
help
|
||||||
Select this option to acquire NAT64 address from dns servers.
|
Select this option to acquire NAT64 address from dns servers.
|
||||||
|
|
||||||
|
config OPENTHREAD_UART_BUFFER_SIZE
|
||||||
|
int "The uart received buffer size of openthread"
|
||||||
|
depends on OPENTHREAD_ENABLED
|
||||||
|
default 256
|
||||||
|
range 128 1024
|
||||||
|
help
|
||||||
|
Set the OpenThread UART buffer size.
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
|
@ -20,4 +20,4 @@
|
||||||
#define US_PER_S (MS_PER_S * US_PER_MS)
|
#define US_PER_S (MS_PER_S * US_PER_MS)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define ESP_OPENTHREAD_UART_BUFFER_SIZE (UART_FIFO_LEN * 2)
|
#define ESP_OPENTHREAD_UART_BUFFER_SIZE CONFIG_OPENTHREAD_UART_BUFFER_SIZE
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
.port = 1, \
|
.port = 1, \
|
||||||
.uart_config = \
|
.uart_config = \
|
||||||
{ \
|
{ \
|
||||||
.baud_rate = 115200, \
|
.baud_rate = 460800, \
|
||||||
.data_bits = UART_DATA_8_BITS, \
|
.data_bits = UART_DATA_8_BITS, \
|
||||||
.parity = UART_PARITY_DISABLE, \
|
.parity = UART_PARITY_DISABLE, \
|
||||||
.stop_bits = UART_STOP_BITS_1, \
|
.stop_bits = UART_STOP_BITS_1, \
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
.port = 0, \
|
.port = 0, \
|
||||||
.uart_config = \
|
.uart_config = \
|
||||||
{ \
|
{ \
|
||||||
.baud_rate = 115200, \
|
.baud_rate = 460800, \
|
||||||
.data_bits = UART_DATA_8_BITS, \
|
.data_bits = UART_DATA_8_BITS, \
|
||||||
.parity = UART_PARITY_DISABLE, \
|
.parity = UART_PARITY_DISABLE, \
|
||||||
.stop_bits = UART_STOP_BITS_1, \
|
.stop_bits = UART_STOP_BITS_1, \
|
||||||
|
|
Ładowanie…
Reference in New Issue