/** * \brief Initialize ethernet stask. */ void init_ethernet(void) { /* Initialize lwIP. */ /* Call tcpip_init for threaded lwIP mode. */ tcpip_init(NULL, NULL); /* Set hw and IP parameters, initialize MAC too */ ethernet_configure_interface(); }
/** * \brief Initialize the lwIP TCP/IP stack with the network interface driver. */ void init_ethernet(void) { /* Initialize lwIP. */ lwip_init(); /* Set hw and IP parameters, initialize MAC too. */ ethernet_configure_interface(); /* Initialize timer. */ sys_init_timing(); }
/** * \brief Create ethernet task, for ethernet management. */ void init_ethernet(void) { /** Initialize lwIP */ lwip_init(); /** Set hw and IP parameters, initialize MAC too */ ethernet_configure_interface(); #if defined(HTTP_RAW_USED) /** Bring up the web server */ http_init(); #endif }
/** * \brief Callback executed when the TCP/IP init is done. */ static void tcpip_init_done(void *arg) { sys_sem_t *sem; sem = (sys_sem_t *)arg; /* Set hw and IP parameters, initialize MAC too */ ethernet_configure_interface(); #if ( (LWIP_VERSION) == ((1U << 24) | (3U << 16) | (2U << 8) | (LWIP_VERSION_RC)) ) sys_sem_signal (*sem); /* Signal the waiting thread that the TCP/IP init is done. */ #else sys_sem_signal (sem); /* Signal the waiting thread that the TCP/IP init is done. */ #endif }
/** \brief Create ethernet task, for ethernet management. * */ void init_ethernet(const unsigned char ipAddress[], const unsigned char netMask[], const unsigned char gateWay[]) { /* Initialize lwIP */ lwip_init(); /* Set hw and IP parameters, initialize MAC too */ ethernet_configure_interface(ipAddress, netMask, gateWay); /* Init timer service */ sys_init_timing(); #if defined(HTTP_RAW_USED) /* Bring up the web server */ httpd_init(); #endif }
/** \brief Create ethernet task, for ethernet management. * */ void start_ethernet(const unsigned char ipAddress[], const unsigned char netMask[], const unsigned char gateWay[]) { /* Set hw and IP parameters, initialize MAC too */ ethernet_configure_interface(ipAddress, netMask, gateWay); }