@@ -2839,18 +2839,16 @@ typedef void (*mg_tcpip_event_handler_t)(struct mg_tcpip_if *ifp, int ev,
28392839 void *ev_data);
28402840
28412841enum {
2842- MG_TCPIP_EV_ST_CHG, // state change uint8_t * (&ifp->state)
2843- MG_TCPIP_EV_DHCP_DNS, // DHCP DNS assignment uint32_t *ipaddr
2844- MG_TCPIP_EV_DHCP_SNTP, // DHCP SNTP assignment uint32_t *ipaddr
2845- MG_TCPIP_EV_ARP, // Got ARP packet struct mg_str *
2846- MG_TCPIP_EV_TIMER_1S, // 1 second timer NULL
2847- MG_TCPIP_EV_WIFI_SCAN_RESULT, // Wi-Fi scan results struct
2848- // mg_wifi_scan_bss_data *
2849- MG_TCPIP_EV_WIFI_SCAN_END, // Wi-Fi scan has finished NULL
2850- MG_TCPIP_EV_WIFI_CONNECT_ERR, // Wi-Fi connect has failed driver and
2851- // chip specific
2852- MG_TCPIP_EV_DRIVER, // Driver event driver specific
2853- MG_TCPIP_EV_USER // Starting ID for user events
2842+ MG_TCPIP_EV_ST_CHG, // state change uint8_t * (&ifp->state)
2843+ MG_TCPIP_EV_DHCP_DNS, // DHCP DNS assignment uint32_t *ipaddr
2844+ MG_TCPIP_EV_DHCP_SNTP, // DHCP SNTP assignment uint32_t *ipaddr
2845+ MG_TCPIP_EV_ARP, // Got ARP packet struct mg_str *
2846+ MG_TCPIP_EV_TIMER_1S, // 1 second timer NULL
2847+ MG_TCPIP_EV_WIFI_SCAN_RESULT, // Wi-Fi scan results struct mg_wifi_scan_bss_data *
2848+ MG_TCPIP_EV_WIFI_SCAN_END, // Wi-Fi scan has finished NULL
2849+ MG_TCPIP_EV_WIFI_CONNECT_ERR, // Wi-Fi connect has failed driver and chip specific
2850+ MG_TCPIP_EV_DRIVER, // Driver event driver specific
2851+ MG_TCPIP_EV_USER // Starting ID for user events
28542852};
28552853
28562854// Network interface
@@ -3427,41 +3425,6 @@ struct mg_tcpip_driver_tms570_data {
34273425
34283426
34293427
3430- #if MG_ENABLE_TCPIP && defined(MG_ENABLE_DRIVER_XMC7) && MG_ENABLE_DRIVER_XMC7
3431-
3432- struct mg_tcpip_driver_xmc7_data {
3433- int mdc_cr; // Valid values: -1, 0, 1, 2, 3, 4, 5
3434- uint8_t phy_addr;
3435- };
3436-
3437- #ifndef MG_TCPIP_PHY_ADDR
3438- #define MG_TCPIP_PHY_ADDR 0
3439- #endif
3440-
3441- #ifndef MG_DRIVER_MDC_CR
3442- #define MG_DRIVER_MDC_CR 3
3443- #endif
3444-
3445- #define MG_TCPIP_DRIVER_INIT (mgr ) \
3446- do { \
3447- static struct mg_tcpip_driver_xmc7_data driver_data_; \
3448- static struct mg_tcpip_if mif_; \
3449- driver_data_.mdc_cr = MG_DRIVER_MDC_CR; \
3450- driver_data_.phy_addr = MG_TCPIP_PHY_ADDR; \
3451- mif_.ip = MG_TCPIP_IP; \
3452- mif_.mask = MG_TCPIP_MASK; \
3453- mif_.gw = MG_TCPIP_GW; \
3454- mif_.driver = &mg_tcpip_driver_xmc7; \
3455- mif_.driver_data = &driver_data_; \
3456- MG_SET_MAC_ADDRESS (mif_.mac ); \
3457- mg_tcpip_init (mgr, &mif_); \
3458- MG_INFO ((" Driver: xmc7, MAC: %M" , mg_print_mac, mif_.mac )); \
3459- } while (0 )
3460-
3461- #endif
3462-
3463-
3464-
34653428#if MG_ENABLE_TCPIP && defined(MG_ENABLE_DRIVER_XMC) && MG_ENABLE_DRIVER_XMC
34663429
34673430struct mg_tcpip_driver_xmc_data {
0 commit comments