mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-25 20:28:27 +00:00
Update the rest of the drivers
This commit is contained in:
1 parent
93f2939655
commit
5e7edde7e5
19 files changed
+404
-100
No files matched your search
+8
-2
@@ -28,7 +28,9 @@ struct mg_tcpip_driver_xmc_data {
|
||||
#define MG_DRIVER_MDC_CR 4
|
||||
#endif
|
||||
|
||||
#define MG_TCPIP_DRIVER_INIT(mgr) \
|
||||
extern struct mg_tcpip_driver mg_tcpip_driver_xmc;
|
||||
|
||||
#define MG_TCPIP_DRIVER_XMC_INIT(mgr) \
|
||||
do { \
|
||||
static struct mg_tcpip_driver_xmc_data driver_data_; \
|
||||
static struct mg_tcpip_if mif_; \
|
||||
@@ -40,8 +42,12 @@ struct mg_tcpip_driver_xmc_data {
|
||||
mif_.driver = &mg_tcpip_driver_xmc; \
|
||||
mif_.driver_data = &driver_data_; \
|
||||
MG_SET_MAC_ADDRESS(mif_.mac); \
|
||||
mg_tcpip_init(mgr, &mif_); \
|
||||
mg_tcpip_init((mgr), &mif_); \
|
||||
MG_INFO(("Driver: xmc, MAC: %M", mg_print_mac, mif_.mac)); \
|
||||
} while (0)
|
||||
|
||||
#ifndef MG_TCPIP_DRIVER_INIT
|
||||
#define MG_TCPIP_DRIVER_INIT(x) MG_TCPIP_DRIVER_XMC_INIT(x)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user