RetroArch
Classes | Macros | Typedefs | Functions
sys.h File Reference
#include "arch/cc.h"
#include "lwip/opt.h"
#include "arch/sys_arch.h"
Include dependency graph for sys.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sys_timeout
 
struct  sys_timeouts
 

Macros

#define SYS_ARCH_TIMEOUT   0xffffffff
 
#define SYS_ARCH_DECL_PROTECT(lev)
 
#define SYS_ARCH_PROTECT(lev)
 
#define SYS_ARCH_UNPROTECT(lev)
 

Typedefs

typedef void(* sys_timeout_handler) (void *arg)
 

Functions

void sys_init (void)
 
void sys_timeout (u32_t msecs, sys_timeout_handler h, void *arg)
 
void sys_untimeout (sys_timeout_handler h, void *arg)
 
struct sys_timeoutssys_arch_timeouts (void)
 
sys_sem_t sys_sem_new (u8_t count)
 
void sys_sem_signal (sys_sem_t sem)
 
u32_t sys_arch_sem_wait (sys_sem_t sem, u32_t timeout)
 
void sys_sem_free (sys_sem_t sem)
 
void sys_sem_wait (sys_sem_t sem)
 
int sys_sem_wait_timeout (sys_sem_t sem, u32_t timeout)
 
void sys_msleep (u32_t ms)
 
u32_t sys_jiffies (void)
 
sys_mbox_t sys_mbox_new (void)
 
void sys_mbox_post (sys_mbox_t mbox, void *msg)
 
u32_t sys_arch_mbox_fetch (sys_mbox_t mbox, void **msg, u32_t timeout)
 
void sys_mbox_free (sys_mbox_t mbox)
 
void sys_mbox_fetch (sys_mbox_t mbox, void **msg)
 
sys_thread_t sys_thread_new (void(*thread)(void *arg), void *arg, int prio)
 
unsigned long sys_now (void)
 

Macro Definition Documentation

◆ SYS_ARCH_DECL_PROTECT

#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.

◆ SYS_ARCH_PROTECT

#define SYS_ARCH_PROTECT (   lev)

◆ SYS_ARCH_TIMEOUT

#define SYS_ARCH_TIMEOUT   0xffffffff

Return code for timeouts from sys_arch_mbox_fetch and sys_arch_sem_wait

◆ SYS_ARCH_UNPROTECT

#define SYS_ARCH_UNPROTECT (   lev)

Typedef Documentation

◆ sys_timeout_handler

typedef void(* sys_timeout_handler) (void *arg)

Function Documentation

◆ sys_arch_mbox_fetch()

u32_t sys_arch_mbox_fetch ( sys_mbox_t  mbox,
void **  msg,
u32_t  timeout 
)
Here is the caller graph for this function:

◆ sys_arch_sem_wait()

u32_t sys_arch_sem_wait ( sys_sem_t  sem,
u32_t  timeout 
)
Here is the caller graph for this function:

◆ sys_arch_timeouts()

struct sys_timeouts* sys_arch_timeouts ( void  )
Here is the caller graph for this function:

◆ sys_init()

void sys_init ( void  )
Here is the caller graph for this function:

◆ sys_jiffies()

u32_t sys_jiffies ( void  )

◆ sys_mbox_fetch()

void sys_mbox_fetch ( sys_mbox_t  mbox,
void **  msg 
)
Here is the call graph for this function:

◆ sys_mbox_free()

void sys_mbox_free ( sys_mbox_t  mbox)

◆ sys_mbox_new()

sys_mbox_t sys_mbox_new ( void  )

◆ sys_mbox_post()

void sys_mbox_post ( sys_mbox_t  mbox,
void msg 
)

◆ sys_msleep()

void sys_msleep ( u32_t  ms)
Here is the call graph for this function:

◆ sys_now()

unsigned long sys_now ( void  )

◆ sys_sem_free()

void sys_sem_free ( sys_sem_t  sem)
Here is the caller graph for this function:

◆ sys_sem_new()

sys_sem_t sys_sem_new ( u8_t  count)
Here is the caller graph for this function:

◆ sys_sem_signal()

void sys_sem_signal ( sys_sem_t  sem)
Here is the caller graph for this function:

◆ sys_sem_wait()

void sys_sem_wait ( sys_sem_t  sem)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sys_sem_wait_timeout()

int sys_sem_wait_timeout ( sys_sem_t  sem,
u32_t  timeout 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sys_thread_new()

sys_thread_t sys_thread_new ( void(*)(void *arg)  thread,
void arg,
int  prio 
)
Here is the caller graph for this function:

◆ sys_timeout()

void sys_timeout ( u32_t  msecs,
sys_timeout_handler  h,
void arg 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sys_untimeout()

void sys_untimeout ( sys_timeout_handler  h,
void arg 
)
Here is the call graph for this function:
Here is the caller graph for this function: