ConOpSys V2970  P004.07
ANVILEX control operating system
Macros | Functions | Variables
timeouts.c File Reference
#include "lwip/opt.h"
#include "lwip/timeouts.h"
#include "lwip/priv/tcp_priv.h"
#include "lwip/def.h"
#include "lwip/memp.h"
#include "lwip/priv/tcpip_priv.h"
#include "lwip/ip4_frag.h"
#include "lwip/etharp.h"
#include "lwip/dhcp.h"
#include "lwip/autoip.h"
#include "lwip/igmp.h"
#include "lwip/dns.h"
#include "lwip/nd6.h"
#include "lwip/ip6_frag.h"
#include "lwip/mld6.h"
#include "lwip/dhcp6.h"
#include "lwip/sys.h"
#include "lwip/pbuf.h"
Include dependency graph for timeouts.c:

Macros

#define HANDLER(x)   x
 
#define LWIP_MAX_TIMEOUT   0x7fffffff
 
#define TIME_LESS_THAN(t, compare_to)   ( (((u32_t)((t)-(compare_to))) > LWIP_MAX_TIMEOUT) ? 1 : 0 )
 

Functions

void tcp_timer_needed (void)
 
u32_t sys_now (void)
 Returns the current time in milliseconds when LWIP_TIMERS == 1 and NO_SYS == 1. More...
 
void set_sys_time (u32_t sys_time_new)
 

Variables

const struct lwip_cyclic_timer lwip_cyclic_timers []
 
const int lwip_num_cyclic_timers = LWIP_ARRAYSIZE(lwip_cyclic_timers)
 
u32_t sys_time = 0
 

Detailed Description

Stack-internal timers implementation. This file includes timer callbacks for stack-internal timers as well as functions to set up or stop timers and check for expired timers.

Macro Definition Documentation

◆ HANDLER

#define HANDLER (   x)    x

◆ LWIP_MAX_TIMEOUT

#define LWIP_MAX_TIMEOUT   0x7fffffff

◆ TIME_LESS_THAN

#define TIME_LESS_THAN (   t,
  compare_to 
)    ( (((u32_t)((t)-(compare_to))) > LWIP_MAX_TIMEOUT) ? 1 : 0 )

Function Documentation

◆ set_sys_time()

void set_sys_time ( u32_t  sys_time_new)

References sys_time.

Referenced by TProtocol_IP_Over_ETHERNET::Execute_1ms().

Here is the caller graph for this function:

◆ tcp_timer_needed()

void tcp_timer_needed ( void  )

Variable Documentation

◆ lwip_cyclic_timers

const struct lwip_cyclic_timer lwip_cyclic_timers[]

This array contains all stack-internal cyclic timers. To get the number of timers, use LWIP_ARRAYSIZE()

◆ lwip_num_cyclic_timers

const int lwip_num_cyclic_timers = LWIP_ARRAYSIZE(lwip_cyclic_timers)

Array size of lwip_cyclic_timers[]

◆ sys_time

u32_t sys_time = 0

Referenced by set_sys_time(), and sys_now().