Prusa MINI Firmware overview
init.c File Reference
#include "lwip/opt.h"
#include "lwip/init.h"
#include "lwip/stats.h"
#include "lwip/sys.h"
#include "lwip/mem.h"
#include "lwip/memp.h"
#include "lwip/pbuf.h"
#include "lwip/netif.h"
#include "lwip/sockets.h"
#include "lwip/ip.h"
#include "lwip/raw.h"
#include "lwip/udp.h"
#include "lwip/priv/tcp_priv.h"
#include "lwip/igmp.h"
#include "lwip/dns.h"
#include "lwip/timeouts.h"
#include "lwip/etharp.h"
#include "lwip/ip6.h"
#include "lwip/nd6.h"
#include "lwip/mld6.h"
#include "lwip/api.h"
#include "netif/ppp/ppp_opts.h"
#include "netif/ppp/ppp_impl.h"

Classes

struct  packed_struct_test
 

Macros

#define PACKED_STRUCT_TEST_EXPECTED_SIZE   5
 
#define LWIP_DISABLE_TCP_SANITY_CHECKS   0
 
#define LWIP_DISABLE_MEMP_SANITY_CHECKS   0
 

Functions

void lwip_init (void)
 

Variables

PACK_STRUCT_BEGIN struct packed_struct_test PACK_STRUCT_STRUCT
 

Detailed Description

Modules initialization

Macro Definition Documentation

◆ PACKED_STRUCT_TEST_EXPECTED_SIZE

#define PACKED_STRUCT_TEST_EXPECTED_SIZE   5

◆ LWIP_DISABLE_TCP_SANITY_CHECKS

#define LWIP_DISABLE_TCP_SANITY_CHECKS   0

◆ LWIP_DISABLE_MEMP_SANITY_CHECKS

#define LWIP_DISABLE_MEMP_SANITY_CHECKS   0

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:

Variable Documentation

◆ PACK_STRUCT_STRUCT

PACK_STRUCT_BEGIN struct packed_struct_test PACK_STRUCT_STRUCT
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