1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

redefining default stack sizes dependent on the use of printf

This commit is contained in:
Oleg Hahm 2013-07-23 13:42:58 +02:00
parent 37467de0d2
commit 33423cdadb
3 changed files with 10 additions and 4 deletions

View File

@ -53,11 +53,13 @@ License. See the file LICENSE in the top level directory for more details.
* @name Kernel configuration
* @{
*/
#define KERNEL_CONF_STACKSIZE_PRINTF (4096)
#ifndef KERNEL_CONF_STACKSIZE_DEFAULT
#define KERNEL_CONF_STACKSIZE_DEFAULT 4500
#define KERNEL_CONF_STACKSIZE_DEFAULT (KERNEL_CONF_STACKSIZE_PRINTF + 512)
#endif
#define KERNEL_CONF_STACKSIZE_IDLE 500
#define KERNEL_CONF_STACKSIZE_IDLE (512)
/** @} */
/**

View File

@ -17,8 +17,10 @@ License. See the file LICENSE in the top level directory for more details.
* @name Kernel configuration
* @{
*/
#define KERNEL_CONF_STACKSIZE_PRINTF (512)
#ifndef KERNEL_CONF_STACKSIZE_DEFAULT
#define KERNEL_CONF_STACKSIZE_DEFAULT 1024
#define KERNEL_CONF_STACKSIZE_DEFAULT (KERNEL_CONF_STACKSIZE_PRINTF + 512)
#endif
#define KERNEL_CONF_STACKSIZE_IDLE 64

View File

@ -18,6 +18,8 @@
#include <signal.h>
/* TODO: choose more sensibly? */
#define KERNEL_CONF_STACKSIZE_PRINTF (8192)
#ifdef __MACH__
#define KERNEL_CONF_STACKSIZE_DEFAULT (163840)
#define KERNEL_CONF_STACKSIZE_IDLE (163840)
@ -25,7 +27,7 @@
#define TRANSCEIVER_STACK_SIZE (163840)
#define MINIMUM_STACK_SIZE (163840)
#else
#define KERNEL_CONF_STACKSIZE_DEFAULT (16384)
#define KERNEL_CONF_STACKSIZE_DEFAULT (KERNEL_CONF_STACKSIZE_PRINTF + 8192)
#define KERNEL_CONF_STACKSIZE_IDLE (16384)
#define NATIVE_ISR_STACKSIZE (16384)
/* undefine the TRANSCEIVER_STACK_SIZE (2048 or 512) defined in transceiver.h */