no edit summary
mNo edit summary |
No edit summary |
||
@todo: verify, extend
Take a look at <code>doc/rawapi.txt</code> for official information..
#if NO_SYS▼
/* Network interface variables */
IP4_ADDR(&ipaddr, 192,168,0,2);
IP4_ADDR(&netmask, 255,255,255,0);
/* The lwIP single-threaded core: initialize the network stack */ [http://www.nongnu.org/lwip/init_8c.html lwip_init](); #else /* lwIP in a multi-threaded system: initialize the network stack */ [http://www.nongnu.org/lwip/tcpip_8c.html#aa3df02b3de2b41fe4bf7b2194e5e8e0 tcpip_init](tcpip_init_done, tcpip_init_done_param); /* implicitly calls lwip_init(); start new thread calls tcpip_init_done(tcpip_init_done_param); when tcpip init done tcpip_init_done and tcpip_init_done_param are user-defined (may be NULL). */ /* todo: wait for tcpip_init_done() ? */ #endif
▲ #if NO_SYS
/* Bring up the network interface */
|