1 /*
2  * Copyright (c) 2006-2022, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2022-02-20     Meco Man     add RT-Thread copyright
9  */
10 
11 /*
12  * Copyright (c) 2001, Swedish Institute of Computer Science.
13  * All rights reserved.
14  *
15  * Redistribution and use in source and binary forms, with or without
16  * modification, are permitted provided that the following conditions
17  * are met:
18  * 1. Redistributions of source code must retain the above copyright
19  *    notice, this list of conditions and the following disclaimer.
20  * 2. Redistributions in binary form must reproduce the above copyright
21  *    notice, this list of conditions and the following disclaimer in the
22  *    documentation and/or other materials provided with the distribution.
23  * 3. Neither the name of the Institute nor the names of its contributors
24  *    may be used to endorse or promote products derived from this software
25  *    without specific prior written permission.
26  *
27  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
28  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
29  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
30  * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
31  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
32  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
33  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
35  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
36  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37  * SUCH DAMAGE.
38  *
39  * This file is part of the lwIP TCP/IP stack.
40  *
41  * Author: Adam Dunkels <adam@sics.se>
42  *
43  * $Id: sys_arch.h,v 1.3 2005/03/13 16:03:23 bear Exp $
44  */
45 #ifndef __ARCH_SYS_ARCH_H__
46 #define __ARCH_SYS_ARCH_H__
47 
48 #include "arch/cc.h"
49 #include <rtthread.h>
50 
51 #define SYS_MBOX_NULL RT_NULL
52 #define SYS_SEM_NULL  RT_NULL
53 
54 typedef rt_uint32_t sys_prot_t;
55 
56 #define SYS_MBOX_SIZE 10
57 #define SYS_LWIP_TIMER_NAME "timer"
58 #define SYS_LWIP_MBOX_NAME "mbox"
59 #define SYS_LWIP_SEM_NAME "sem"
60 #define SYS_LWIP_MUTEX_NAME "mu"
61 
62 typedef rt_sem_t sys_sem_t;
63 typedef rt_mutex_t sys_mutex_t;
64 typedef rt_mailbox_t  sys_mbox_t;
65 typedef rt_thread_t sys_thread_t;
66 
67 #endif /* __ARCH_SYS_ARCH_H__ */
68