Microchip® Advanced Software Framework

sys.h File Reference
#include "lwip/opt.h"

Macros

#define SYS_ARCH_DEC(var, val)
 
#define SYS_ARCH_DECL_PROTECT(lev)
 SYS_LIGHTWEIGHT_PROT define SYS_LIGHTWEIGHT_PROT in lwipopts.h if you want inter-task protection for certain critical regions during buffer allocation, deallocation and memory allocation and deallocation. More...
 
#define SYS_ARCH_GET(var, ret)
 
#define SYS_ARCH_INC(var, val)
 
#define SYS_ARCH_PROTECT(lev)
 
#define sys_arch_sem_wait(s, t)
 
#define SYS_ARCH_SET(var, val)
 
#define SYS_ARCH_UNPROTECT(lev)
 
#define sys_mbox_fetch(m, d)
 
#define sys_mbox_free(m)
 
#define sys_mbox_new(m, s)   ERR_OK
 
#define sys_mbox_post(m, d)
 
#define sys_mbox_set_invalid(m)
 
#define sys_mbox_tryfetch(m, d)
 
#define sys_mbox_trypost(m, d)
 
#define sys_mbox_valid(m)
 
#define sys_msleep(t)
 
#define sys_mutex_free(mu)
 
#define sys_mutex_lock(mu)
 
#define sys_mutex_new(mu)   ERR_OK
 
#define sys_mutex_set_invalid(mu)
 
#define sys_mutex_unlock(mu)
 
#define sys_mutex_valid(mu)   0
 
#define sys_sem_free(s)
 
#define sys_sem_set_invalid(s)
 
#define sys_sem_signal(s)
 
#define sys_sem_valid(s)   0
 
#define sys_sem_wait(s)
 
#define sys_thread_new(n, t, a, s, p)
 

Typedefs

typedef u8_t sys_mbox_t
 
typedef u8_t sys_mutex_t
 
typedef u8_t sys_sem_t
 

Functions

void sys_init (void)
 
u32_t sys_jiffies (void)
 Ticks/jiffies since power up. More...
 
u32_t sys_now (void)
 Returns the current time in milliseconds, may be the same as sys_jiffies or at least based on it. More...
 

#define SYS_ARCH_DEC (   var,
  val 
)
Value:
do { \
SYS_ARCH_PROTECT(old_level); \
var -= val; \
SYS_ARCH_UNPROTECT(old_level); \
} while(0)
#define SYS_ARCH_DECL_PROTECT(lev)
SYS_LIGHTWEIGHT_PROT define SYS_LIGHTWEIGHT_PROT in lwipopts.h if you want inter-task protection for ...
Definition: sys.h:284
#define SYS_ARCH_PROTECT(lev)
Definition: sys.h:285
#define SYS_ARCH_UNPROTECT(lev)
Definition: sys.h:286
#define SYS_ARCH_DECL_PROTECT (   lev)

SYS_LIGHTWEIGHT_PROT define SYS_LIGHTWEIGHT_PROT in lwipopts.h if you want inter-task protection for certain critical regions during buffer allocation, deallocation and memory allocation and deallocation.

#define SYS_ARCH_GET (   var,
  ret 
)
Value:
do { \
SYS_ARCH_PROTECT(old_level); \
ret = var; \
SYS_ARCH_UNPROTECT(old_level); \
} while(0)
#define SYS_ARCH_DECL_PROTECT(lev)
SYS_LIGHTWEIGHT_PROT define SYS_LIGHTWEIGHT_PROT in lwipopts.h if you want inter-task protection for ...
Definition: sys.h:284
#define SYS_ARCH_PROTECT(lev)
Definition: sys.h:285
#define SYS_ARCH_UNPROTECT(lev)
Definition: sys.h:286
#define SYS_ARCH_INC (   var,
  val 
)
Value:
do { \
SYS_ARCH_PROTECT(old_level); \
var += val; \
SYS_ARCH_UNPROTECT(old_level); \
} while(0)
#define SYS_ARCH_DECL_PROTECT(lev)
SYS_LIGHTWEIGHT_PROT define SYS_LIGHTWEIGHT_PROT in lwipopts.h if you want inter-task protection for ...
Definition: sys.h:284
#define SYS_ARCH_PROTECT(lev)
Definition: sys.h:285
#define SYS_ARCH_UNPROTECT(lev)
Definition: sys.h:286
#define SYS_ARCH_PROTECT (   lev)
#define sys_arch_sem_wait (   s,
 
)
#define SYS_ARCH_SET (   var,
  val 
)
Value:
do { \
SYS_ARCH_PROTECT(old_level); \
var = val; \
SYS_ARCH_UNPROTECT(old_level); \
} while(0)
#define SYS_ARCH_DECL_PROTECT(lev)
SYS_LIGHTWEIGHT_PROT define SYS_LIGHTWEIGHT_PROT in lwipopts.h if you want inter-task protection for ...
Definition: sys.h:284
#define SYS_ARCH_PROTECT(lev)
Definition: sys.h:285
#define SYS_ARCH_UNPROTECT(lev)
Definition: sys.h:286
#define SYS_ARCH_UNPROTECT (   lev)
#define sys_mbox_fetch (   m,
 
)
#define sys_mbox_free (   m)
#define sys_mbox_new (   m,
 
)    ERR_OK
#define sys_mbox_post (   m,
 
)
#define sys_mbox_set_invalid (   m)
#define sys_mbox_tryfetch (   m,
 
)
#define sys_mbox_trypost (   m,
 
)
#define sys_mbox_valid (   m)
#define sys_msleep (   t)
#define sys_mutex_free (   mu)
#define sys_mutex_lock (   mu)

Referenced by mem_malloc().

#define sys_mutex_new (   mu)    ERR_OK

Referenced by mem_init().

#define sys_mutex_set_invalid (   mu)
#define sys_mutex_unlock (   mu)

Referenced by mem_malloc().

#define sys_mutex_valid (   mu)    0
#define sys_sem_free (   s)
#define sys_sem_set_invalid (   s)
#define sys_sem_signal (   s)
#define sys_sem_valid (   s)    0
#define sys_sem_wait (   s)
#define sys_thread_new (   n,
  t,
  a,
  s,
 
)

Referenced by ethernetif_init().

typedef u8_t sys_mbox_t
typedef u8_t sys_mutex_t
typedef u8_t sys_sem_t

void sys_init ( void  )

Referenced by lwip_init().

u32_t sys_jiffies ( void  )

Ticks/jiffies since power up.

u32_t sys_now ( void  )

Returns the current time in milliseconds, may be the same as sys_jiffies or at least based on it.

References sys_get_ms().

Referenced by sys_timeouts_init().