mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
net/gcoap: fix guards around defines
This commit is contained in:
parent
d2fa0c6ce1
commit
2aaaf6df9e
@ -622,12 +622,13 @@ extern "C" {
|
||||
* @brief Stack size for module thread
|
||||
* @{
|
||||
*/
|
||||
#ifndef GCOAP_STACK_SIZE
|
||||
#ifndef GCOAP_DTLS_EXTRA_STACKSIZE
|
||||
#if IS_USED(MODULE_GCOAP_DTLS)
|
||||
#define GCOAP_DTLS_EXTRA_STACKSIZE (THREAD_STACKSIZE_DEFAULT)
|
||||
#else
|
||||
#define GCOAP_DTLS_EXTRA_STACKSIZE (0)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Extra stack for VFS operations
|
||||
@ -639,6 +640,7 @@ extern "C" {
|
||||
#define GCOAP_VFS_EXTRA_STACKSIZE (0)
|
||||
#endif
|
||||
|
||||
#ifndef GCOAP_STACK_SIZE
|
||||
#define GCOAP_STACK_SIZE (THREAD_STACKSIZE_DEFAULT + DEBUG_EXTRA_STACKSIZE \
|
||||
+ sizeof(coap_pkt_t) + GCOAP_DTLS_EXTRA_STACKSIZE \
|
||||
+ GCOAP_VFS_EXTRA_STACKSIZE)
|
||||
|
Loading…
Reference in New Issue
Block a user