ReactOS 0.4.16-dev-258-g81860b4
sys_arch.c File Reference
#include <lwip/opt.h>
#include <lwip/arch.h>
#include "sys_arch.h"
#include <lwip/stats.h>
#include <lwip/debug.h>
#include <lwip/sys.h>
#include <string.h>
Include dependency graph for sys_arch.c:

Go to the source code of this file.

Functions

u32_t sys_jiffies (void)
 
u32_t sys_now (void)
 
void sys_init (void)
 
void test_sys_arch_wait_callback (test_sys_arch_waiting_fn waiting_fn)
 
err_t sys_sem_new (sys_sem_t *sem, u8_t count)
 
void sys_sem_free (sys_sem_t *sem)
 
void sys_sem_set_invalid (sys_sem_t *sem)
 
u32_t sys_arch_sem_wait (sys_sem_t *sem, u32_t timeout)
 
void sys_sem_signal (sys_sem_t *sem)
 
err_t sys_mutex_new (sys_mutex_t *mutex)
 
void sys_mutex_free (sys_mutex_t *mutex)
 
void sys_mutex_set_invalid (sys_mutex_t *mutex)
 
void sys_mutex_lock (sys_mutex_t *mutex)
 
void sys_mutex_unlock (sys_mutex_t *mutex)
 
sys_thread_t sys_thread_new (const char *name, lwip_thread_fn function, void *arg, int stacksize, int prio)
 
err_t sys_mbox_new (sys_mbox_t *mbox, int size)
 
void sys_mbox_free (sys_mbox_t *mbox)
 
void sys_mbox_set_invalid (sys_mbox_t *mbox)
 
void sys_mbox_post (sys_mbox_t *q, void *msg)
 
err_t sys_mbox_trypost (sys_mbox_t *q, void *msg)
 
err_t sys_mbox_trypost_fromisr (sys_mbox_t *q, void *msg)
 
u32_t sys_arch_mbox_fetch (sys_mbox_t *q, void **msg, u32_t timeout)
 
u32_t sys_arch_mbox_tryfetch (sys_mbox_t *q, void **msg)
 

Variables

u32_t lwip_sys_now
 
test_sys_arch_waiting_fn the_waiting_fn
 

Function Documentation

◆ sys_jiffies()

u32_t sys_jiffies ( void  )

Ticks/jiffies since power up.

Definition at line 48 of file sys_arch.c.

49{
50 return lwip_sys_now;
51}
u32_t lwip_sys_now
Definition: sys_arch.c:45

◆ test_sys_arch_wait_callback()

void test_sys_arch_wait_callback ( test_sys_arch_waiting_fn  waiting_fn)

Definition at line 69 of file sys_arch.c.

70{
71 the_waiting_fn = waiting_fn;
72}
test_sys_arch_waiting_fn the_waiting_fn
Definition: sys_arch.c:66

Variable Documentation

◆ lwip_sys_now

◆ the_waiting_fn

test_sys_arch_waiting_fn the_waiting_fn

Definition at line 66 of file sys_arch.c.

Referenced by sys_arch_mbox_fetch(), sys_arch_sem_wait(), and test_sys_arch_wait_callback().