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