1 #ifndef __LWIP_SYS_ARCH_H__
2 #define __LWIP_SYS_ARCH_H__
5 #include <minix/sysutil.h>
7 #define NOT_IMPLEMENTED panic("liblwip : %s NOT_IMPLEMENTED", __func__)
11 static inline err_t
sys_sem_new(__unused sys_sem_t
*sem
, __unused u8_t count
)
16 static inline void sys_sem_signal(__unused sys_sem_t
*sem
)
20 static inline u32_t
sys_arch_sem_wait(__unused sys_sem_t
*sem
, __unused u32_t timeout
)
25 static inline void sys_sem_free(__unused sys_sem_t
*sem
)
30 static inline int sys_sem_valid(__unused sys_sem_t
*sem
)
35 static inline void sys_sem_set_invalid(__unused sys_sem_t
*sem
)
40 #define LWIP_COMPAT_MUTEX 1
42 typedef int sys_mbox_t
;
44 static inline err_t
sys_mbox_new(__unused sys_mbox_t
*mbox
, __unused
int size
)
49 static inline void sys_mbox_post(__unused sys_mbox_t
*mbox
, __unused
void *msg
)
54 static inline err_t
sys_mbox_trypost(__unused sys_mbox_t
*mbox
, __unused
void *msg
)
59 static inline u32_t
sys_arch_mbox_fetch(__unused sys_mbox_t
*mbox
,
61 __unused u32_t timeout
)
66 static inline u32_t
sys_arch_mbox_tryfetch(__unused sys_mbox_t
*mbox
, __unused
void **msg
)
71 static inline void sys_mbox_free(__unused sys_mbox_t
*mbox
)
76 static inline int sys_mbox_valid(__unused sys_mbox_t
*mbox
)
81 static inline void sys_mbox_set_invalid(__unused sys_mbox_t
*mbox
)
86 typedef int sys_thread_t
;
88 #endif /* __LWIP_SYS_ARCH_H__ */