mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-30 21:18:25 +00:00
Enable POSIX_FS on ESP32
This commit is contained in:
1 parent
c92bc4b4ac
commit
1d97f2e2b5
2 files changed
+19
-3
No files matched your search
+11
-3
@@ -145,6 +145,14 @@ extern "C" {
|
|||||||
|
|
||||||
#define MG_PATH_MAX 128
|
#define MG_PATH_MAX 128
|
||||||
|
|
||||||
|
#ifndef MG_ENABLE_POSIX_FS
|
||||||
|
#define MG_ENABLE_POSIX_FS 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef MG_ENABLE_DIRLIST
|
||||||
|
#define MG_ENABLE_DIRLIST 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -3565,18 +3573,18 @@ struct mg_tcpip_driver_xmc7_data {
|
|||||||
|
|
||||||
#define MG_TCPIP_DRIVER_INIT(mgr) \
|
#define MG_TCPIP_DRIVER_INIT(mgr) \
|
||||||
do { \
|
do { \
|
||||||
static struct mg_tcpip_driver_xmc7_data driver_data_; \
|
static struct mg_tcpip_driver_xmc7_data driver_data_; \
|
||||||
static struct mg_tcpip_if mif_; \
|
static struct mg_tcpip_if mif_; \
|
||||||
driver_data_.mdc_cr = MG_DRIVER_MDC_CR; \
|
driver_data_.mdc_cr = MG_DRIVER_MDC_CR; \
|
||||||
driver_data_.phy_addr = MG_TCPIP_PHY_ADDR; \
|
driver_data_.phy_addr = MG_TCPIP_PHY_ADDR; \
|
||||||
mif_.ip = MG_TCPIP_IP; \
|
mif_.ip = MG_TCPIP_IP; \
|
||||||
mif_.mask = MG_TCPIP_MASK; \
|
mif_.mask = MG_TCPIP_MASK; \
|
||||||
mif_.gw = MG_TCPIP_GW; \
|
mif_.gw = MG_TCPIP_GW; \
|
||||||
mif_.driver = &mg_tcpip_driver_xmc7; \
|
mif_.driver = &mg_tcpip_driver_xmc7; \
|
||||||
mif_.driver_data = &driver_data_; \
|
mif_.driver_data = &driver_data_; \
|
||||||
MG_SET_MAC_ADDRESS(mif_.mac); \
|
MG_SET_MAC_ADDRESS(mif_.mac); \
|
||||||
mg_tcpip_init(mgr, &mif_); \
|
mg_tcpip_init(mgr, &mif_); \
|
||||||
MG_INFO(("Driver: xmc7, MAC: %M", mg_print_mac, mif_.mac)); \
|
MG_INFO(("Driver: xmc7, MAC: %M", mg_print_mac, mif_.mac)); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -22,4 +22,12 @@
|
|||||||
|
|
||||||
#define MG_PATH_MAX 128
|
#define MG_PATH_MAX 128
|
||||||
|
|
||||||
|
#ifndef MG_ENABLE_POSIX_FS
|
||||||
|
#define MG_ENABLE_POSIX_FS 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef MG_ENABLE_DIRLIST
|
||||||
|
#define MG_ENABLE_DIRLIST 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
Reference in new issue
Block a user