openthread: add the configurable option of uart buffer size

pull/10721/merge
xieqinan 2023-02-21 14:43:50 +08:00 zatwierdzone przez BOT
rodzic 778aeae99e
commit 1f664bb4f7
4 zmienionych plików z 11 dodań i 3 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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

Wyświetl plik

@ -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, \

Wyświetl plik

@ -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, \