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

cpu: make standard stack sizes configurable

This commit is contained in:
Oleg Hahm 2016-10-17 11:05:22 +02:00
parent a8004a8b3a
commit 69b703729f
2 changed files with 23 additions and 8 deletions

View File

@ -38,8 +38,13 @@ extern "C" {
# define THREAD_STACKSIZE_DEFAULT (256)
#endif
#define THREAD_STACKSIZE_IDLE (128)
#define ISR_STACKSIZE (0)
#ifndef THREAD_STACKSIZE_IDLE
# define THREAD_STACKSIZE_IDLE (128)
#endif
#ifndef ISR_STACKSIZE
# define ISR_STACKSIZE (0)
#endif
/** @} */
#ifdef __cplusplus

View File

@ -17,19 +17,29 @@ extern "C" {
* @name Kernel configuration
* @{
*/
#define THREAD_EXTRA_STACKSIZE_PRINTF (256)
#define THREAD_EXTRA_STACKSIZE_PRINTF_FLOAT (THREAD_EXTRA_STACKSIZE_PRINTF)
#ifndef THREAD_EXTRA_STACKSIZE_PRINTF
# define THREAD_EXTRA_STACKSIZE_PRINTF (256)
#endif
#ifndef THREAD_EXTRA_STACKSIZE_PRINTF
# define THREAD_EXTRA_STACKSIZE_PRINTF_FLOAT (THREAD_EXTRA_STACKSIZE_PRINTF)
#endif
#ifndef THREAD_STACKSIZE_DEFAULT
# define THREAD_STACKSIZE_DEFAULT (256)
#endif
#define THREAD_STACKSIZE_IDLE (96)
#define ISR_STACKSIZE (256)
#ifndef THREAD_STACKSIZE_IDLE
# define THREAD_STACKSIZE_IDLE (96)
#endif
#ifndef ISR_STACKSIZE
# define ISR_STACKSIZE (256)
#endif
#ifndef GNRC_PKTBUF_SIZE
# define GNRC_PKTBUF_SIZE (2560) /* TODO: Make this value
* overall MTU dependent */
/* TODO: Make this value overall MTU dependent */
# define GNRC_PKTBUF_SIZE (2560)
#endif
/** @} */