• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * lwipopts.h -- LwIP example
3  *
4  * Copyright (C) 2013-2016 Christian Amsüss <chrysn@fsfe.org>
5  * Copyright (C) 2018 John Shallow <supjps-libcoap@jpshallow.com>
6  *
7  * SPDX-License-Identifier: BSD-2-Clause
8  *
9  * This file is part of the CoAP library libcoap. Please see README for terms
10  * of use.
11  */
12 
13 typedef unsigned int sys_prot_t;
14 
15 #define NO_SYS                     1
16 #define LWIP_SOCKET                (NO_SYS==0)
17 #define LWIP_NETCONN               (NO_SYS==0)
18 #define LWIP_NETIF_API             (NO_SYS==0)
19 
20 #define LWIP_IPV6                       1
21 #define LWIP_IPV6_REASS                 0
22 
23 #ifndef LWIP_RAND
24 #define LWIP_RAND() ((u32_t)rand())
25 #endif
26 
27 #ifndef netif_get_index
28 #define netif_get_index(netif)      ((u8_t)((netif)->num + 1))
29 #endif
30 
31 #if NO_SYS
32 #include <pthread.h>
33 extern pthread_mutex_t lwprot_mutex;
34 extern pthread_t lwprot_thread;
35 extern int lwprot_count;
36 #endif
37 #define MEMP_USE_CUSTOM_POOLS 1
38