-
Notifications
You must be signed in to change notification settings - Fork 1
/
sdkconfig.defaults
72 lines (69 loc) · 2.18 KB
/
sdkconfig.defaults
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Rust often needs a bit of an extra main task stack size compared to C (the default is 3K)
# CHANGED FROM 8K
CONFIG_ESP_MAIN_TASK_STACK_SIZE=4000
# MIN
CONFIG_FREERTOS_IDLE_TASK_STACKSIZE=768
CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y
CONFIG_BT_ENABLED=n
CONFIG_ESP32_REV_MIN=3
CONFIG_LWIP_MAX_SOCKETS=2
# FIXME vvv 9KiB RAM
#CONFIG_LWIP_IPV6=n # rust breaks
#CONFIG_MBEDTLS_SSL_PROTO_TLS1_2=n
CONFIG_MBEDTLS_SSL_PROTO_TLS1_3=n
CONFIG_MBEDTLS_CLIENT_SSL_SESSION_TICKETS=n
CONFIG_MBEDTLS_SERVER_SSL_SESSION_TICKETS=n
CONFIG_MBEDTLS_HARDWARE_SHA=n
CONFIG_MBEDTLS_HARDWARE_AES=n
CONFIG_MBEDTLS_HARDWARE_MPI=n
CONFIG_MBEDTLS_SSL_TLS_C=n
# Use this to set FreeRTOS kernel tick frequency to 1000 Hz (100 Hz by default).
# This allows to use 1 ms granuality for thread sleeps (10 ms by default).
CONFIG_FREERTOS_HZ=1000
# Workaround for https://github.com/espressif/esp-idf/issues/7631
#CONFIG_MBEDTLS_CERTIFICATE_BUNDLE=n
#CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_FULL=n
CONFIG_RTC_CLK_SRC_INT_8MD256=y
CONFIG_RTC_CLK_SRC_INT_RC=n
# _may_ make the clock more accure
## defaults to 32, needs CONFIG_LWIP_WND_SCALE to increase
#CONFIG_LWIP_TCPIP_RECVMBOX_SIZE=64
## default is 6
#CONFIG_TCP_RECVMBOX_SIZE=12
## 10kb ram
#CONFIG_ESP_WIFI_IRAM_OPT=y
## 5kb ram
#CONFIG_ESP_WIFI_EXTRA_IRAM_OPT=y
## 16kb ram
#CONFIG_ESP_WIFI_RX_IRAM_OPT=y
## 16kb ram
#CONFIG_LWIP_WND_SCALE=y
## 10kb ram
#CONFIG_LWIP_IRAM_OPTIMIZATION=y
## 17kb ram
#CONFIG_LWIP_EXTRA_IRAM_OPTIMIZATION=y
## defaults to 5760
CONFIG_LWIP_TCP_WND_DEFAULT=9000
# should be WND/1436 + 2
CONFIG_LWIP_TCP_RECVMBOX_SIZE=10
## defaults to 5760
#CONFIG_LWIP_TCP_RCV_SCALE=11520
#
## supposed to make select() on netif faster
#CONFIG_VFS_SUPPORT_SELECT=n
#
## untested, default 16
#CONFIG_ESP_WIFI_RX_BA_WIN=24
## untested, default 16
#CONFIG_ESP_WIFI_STATIC_RX_BUFFER_NUM=6
# defaults to 32, but may give random OOM
CONFIG_ESP_WIFI_DYNAMIC_RX_BUFFER_NUM=10
#CONFIG_ESP_WIFI_STATIC_RX_BUFFER_NUM=16
# TX is only for ACKs basically
CONFIG_ESP_WIFI_STATIC_TX_BUFFER_NUM=2
CONFIG_ESP_WIFI_DYNAMIC_TX_BUFFER_NUM=8
CONFIG_ESP_WIFI_CACHE_TX_BUFFER_NUM=16
# minimum = 2x MSS
CONFIG_TCP_SND_BUF_DEFAULT=2880
# twice static rx buffer - should not change default?
#CONFIG_ESP_WIFI_RX_BA_WIN=32