Prusa MINI Firmware overview
sys_arch.c File Reference
#include "lwip/debug.h"
#include "lwip/def.h"
#include "lwip/sys.h"
#include "lwip/mem.h"
#include "lwip/stats.h"
#include "cmsis_os.h"

Functions

err_t sys_mbox_new (sys_mbox_t *mbox, int size)
 
void sys_mbox_free (sys_mbox_t *mbox)
 
void sys_mbox_post (sys_mbox_t *mbox, void *data)
 
err_t sys_mbox_trypost (sys_mbox_t *mbox, void *msg)
 
u32_t sys_arch_mbox_fetch (sys_mbox_t *mbox, void **msg, u32_t timeout)
 
u32_t sys_arch_mbox_tryfetch (sys_mbox_t *mbox, void **msg)
 
int sys_mbox_valid (sys_mbox_t *mbox)
 
void sys_mbox_set_invalid (sys_mbox_t *mbox)
 
err_t sys_sem_new (sys_sem_t *sem, u8_t count)
 
u32_t sys_arch_sem_wait (sys_sem_t *sem, u32_t timeout)
 
void sys_sem_signal (sys_sem_t *sem)
 
void sys_sem_free (sys_sem_t *sem)
 
int sys_sem_valid (sys_sem_t *sem)
 
void sys_sem_set_invalid (sys_sem_t *sem)
 
 osMutexDef (lwip_sys_mutex)
 
void sys_init (void)
 
err_t sys_mutex_new (sys_mutex_t *mutex)
 
void sys_mutex_free (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 thread, void *arg, int stacksize, int prio)
 
sys_prot_t sys_arch_protect (void)
 
void sys_arch_unprotect (sys_prot_t pval)
 

Variables

osMutexId lwip_sys_mutex
 

Function Documentation

◆ osMutexDef()

osMutexDef ( lwip_sys_mutex  )
Here is the caller graph for this function:

◆ sys_init()

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

◆ sys_arch_protect()

sys_prot_t sys_arch_protect ( void  )
399 {
401  return (sys_prot_t)1;
402 }
Here is the call graph for this function:

◆ sys_arch_unprotect()

void sys_arch_unprotect ( sys_prot_t  pval)
415 {
416  ( void ) pval;
418 }
Here is the call graph for this function:

Variable Documentation

◆ lwip_sys_mutex

osMutexId lwip_sys_mutex
osMutexRelease
osStatus osMutexRelease(osMutexId mutex_id)
Release a Mutex that was obtained by osMutexWait.
Definition: cmsis_os.c:709
sys_prot_t
int sys_prot_t
Definition: cc.h:39
osMutexCreate
osMutexId osMutexCreate(const osMutexDef_t *mutex_def)
Create and Initialize a Mutex object.
Definition: cmsis_os.c:640
lwip_sys_mutex
osMutexId lwip_sys_mutex
Definition: sys_arch.c:306
void
void
Definition: png.h:1083
osWaitForever
#define osWaitForever
wait forever timeout value
Definition: cmsis_os.h:230
osMutex
#define osMutex(name)
Definition: cmsis_os.h:650
osMutexWait
osStatus osMutexWait(osMutexId mutex_id, uint32_t millisec)
Wait until a Mutex becomes available.
Definition: cmsis_os.c:669