chore: httpd

This commit is contained in:
2025-11-08 00:39:15 +06:00
parent 90e8a20a8b
commit 686bccd0ce
7 changed files with 166 additions and 18 deletions

View File

@@ -6,7 +6,7 @@
// #define UDP_DEBUG LWIP_DBG_ON
// #define IP_DEBUG LWIP_DBG_ON
#define DHCP_DEBUG LWIP_DBG_ON
// #define DHCP_DEBUG LWIP_DBG_ON
#define NETIF_DEBUG LWIP_DBG_ON
// #define ETHARP_DEBUG LWIP_DBG_ON
@@ -17,7 +17,7 @@
// Memory options
#define MEM_ALIGNMENT 4
#define MEM_SIZE (4 * 1024) // 4KB of RAM for lwIP heap
#define MEM_SIZE (10 * 1024) // 4KB of RAM for lwIP heap
// Pbuf options
#define PBUF_POOL_SIZE 8
@@ -52,6 +52,14 @@
// Statistics
#define LWIP_STATS 0
#define LWIP_HTTPD 1
// Use a read-only filesystem populated by makefsdata
// #define HTTPD_FSDATA_FILE "fsdata_custom.c"
#define LWIP_HTTPD_FS_SUPPORT 1
#define HTTPD_USE_CUSTOM_FSDATA 1
#define LWIP_NETIF_HOSTNAME 1
// #define LWIP_NETIF_LINK_CALLBACK 1
#define LWIP_NETIF_STATUS_CALLBACK 1
#endif /* __LWIPOPTS_H__ */