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 #ifndef COAP_RIOT_H_ 12 #define COAP_RIOT_H_ 13 14 #ifndef LIBCOAP_MSG_QUEUE_SIZE 15 /** 16 * Size of the queue for passing messages between the network 17 * interface and the coap stack. */ 18 #define LIBCOAP_MSG_QUEUE_SIZE (32U) 19 #endif /* LIBCOAP_MSG_QUEUE_SIZE */ 20 21 #ifndef LIBCOAP_MAX_SOCKETS 22 /** 23 * Maximum number of sockets that are simultaneously considered for 24 * reading or writing. */ 25 #define LIBCOAP_MAX_SOCKETS (16U) 26 #endif /* LIBCOAP_MAX_SOCKETS */ 27 28 /** 29 * This function must be called in the RIOT CoAP thread for 30 * RIOT-specific initialization. 31 */ 32 void coap_riot_startup(void); 33 34 #endif /* COAP_RIOT_H_ */ 35