• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* coap_riot.h -- RIOT-specific definitions for libcoap
2  *
3  * Copyright (C) 2019 Olaf Bergmann <bergmann@tzi.org>
4  *
5  * SPDX-License-Identifier: BSD-2-Clause
6  *
7  * This file is part of the CoAP library libcoap. Please see
8  * README for terms of use.
9  */
10 
11 /**
12  * @file coap_riot.h
13  * @brief RIOT-specific definitions for libcoap
14  */
15 
16 #ifndef COAP_RIOT_H_
17 #define COAP_RIOT_H_
18 
19 #ifndef LIBCOAP_MSG_QUEUE_SIZE
20 /**
21  * Size of the queue for passing messages between the network
22  * interface and the coap stack. */
23 #define LIBCOAP_MSG_QUEUE_SIZE (32U)
24 #endif /* LIBCOAP_MSG_QUEUE_SIZE */
25 
26 #ifndef LIBCOAP_MAX_SOCKETS
27 /**
28  * Maximum number of sockets that are simultaneously considered for
29  * reading or writing. */
30 #define LIBCOAP_MAX_SOCKETS (16U)
31 #endif /* LIBCOAP_MAX_SOCKETS */
32 
33 /**
34  * This function must be called in the RIOT CoAP thread for
35  * RIOT-specific initialization.
36  */
37 void coap_riot_startup(void);
38 
39 #endif /* COAP_RIOT_H_ */
40