
- setting LwIP macro NO_SYS to 0 - this approach based on Carl-Benedikt Krueger's LwIP branch "krueger"
22 lines
351 B
C
22 lines
351 B
C
#ifndef __ARCH_SYS_ARCH_H__
|
|
#define __ARCH_SYS_ARCH_H__
|
|
|
|
#include <asm/tasks.h>
|
|
#include <metalsvm/mailbox.h>
|
|
|
|
typedef sem_t sys_mutex_t;
|
|
|
|
typedef struct
|
|
{
|
|
sem_t sem;
|
|
int valid;
|
|
} sys_sem_t;
|
|
|
|
typedef struct
|
|
{ mailbox_ptr_t mailbox;
|
|
int valid;
|
|
} sys_mbox_t;
|
|
|
|
typedef tid_t* sys_thread_t;
|
|
|
|
#endif /* __ARCH_SYS_ARCH_H__ */
|