sys_arch.h 2.4 KB

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