Skip to content
Snippets Groups Projects
Commit 935292ce authored by Cenk Gündoğan's avatar Cenk Gündoğan
Browse files

gcoap: make stack size configurable

parent 6df21138
No related branches found
No related tags found
No related merge requests found
...@@ -386,6 +386,13 @@ extern "C" { ...@@ -386,6 +386,13 @@ extern "C" {
#define GCOAP_OBS_INIT_UNUSED (-2) #define GCOAP_OBS_INIT_UNUSED (-2)
/** @} */ /** @} */
/**
* @brief Stack size for module thread
*/
#ifndef GCOAP_STACK_SIZE
#define GCOAP_STACK_SIZE (THREAD_STACKSIZE_DEFAULT + DEBUG_EXTRA_STACKSIZE)
#endif
/** /**
* @brief A modular collection of resources for a server * @brief A modular collection of resources for a server
*/ */
......
...@@ -26,9 +26,6 @@ ...@@ -26,9 +26,6 @@
#define ENABLE_DEBUG (0) #define ENABLE_DEBUG (0)
#include "debug.h" #include "debug.h"
/** @brief Stack size for module thread */
#define GCOAP_STACK_SIZE (THREAD_STACKSIZE_DEFAULT + DEBUG_EXTRA_STACKSIZE)
/* Internal functions */ /* Internal functions */
static void *_event_loop(void *arg); static void *_event_loop(void *arg);
static void _listen(sock_udp_t *sock); static void _listen(sock_udp_t *sock);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment