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