git.haldean.org wallbot / fb0d97c
first pass of ESP32 firmware haldean 3 years ago
7 changed file(s) with 696 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 #
1 # This is a project Makefile. It is assumed the directory this Makefile resides in is a
2 # project subdirectory.
3 #
4
5 PROJECT_NAME := firmware
6
7 include $(IDF_PATH)/make/project.mk
8
0 export PATH="$PATH:/home/haldean/esp/xtensa-esp32-elf/bin"
1 export IDF_PATH="/home/haldean/esp/esp-idf"
0 #
1 # "main" pseudo-component makefile.
2 #
3 # (Uses default behaviour of compiling all source files in directory, adding 'include' to include path.)
4
0 #include "esp_event.h"
1
2 char *
3 wb_get_event_name(system_event_t *event)
4 {
5 switch (event->event_id)
6 {
7 case SYSTEM_EVENT_WIFI_READY:
8 return "SYSTEM_EVENT_WIFI_READY";
9 case SYSTEM_EVENT_SCAN_DONE:
10 return "SYSTEM_EVENT_SCAN_DONE";
11 case SYSTEM_EVENT_STA_START:
12 return "SYSTEM_EVENT_STA_START";
13 case SYSTEM_EVENT_STA_STOP:
14 return "SYSTEM_EVENT_STA_STOP";
15 case SYSTEM_EVENT_STA_CONNECTED:
16 return "SYSTEM_EVENT_STA_CONNECTED";
17 case SYSTEM_EVENT_STA_DISCONNECTED:
18 return "SYSTEM_EVENT_STA_DISCONNECTED";
19 case SYSTEM_EVENT_STA_AUTHMODE_CHANGE:
20 return "SYSTEM_EVENT_STA_AUTHMODE_CHANGE";
21 case SYSTEM_EVENT_STA_GOT_IP:
22 return "SYSTEM_EVENT_STA_GOT_IP";
23 case SYSTEM_EVENT_STA_LOST_IP:
24 return "SYSTEM_EVENT_STA_LOST_IP";
25 case SYSTEM_EVENT_STA_WPS_ER_SUCCESS:
26 return "SYSTEM_EVENT_STA_WPS_ER_SUCCESS";
27 case SYSTEM_EVENT_STA_WPS_ER_FAILED:
28 return "SYSTEM_EVENT_STA_WPS_ER_FAILED";
29 case SYSTEM_EVENT_STA_WPS_ER_TIMEOUT:
30 return "SYSTEM_EVENT_STA_WPS_ER_TIMEOUT";
31 case SYSTEM_EVENT_STA_WPS_ER_PIN:
32 return "SYSTEM_EVENT_STA_WPS_ER_PIN";
33 case SYSTEM_EVENT_AP_START:
34 return "SYSTEM_EVENT_AP_START";
35 case SYSTEM_EVENT_AP_STOP:
36 return "SYSTEM_EVENT_AP_STOP";
37 case SYSTEM_EVENT_AP_STACONNECTED:
38 return "SYSTEM_EVENT_AP_STACONNECTED";
39 case SYSTEM_EVENT_AP_STADISCONNECTED:
40 return "SYSTEM_EVENT_AP_STADISCONNECTED";
41 case SYSTEM_EVENT_AP_PROBEREQRECVED:
42 return "SYSTEM_EVENT_AP_PROBEREQRECVED";
43 case SYSTEM_EVENT_GOT_IP6:
44 return "SYSTEM_EVENT_GOT_IP6";
45 case SYSTEM_EVENT_ETH_START:
46 return "SYSTEM_EVENT_ETH_START";
47 case SYSTEM_EVENT_ETH_STOP:
48 return "SYSTEM_EVENT_ETH_STOP";
49 case SYSTEM_EVENT_ETH_CONNECTED:
50 return "SYSTEM_EVENT_ETH_CONNECTED";
51 case SYSTEM_EVENT_ETH_DISCONNECTED:
52 return "SYSTEM_EVENT_ETH_DISCONNECTED";
53 case SYSTEM_EVENT_ETH_GOT_IP:
54 return "SYSTEM_EVENT_ETH_GOT_IP";
55 case SYSTEM_EVENT_MAX:
56 return "SYSTEM_EVENT_MAX";
57 default:
58 return "UNKNOWN_EVENT";
59 }
60 }
0 #include <stdio.h>
1 #include "freertos/FreeRTOS.h"
2 #include "freertos/task.h"
3 #include "esp_event_loop.h"
4 #include "esp_spi_flash.h"
5 #include "esp_system.h"
6 #include "esp_wifi.h"
7 #include "mdns.h"
8 #include "nvs_flash.h"
9
10 #include "event_names.h"
11
12 static wifi_config_t sta_config = {
13 .sta = {
14 .ssid = "Pizza Planet",
15 .password = "proper romp",
16 .bssid_set = 0,
17 }
18 };
19 static char *mdns_hostname = "rgcis";
20
21 void wb_dump_chip_info()
22 {
23 esp_chip_info_t chip_info;
24 esp_chip_info(&chip_info);
25 printf("This is ESP32 chip with %d CPU cores, WiFi%s%s, ",
26 chip_info.cores,
27 (chip_info.features & CHIP_FEATURE_BT) ? "/BT" : "",
28 (chip_info.features & CHIP_FEATURE_BLE) ? "/BLE" : "");
29
30 printf("silicon revision %d, ", chip_info.revision);
31 printf("%dMB %s flash\n",
32 spi_flash_get_chip_size() / (1024 * 1024),
33 (chip_info.features & CHIP_FEATURE_EMB_FLASH)
34 ? "embedded" : "external");
35 fflush(stdout);
36 }
37
38 esp_err_t wb_event_handler(void *ctx, system_event_t *event)
39 {
40 printf("received event %s\n", wb_get_event_name(event));
41
42 switch (event->event_id)
43 {
44 case SYSTEM_EVENT_STA_DISCONNECTED:
45 ESP_ERROR_CHECK(esp_wifi_connect());
46 break;
47 default:
48 break;
49 }
50
51 mdns_handle_system_event(ctx, event);
52 return ESP_OK;
53 }
54
55 void wb_start_wifi()
56 {
57 wifi_init_config_t init_config = WIFI_INIT_CONFIG_DEFAULT();
58 ESP_ERROR_CHECK(esp_wifi_init(&init_config));
59 ESP_ERROR_CHECK(esp_wifi_set_storage(WIFI_STORAGE_RAM));
60 ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_STA));
61 ESP_ERROR_CHECK(esp_wifi_set_config(WIFI_IF_STA, &sta_config));
62 ESP_ERROR_CHECK(esp_wifi_start());
63 ESP_ERROR_CHECK(esp_wifi_connect());
64 }
65
66 void wb_start_mdns()
67 {
68 ESP_ERROR_CHECK(mdns_init());
69 ESP_ERROR_CHECK(mdns_hostname_set(mdns_hostname));
70 ESP_ERROR_CHECK(mdns_service_add(
71 "RGICS control interface", "_http", "_tcp", 3141, NULL, 0));
72 }
73
74 void app_main()
75 {
76 printf("booting Radial Graphics Integrated Control System\n");
77 wb_dump_chip_info();
78
79 ESP_ERROR_CHECK(esp_event_loop_init(wb_event_handler, NULL));
80
81 nvs_flash_init();
82 tcpip_adapter_init();
83 wb_start_mdns();
84 wb_start_wifi();
85
86 for (;;) vTaskDelay(100 / portTICK_PERIOD_MS);
87 }
0 #
1 # Automatically generated file; DO NOT EDIT.
2 # Espressif IoT Development Framework Configuration
3 #
4
5 #
6 # SDK tool configuration
7 #
8 CONFIG_TOOLPREFIX="xtensa-esp32-elf-"
9 CONFIG_PYTHON="python2"
10 CONFIG_MAKE_WARN_UNDEFINED_VARIABLES=y
11
12 #
13 # Bootloader config
14 #
15 CONFIG_LOG_BOOTLOADER_LEVEL_NONE=
16 CONFIG_LOG_BOOTLOADER_LEVEL_ERROR=
17 CONFIG_LOG_BOOTLOADER_LEVEL_WARN=
18 CONFIG_LOG_BOOTLOADER_LEVEL_INFO=y
19 CONFIG_LOG_BOOTLOADER_LEVEL_DEBUG=
20 CONFIG_LOG_BOOTLOADER_LEVEL_VERBOSE=
21 CONFIG_LOG_BOOTLOADER_LEVEL=3
22 CONFIG_BOOTLOADER_VDDSDIO_BOOST=y
23
24 #
25 # Security features
26 #
27 CONFIG_SECURE_BOOT_ENABLED=
28 CONFIG_FLASH_ENCRYPTION_ENABLED=
29
30 #
31 # Serial flasher config
32 #
33 CONFIG_ESPTOOLPY_PORT="/dev/ttyUSB0"
34 CONFIG_ESPTOOLPY_BAUD_115200B=y
35 CONFIG_ESPTOOLPY_BAUD_230400B=
36 CONFIG_ESPTOOLPY_BAUD_921600B=
37 CONFIG_ESPTOOLPY_BAUD_2MB=
38 CONFIG_ESPTOOLPY_BAUD_OTHER=
39 CONFIG_ESPTOOLPY_BAUD_OTHER_VAL=115200
40 CONFIG_ESPTOOLPY_BAUD=115200
41 CONFIG_ESPTOOLPY_COMPRESSED=y
42 CONFIG_FLASHMODE_QIO=
43 CONFIG_FLASHMODE_QOUT=
44 CONFIG_FLASHMODE_DIO=y
45 CONFIG_FLASHMODE_DOUT=
46 CONFIG_ESPTOOLPY_FLASHMODE="dio"
47 CONFIG_ESPTOOLPY_FLASHFREQ_80M=
48 CONFIG_ESPTOOLPY_FLASHFREQ_40M=y
49 CONFIG_ESPTOOLPY_FLASHFREQ_26M=
50 CONFIG_ESPTOOLPY_FLASHFREQ_20M=
51 CONFIG_ESPTOOLPY_FLASHFREQ="40m"
52 CONFIG_ESPTOOLPY_FLASHSIZE_1MB=
53 CONFIG_ESPTOOLPY_FLASHSIZE_2MB=y
54 CONFIG_ESPTOOLPY_FLASHSIZE_4MB=
55 CONFIG_ESPTOOLPY_FLASHSIZE_8MB=
56 CONFIG_ESPTOOLPY_FLASHSIZE_16MB=
57 CONFIG_ESPTOOLPY_FLASHSIZE="2MB"
58 CONFIG_ESPTOOLPY_FLASHSIZE_DETECT=y
59 CONFIG_ESPTOOLPY_BEFORE_RESET=y
60 CONFIG_ESPTOOLPY_BEFORE_NORESET=
61 CONFIG_ESPTOOLPY_BEFORE="default_reset"
62 CONFIG_ESPTOOLPY_AFTER_RESET=y
63 CONFIG_ESPTOOLPY_AFTER_NORESET=
64 CONFIG_ESPTOOLPY_AFTER="hard_reset"
65 CONFIG_MONITOR_BAUD_9600B=
66 CONFIG_MONITOR_BAUD_57600B=
67 CONFIG_MONITOR_BAUD_115200B=y
68 CONFIG_MONITOR_BAUD_230400B=
69 CONFIG_MONITOR_BAUD_921600B=
70 CONFIG_MONITOR_BAUD_2MB=
71 CONFIG_MONITOR_BAUD_OTHER=
72 CONFIG_MONITOR_BAUD_OTHER_VAL=115200
73 CONFIG_MONITOR_BAUD=115200
74
75 #
76 # Partition Table
77 #
78 CONFIG_PARTITION_TABLE_SINGLE_APP=y
79 CONFIG_PARTITION_TABLE_TWO_OTA=
80 CONFIG_PARTITION_TABLE_CUSTOM=
81 CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
82 CONFIG_PARTITION_TABLE_CUSTOM_APP_BIN_OFFSET=0x10000
83 CONFIG_PARTITION_TABLE_FILENAME="partitions_singleapp.csv"
84 CONFIG_APP_OFFSET=0x10000
85
86 #
87 # Compiler options
88 #
89 CONFIG_OPTIMIZATION_LEVEL_DEBUG=y
90 CONFIG_OPTIMIZATION_LEVEL_RELEASE=
91 CONFIG_OPTIMIZATION_ASSERTIONS_ENABLED=y
92 CONFIG_OPTIMIZATION_ASSERTIONS_SILENT=
93 CONFIG_OPTIMIZATION_ASSERTIONS_DISABLED=
94 CONFIG_CXX_EXCEPTIONS=
95 CONFIG_STACK_CHECK_NONE=y
96 CONFIG_STACK_CHECK_NORM=
97 CONFIG_STACK_CHECK_STRONG=
98 CONFIG_STACK_CHECK_ALL=
99 CONFIG_STACK_CHECK=
100
101 #
102 # Component config
103 #
104
105 #
106 # Application Level Tracing
107 #
108 CONFIG_ESP32_APPTRACE_DEST_TRAX=
109 CONFIG_ESP32_APPTRACE_DEST_NONE=y
110 CONFIG_ESP32_APPTRACE_ENABLE=
111 CONFIG_ESP32_APPTRACE_LOCK_ENABLE=y
112
113 #
114 # FreeRTOS SystemView Tracing
115 #
116 CONFIG_AWS_IOT_SDK=
117
118 #
119 # Bluetooth
120 #
121 CONFIG_BT_ENABLED=
122 CONFIG_BTDM_CONTROLLER_PINNED_TO_CORE=0
123 CONFIG_BT_RESERVE_DRAM=0
124
125 #
126 # ESP32-specific
127 #
128 CONFIG_ESP32_DEFAULT_CPU_FREQ_80=
129 CONFIG_ESP32_DEFAULT_CPU_FREQ_160=y
130 CONFIG_ESP32_DEFAULT_CPU_FREQ_240=
131 CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ=160
132 CONFIG_MEMMAP_SMP=y
133 CONFIG_SPIRAM_SUPPORT=
134 CONFIG_MEMMAP_TRACEMEM=
135 CONFIG_MEMMAP_TRACEMEM_TWOBANKS=
136 CONFIG_ESP32_TRAX=
137 CONFIG_TRACEMEM_RESERVE_DRAM=0x0
138 CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH=
139 CONFIG_ESP32_ENABLE_COREDUMP_TO_UART=
140 CONFIG_ESP32_ENABLE_COREDUMP_TO_NONE=y
141 CONFIG_ESP32_ENABLE_COREDUMP=
142 CONFIG_TWO_UNIVERSAL_MAC_ADDRESS=
143 CONFIG_FOUR_UNIVERSAL_MAC_ADDRESS=y
144 CONFIG_NUMBER_OF_UNIVERSAL_MAC_ADDRESS=4
145 CONFIG_SYSTEM_EVENT_QUEUE_SIZE=32
146 CONFIG_SYSTEM_EVENT_TASK_STACK_SIZE=2048
147 CONFIG_MAIN_TASK_STACK_SIZE=3584
148 CONFIG_IPC_TASK_STACK_SIZE=1024
149 CONFIG_TIMER_TASK_STACK_SIZE=3584
150 CONFIG_NEWLIB_STDOUT_LINE_ENDING_CRLF=y
151 CONFIG_NEWLIB_STDOUT_LINE_ENDING_LF=
152 CONFIG_NEWLIB_STDOUT_LINE_ENDING_CR=
153 CONFIG_NEWLIB_STDIN_LINE_ENDING_CRLF=
154 CONFIG_NEWLIB_STDIN_LINE_ENDING_LF=
155 CONFIG_NEWLIB_STDIN_LINE_ENDING_CR=y
156 CONFIG_NEWLIB_NANO_FORMAT=
157 CONFIG_CONSOLE_UART_DEFAULT=y
158 CONFIG_CONSOLE_UART_CUSTOM=
159 CONFIG_CONSOLE_UART_NONE=
160 CONFIG_CONSOLE_UART_NUM=0
161 CONFIG_CONSOLE_UART_BAUDRATE=115200
162 CONFIG_ULP_COPROC_ENABLED=
163 CONFIG_ULP_COPROC_RESERVE_MEM=0
164 CONFIG_ESP32_PANIC_PRINT_HALT=
165 CONFIG_ESP32_PANIC_PRINT_REBOOT=y
166 CONFIG_ESP32_PANIC_SILENT_REBOOT=
167 CONFIG_ESP32_PANIC_GDBSTUB=
168 CONFIG_ESP32_DEBUG_OCDAWARE=y
169 CONFIG_INT_WDT=y
170 CONFIG_INT_WDT_TIMEOUT_MS=300
171 CONFIG_INT_WDT_CHECK_CPU1=y
172 CONFIG_TASK_WDT=y
173 CONFIG_TASK_WDT_PANIC=
174 CONFIG_TASK_WDT_TIMEOUT_S=5
175 CONFIG_TASK_WDT_CHECK_IDLE_TASK_CPU0=y
176 CONFIG_TASK_WDT_CHECK_IDLE_TASK_CPU1=y
177 CONFIG_BROWNOUT_DET=y
178 CONFIG_BROWNOUT_DET_LVL_SEL_0=y
179 CONFIG_BROWNOUT_DET_LVL_SEL_1=
180 CONFIG_BROWNOUT_DET_LVL_SEL_2=
181 CONFIG_BROWNOUT_DET_LVL_SEL_3=
182 CONFIG_BROWNOUT_DET_LVL_SEL_4=
183 CONFIG_BROWNOUT_DET_LVL_SEL_5=
184 CONFIG_BROWNOUT_DET_LVL_SEL_6=
185 CONFIG_BROWNOUT_DET_LVL_SEL_7=
186 CONFIG_BROWNOUT_DET_LVL=0
187 CONFIG_ESP32_TIME_SYSCALL_USE_RTC_FRC1=y
188 CONFIG_ESP32_TIME_SYSCALL_USE_RTC=
189 CONFIG_ESP32_TIME_SYSCALL_USE_FRC1=
190 CONFIG_ESP32_TIME_SYSCALL_USE_NONE=
191 CONFIG_ESP32_RTC_CLOCK_SOURCE_INTERNAL_RC=y
192 CONFIG_ESP32_RTC_CLOCK_SOURCE_EXTERNAL_CRYSTAL=
193 CONFIG_ESP32_RTC_CLK_CAL_CYCLES=1024
194 CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=2000
195 CONFIG_ESP32_XTAL_FREQ_40=y
196 CONFIG_ESP32_XTAL_FREQ_26=
197 CONFIG_ESP32_XTAL_FREQ_AUTO=
198 CONFIG_ESP32_XTAL_FREQ=40
199 CONFIG_DISABLE_BASIC_ROM_CONSOLE=
200 CONFIG_NO_BLOBS=
201 CONFIG_ESP_TIMER_PROFILING=
202 CONFIG_COMPATIBLE_PRE_V2_1_BOOTLOADERS=
203
204 #
205 # Wi-Fi
206 #
207 CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM=10
208 CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM=32
209 CONFIG_ESP32_WIFI_STATIC_TX_BUFFER=
210 CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER=y
211 CONFIG_ESP32_WIFI_TX_BUFFER_TYPE=1
212 CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER_NUM=32
213 CONFIG_ESP32_WIFI_AMPDU_TX_ENABLED=y
214 CONFIG_ESP32_WIFI_TX_BA_WIN=6
215 CONFIG_ESP32_WIFI_AMPDU_RX_ENABLED=y
216 CONFIG_ESP32_WIFI_RX_BA_WIN=6
217 CONFIG_ESP32_WIFI_NVS_ENABLED=y
218
219 #
220 # PHY
221 #
222 CONFIG_ESP32_PHY_CALIBRATION_AND_DATA_STORAGE=y
223 CONFIG_ESP32_PHY_INIT_DATA_IN_PARTITION=
224 CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER=20
225 CONFIG_ESP32_PHY_MAX_TX_POWER=20
226
227 #
228 # Power Management
229 #
230 CONFIG_PM_ENABLE=
231
232 #
233 # Ethernet
234 #
235 CONFIG_DMA_RX_BUF_NUM=10
236 CONFIG_DMA_TX_BUF_NUM=10
237 CONFIG_EMAC_L2_TO_L3_RX_BUF_MODE=
238 CONFIG_EMAC_TASK_PRIORITY=20
239
240 #
241 # FAT Filesystem support
242 #
243 CONFIG_FATFS_CODEPAGE_DYNAMIC=
244 CONFIG_FATFS_CODEPAGE_437=y
245 CONFIG_FATFS_CODEPAGE_720=
246 CONFIG_FATFS_CODEPAGE_737=
247 CONFIG_FATFS_CODEPAGE_771=
248 CONFIG_FATFS_CODEPAGE_775=
249 CONFIG_FATFS_CODEPAGE_850=
250 CONFIG_FATFS_CODEPAGE_852=
251 CONFIG_FATFS_CODEPAGE_855=
252 CONFIG_FATFS_CODEPAGE_857=
253 CONFIG_FATFS_CODEPAGE_860=
254 CONFIG_FATFS_CODEPAGE_861=
255 CONFIG_FATFS_CODEPAGE_862=
256 CONFIG_FATFS_CODEPAGE_863=
257 CONFIG_FATFS_CODEPAGE_864=
258 CONFIG_FATFS_CODEPAGE_865=
259 CONFIG_FATFS_CODEPAGE_866=
260 CONFIG_FATFS_CODEPAGE_869=
261 CONFIG_FATFS_CODEPAGE_932=
262 CONFIG_FATFS_CODEPAGE_936=
263 CONFIG_FATFS_CODEPAGE_949=
264 CONFIG_FATFS_CODEPAGE_950=
265 CONFIG_FATFS_CODEPAGE=437
266 CONFIG_FATFS_LFN_NONE=y
267 CONFIG_FATFS_LFN_HEAP=
268 CONFIG_FATFS_LFN_STACK=
269 CONFIG_FATFS_FS_LOCK=0
270 CONFIG_FATFS_TIMEOUT_MS=10000
271 CONFIG_FATFS_PER_FILE_CACHE=y
272
273 #
274 # FreeRTOS
275 #
276 CONFIG_FREERTOS_UNICORE=
277 CONFIG_FREERTOS_CORETIMER_0=y
278 CONFIG_FREERTOS_CORETIMER_1=
279 CONFIG_FREERTOS_HZ=100
280 CONFIG_FREERTOS_ASSERT_ON_UNTESTED_FUNCTION=y
281 CONFIG_FREERTOS_CHECK_STACKOVERFLOW_NONE=
282 CONFIG_FREERTOS_CHECK_STACKOVERFLOW_PTRVAL=
283 CONFIG_FREERTOS_CHECK_STACKOVERFLOW_CANARY=y
284 CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK=
285 CONFIG_FREERTOS_INTERRUPT_BACKTRACE=y
286 CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS=1
287 CONFIG_FREERTOS_ASSERT_FAIL_ABORT=y
288 CONFIG_FREERTOS_ASSERT_FAIL_PRINT_CONTINUE=
289 CONFIG_FREERTOS_ASSERT_DISABLE=
290 CONFIG_FREERTOS_IDLE_TASK_STACKSIZE=1024
291 CONFIG_FREERTOS_ISR_STACKSIZE=1536
292 CONFIG_FREERTOS_LEGACY_HOOKS=
293 CONFIG_FREERTOS_MAX_TASK_NAME_LEN=16
294 CONFIG_SUPPORT_STATIC_ALLOCATION=
295 CONFIG_TIMER_TASK_PRIORITY=1
296 CONFIG_TIMER_TASK_STACK_DEPTH=2048
297 CONFIG_TIMER_QUEUE_LENGTH=10
298 CONFIG_FREERTOS_QUEUE_REGISTRY_SIZE=0
299 CONFIG_FREERTOS_USE_TRACE_FACILITY=
300 CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=
301 CONFIG_FREERTOS_DEBUG_INTERNALS=
302
303 #
304 # Heap memory debugging
305 #
306 CONFIG_HEAP_POISONING_DISABLED=y
307 CONFIG_HEAP_POISONING_LIGHT=
308 CONFIG_HEAP_POISONING_COMPREHENSIVE=
309 CONFIG_HEAP_TRACING=
310
311 #
312 # libsodium
313 #
314 CONFIG_LIBSODIUM_USE_MBEDTLS_SHA=y
315
316 #
317 # Log output
318 #
319 CONFIG_LOG_DEFAULT_LEVEL_NONE=
320 CONFIG_LOG_DEFAULT_LEVEL_ERROR=
321 CONFIG_LOG_DEFAULT_LEVEL_WARN=
322 CONFIG_LOG_DEFAULT_LEVEL_INFO=y
323 CONFIG_LOG_DEFAULT_LEVEL_DEBUG=
324 CONFIG_LOG_DEFAULT_LEVEL_VERBOSE=
325 CONFIG_LOG_DEFAULT_LEVEL=3
326 CONFIG_LOG_COLORS=y
327
328 #
329 # LWIP
330 #
331 CONFIG_L2_TO_L3_COPY=
332 CONFIG_LWIP_MAX_SOCKETS=10
333 CONFIG_LWIP_SO_REUSE=y
334 CONFIG_LWIP_SO_REUSE_RXTOALL=y
335 CONFIG_LWIP_SO_RCVBUF=
336 CONFIG_LWIP_DHCP_MAX_NTP_SERVERS=1
337 CONFIG_LWIP_IP_FRAG=
338 CONFIG_LWIP_IP_REASSEMBLY=
339 CONFIG_LWIP_STATS=
340 CONFIG_LWIP_ETHARP_TRUST_IP_MAC=y
341 CONFIG_TCPIP_RECVMBOX_SIZE=32
342 CONFIG_LWIP_DHCP_DOES_ARP_CHECK=y
343
344 #
345 # DHCP server
346 #
347 CONFIG_LWIP_DHCPS_LEASE_UNIT=60
348 CONFIG_LWIP_DHCPS_MAX_STATION_NUM=8
349 CONFIG_LWIP_AUTOIP=
350 CONFIG_LWIP_NETIF_LOOPBACK=y
351 CONFIG_LWIP_LOOPBACK_MAX_PBUFS=8
352
353 #
354 # TCP
355 #
356 CONFIG_LWIP_MAX_ACTIVE_TCP=16
357 CONFIG_LWIP_MAX_LISTENING_TCP=16
358 CONFIG_TCP_MAXRTX=12
359 CONFIG_TCP_SYNMAXRTX=6
360 CONFIG_TCP_MSS=1436
361 CONFIG_TCP_MSL=60000
362 CONFIG_TCP_SND_BUF_DEFAULT=5744
363 CONFIG_TCP_WND_DEFAULT=5744
364 CONFIG_TCP_RECVMBOX_SIZE=6
365 CONFIG_TCP_QUEUE_OOSEQ=y
366 CONFIG_TCP_OVERSIZE_MSS=y
367 CONFIG_TCP_OVERSIZE_QUARTER_MSS=
368 CONFIG_TCP_OVERSIZE_DISABLE=
369
370 #
371 # UDP
372 #
373 CONFIG_LWIP_MAX_UDP_PCBS=16
374 CONFIG_UDP_RECVMBOX_SIZE=6
375 CONFIG_TCPIP_TASK_STACK_SIZE=2048
376 CONFIG_PPP_SUPPORT=
377
378 #
379 # ICMP
380 #
381 CONFIG_LWIP_MULTICAST_PING=
382 CONFIG_LWIP_BROADCAST_PING=
383
384 #
385 # LWIP RAW API
386 #
387 CONFIG_LWIP_MAX_RAW_PCBS=16
388
389 #
390 # mbedTLS
391 #
392 CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN=16384
393 CONFIG_MBEDTLS_DEBUG=
394 CONFIG_MBEDTLS_HARDWARE_AES=y
395 CONFIG_MBEDTLS_HARDWARE_MPI=
396 CONFIG_MBEDTLS_HARDWARE_SHA=
397 CONFIG_MBEDTLS_HAVE_TIME=y
398 CONFIG_MBEDTLS_HAVE_TIME_DATE=
399 CONFIG_MBEDTLS_TLS_SERVER_AND_CLIENT=y
400 CONFIG_MBEDTLS_TLS_SERVER_ONLY=
401 CONFIG_MBEDTLS_TLS_CLIENT_ONLY=
402 CONFIG_MBEDTLS_TLS_DISABLED=
403 CONFIG_MBEDTLS_TLS_SERVER=y
404 CONFIG_MBEDTLS_TLS_CLIENT=y
405 CONFIG_MBEDTLS_TLS_ENABLED=y
406
407 #
408 # TLS Key Exchange Methods
409 #
410 CONFIG_MBEDTLS_PSK_MODES=
411 CONFIG_MBEDTLS_KEY_EXCHANGE_RSA=y
412 CONFIG_MBEDTLS_KEY_EXCHANGE_DHE_RSA=y
413 CONFIG_MBEDTLS_KEY_EXCHANGE_ELLIPTIC_CURVE=y
414 CONFIG_MBEDTLS_KEY_EXCHANGE_ECDHE_RSA=y
415 CONFIG_MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA=y
416 CONFIG_MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA=y
417 CONFIG_MBEDTLS_KEY_EXCHANGE_ECDH_RSA=y
418 CONFIG_MBEDTLS_SSL_RENEGOTIATION=y
419 CONFIG_MBEDTLS_SSL_PROTO_SSL3=
420 CONFIG_MBEDTLS_SSL_PROTO_TLS1=y
421 CONFIG_MBEDTLS_SSL_PROTO_TLS1_1=y
422 CONFIG_MBEDTLS_SSL_PROTO_TLS1_2=y
423 CONFIG_MBEDTLS_SSL_PROTO_DTLS=
424 CONFIG_MBEDTLS_SSL_ALPN=y
425 CONFIG_MBEDTLS_SSL_SESSION_TICKETS=y
426
427 #
428 # Symmetric Ciphers
429 #
430 CONFIG_MBEDTLS_AES_C=y
431 CONFIG_MBEDTLS_CAMELLIA_C=
432 CONFIG_MBEDTLS_DES_C=
433 CONFIG_MBEDTLS_RC4_DISABLED=y
434 CONFIG_MBEDTLS_RC4_ENABLED_NO_DEFAULT=
435 CONFIG_MBEDTLS_RC4_ENABLED=
436 CONFIG_MBEDTLS_BLOWFISH_C=
437 CONFIG_MBEDTLS_XTEA_C=
438 CONFIG_MBEDTLS_CCM_C=y
439 CONFIG_MBEDTLS_GCM_C=y
440 CONFIG_MBEDTLS_RIPEMD160_C=
441
442 #
443 # Certificates
444 #
445 CONFIG_MBEDTLS_PEM_PARSE_C=y
446 CONFIG_MBEDTLS_PEM_WRITE_C=y
447 CONFIG_MBEDTLS_X509_CRL_PARSE_C=y
448 CONFIG_MBEDTLS_X509_CSR_PARSE_C=y
449 CONFIG_MBEDTLS_ECP_C=y
450 CONFIG_MBEDTLS_ECDH_C=y
451 CONFIG_MBEDTLS_ECDSA_C=y
452 CONFIG_MBEDTLS_ECP_DP_SECP192R1_ENABLED=y
453 CONFIG_MBEDTLS_ECP_DP_SECP224R1_ENABLED=y
454 CONFIG_MBEDTLS_ECP_DP_SECP256R1_ENABLED=y
455 CONFIG_MBEDTLS_ECP_DP_SECP384R1_ENABLED=y
456 CONFIG_MBEDTLS_ECP_DP_SECP521R1_ENABLED=y
457 CONFIG_MBEDTLS_ECP_DP_SECP192K1_ENABLED=y
458 CONFIG_MBEDTLS_ECP_DP_SECP224K1_ENABLED=y
459 CONFIG_MBEDTLS_ECP_DP_SECP256K1_ENABLED=y
460 CONFIG_MBEDTLS_ECP_DP_BP256R1_ENABLED=y
461 CONFIG_MBEDTLS_ECP_DP_BP384R1_ENABLED=y
462 CONFIG_MBEDTLS_ECP_DP_BP512R1_ENABLED=y
463 CONFIG_MBEDTLS_ECP_DP_CURVE25519_ENABLED=y
464 CONFIG_MBEDTLS_ECP_NIST_OPTIM=y
465
466 #
467 # OpenSSL
468 #
469 CONFIG_OPENSSL_DEBUG=
470 CONFIG_OPENSSL_ASSERT_DO_NOTHING=y
471 CONFIG_OPENSSL_ASSERT_EXIT=
472
473 #
474 # PThreads
475 #
476 CONFIG_ESP32_PTHREAD_TASK_PRIO_DEFAULT=5
477 CONFIG_ESP32_PTHREAD_TASK_STACK_SIZE_DEFAULT=3072
478
479 #
480 # SPI Flash driver
481 #
482 CONFIG_SPI_FLASH_VERIFY_WRITE=
483 CONFIG_SPI_FLASH_ENABLE_COUNTERS=
484 CONFIG_SPI_FLASH_ROM_DRIVER_PATCH=y
485 CONFIG_SPI_FLASH_WRITING_DANGEROUS_REGIONS_ABORTS=y
486 CONFIG_SPI_FLASH_WRITING_DANGEROUS_REGIONS_FAILS=
487 CONFIG_SPI_FLASH_WRITING_DANGEROUS_REGIONS_ALLOWED=
488
489 #
490 # SPIFFS Configuration
491 #
492 CONFIG_SPIFFS_MAX_PARTITIONS=3
493
494 #
495 # SPIFFS Cache Configuration
496 #
497 CONFIG_SPIFFS_CACHE=y
498 CONFIG_SPIFFS_CACHE_WR=y
499 CONFIG_SPIFFS_CACHE_STATS=
500 CONFIG_SPIFFS_PAGE_CHECK=y
501 CONFIG_SPIFFS_GC_MAX_RUNS=10
502 CONFIG_SPIFFS_GC_STATS=
503 CONFIG_SPIFFS_OBJ_NAME_LEN=32
504 CONFIG_SPIFFS_USE_MAGIC=y
505 CONFIG_SPIFFS_USE_MAGIC_LENGTH=y
506 CONFIG_SPIFFS_META_LENGTH=4
507 CONFIG_SPIFFS_USE_MTIME=y
508
509 #
510 # Debug Configuration
511 #
512 CONFIG_SPIFFS_DBG=
513 CONFIG_SPIFFS_API_DBG=
514 CONFIG_SPIFFS_GC_DBG=
515 CONFIG_SPIFFS_CACHE_DBG=
516 CONFIG_SPIFFS_CHECK_DBG=
517 CONFIG_SPIFFS_TEST_VISUALISATION=
518
519 #
520 # tcpip adapter
521 #
522 CONFIG_IP_LOST_TIMER_INTERVAL=120
523
524 #
525 # Wear Levelling
526 #
527 CONFIG_WL_SECTOR_SIZE_512=
528 CONFIG_WL_SECTOR_SIZE_4096=y
529 CONFIG_WL_SECTOR_SIZE=4096