File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,14 @@ extern "C" {
145
145
146
146
#define MG_PATH_MAX 128
147
147
148
+ #ifndef MG_ENABLE_POSIX_FS
149
+ #define MG_ENABLE_POSIX_FS 1
150
+ #endif
151
+
152
+ #ifndef MG_ENABLE_DIRLIST
153
+ #define MG_ENABLE_DIRLIST 1
154
+ #endif
155
+
148
156
#endif
149
157
150
158
@@ -3565,18 +3573,18 @@ struct mg_tcpip_driver_xmc7_data {
3565
3573
3566
3574
#define MG_TCPIP_DRIVER_INIT (mgr ) \
3567
3575
do { \
3568
- static struct mg_tcpip_driver_xmc7_data driver_data_; \
3576
+ static struct mg_tcpip_driver_xmc7_data driver_data_; \
3569
3577
static struct mg_tcpip_if mif_; \
3570
3578
driver_data_.mdc_cr = MG_DRIVER_MDC_CR; \
3571
3579
driver_data_.phy_addr = MG_TCPIP_PHY_ADDR; \
3572
3580
mif_.ip = MG_TCPIP_IP; \
3573
3581
mif_.mask = MG_TCPIP_MASK; \
3574
3582
mif_.gw = MG_TCPIP_GW; \
3575
- mif_.driver = &mg_tcpip_driver_xmc7; \
3583
+ mif_.driver = &mg_tcpip_driver_xmc7; \
3576
3584
mif_.driver_data = &driver_data_; \
3577
3585
MG_SET_MAC_ADDRESS (mif_.mac ); \
3578
3586
mg_tcpip_init (mgr, &mif_); \
3579
- MG_INFO ((" Driver: xmc7, MAC: %M" , mg_print_mac, mif_.mac )); \
3587
+ MG_INFO ((" Driver: xmc7, MAC: %M" , mg_print_mac, mif_.mac )); \
3580
3588
} while (0 )
3581
3589
3582
3590
#endif
Original file line number Diff line number Diff line change 22
22
23
23
#define MG_PATH_MAX 128
24
24
25
+ #ifndef MG_ENABLE_POSIX_FS
26
+ #define MG_ENABLE_POSIX_FS 1
27
+ #endif
28
+
29
+ #ifndef MG_ENABLE_DIRLIST
30
+ #define MG_ENABLE_DIRLIST 1
31
+ #endif
32
+
25
33
#endif
You can’t perform that action at this time.
0 commit comments