Prusa MINI Firmware overview
init.h File Reference
#include "lwip/opt.h"

Go to the source code of this file.

Macros

#define LWIP_VERSION_MAJOR   2
 
#define LWIP_VERSION_MINOR   0
 
#define LWIP_VERSION_REVISION   3
 
#define LWIP_VERSION_RC   LWIP_RC_RELEASE
 
#define LWIP_RC_RELEASE   255
 
#define LWIP_RC_DEVELOPMENT   0
 
#define LWIP_VERSION_IS_RELEASE   (LWIP_VERSION_RC == LWIP_RC_RELEASE)
 
#define LWIP_VERSION_IS_DEVELOPMENT   (LWIP_VERSION_RC == LWIP_RC_DEVELOPMENT)
 
#define LWIP_VERSION_IS_RC   ((LWIP_VERSION_RC != LWIP_RC_RELEASE) && (LWIP_VERSION_RC != LWIP_RC_DEVELOPMENT))
 
#define LWIP_VERSTR2(x)   #x
 
#define LWIP_VERSTR(x)   LWIP_VERSTR2(x)
 
#define LWIP_VERSION_STRING_SUFFIX   ""
 
#define LWIP_VERSION
 
#define LWIP_VERSION_STRING   LWIP_VERSTR(LWIP_VERSION_MAJOR) "." LWIP_VERSTR(LWIP_VERSION_MINOR) "." LWIP_VERSTR(LWIP_VERSION_REVISION) LWIP_VERSION_STRING_SUFFIX
 

Functions

void lwip_init (void)
 

Detailed Description

lwIP initialization API

Function Documentation

◆ lwip_init()

void lwip_init ( void  )

Initialize all modules. Use this in NO_SYS mode. Use tcpip_init() otherwise.

338 {
339 #ifndef LWIP_SKIP_CONST_CHECK
340  int a = 0;
342  LWIP_ASSERT("LWIP_CONST_CAST not implemented correctly. Check your lwIP port.", LWIP_CONST_CAST(void*, &a) == &a);
343 #endif
344 #ifndef LWIP_SKIP_PACKING_CHECK
345  LWIP_ASSERT("Struct packing not implemented correctly. Check your lwIP port.", sizeof(struct packed_struct_test) == PACKED_STRUCT_TEST_EXPECTED_SIZE);
346 #endif
347 
348  /* Modules initialization */
349  stats_init();
350 #if !NO_SYS
351  sys_init();
352 #endif /* !NO_SYS */
353  mem_init();
354  memp_init();
355  pbuf_init();
356  netif_init();
357 #if LWIP_IPV4
358  ip_init();
359 #if LWIP_ARP
360  etharp_init();
361 #endif /* LWIP_ARP */
362 #endif /* LWIP_IPV4 */
363 #if LWIP_RAW
364  raw_init();
365 #endif /* LWIP_RAW */
366 #if LWIP_UDP
367  udp_init();
368 #endif /* LWIP_UDP */
369 #if LWIP_TCP
370  tcp_init();
371 #endif /* LWIP_TCP */
372 #if LWIP_IGMP
373  igmp_init();
374 #endif /* LWIP_IGMP */
375 #if LWIP_DNS
376  dns_init();
377 #endif /* LWIP_DNS */
378 #if PPP_SUPPORT
379  ppp_init();
380 #endif
381 
382 #if LWIP_TIMERS
383  sys_timeouts_init();
384 #endif /* LWIP_TIMERS */
385 }
Here is the call graph for this function:
Here is the caller graph for this function:
LWIP_ASSERT
#define LWIP_ASSERT(message, assertion)
Definition: debug.h:116
memp_init
void memp_init(void)
Definition: memp.c:271
mem_init
void mem_init(void)
Definition: mem.c:382
packed_struct_test
Definition: init.c:70
LWIP_UNUSED_ARG
#define LWIP_UNUSED_ARG(x)
Definition: arch.h:308
sys_init
void sys_init(void)
Definition: sys_arch.c:309
netif_init
void netif_init(void)
Definition: netif.c:163
createSpeedLookupTable.a
list a
Definition: createSpeedLookupTable.py:29
stats_init
#define stats_init()
Definition: stats.h:318
pbuf_init
#define pbuf_init()
Definition: pbuf.h:221
PACKED_STRUCT_TEST_EXPECTED_SIZE
#define PACKED_STRUCT_TEST_EXPECTED_SIZE
Definition: init.c:79
LWIP_CONST_CAST
#define LWIP_CONST_CAST(target_type, val)
Definition: arch.h:180