1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:32:45 +01:00

Merge pull request #5957 from OlegHahm/cpu_stack_size_cleanup

cpu: minor improvements for MSP430 and AVR
This commit is contained in:
Martine Lenders 2016-10-27 14:24:11 +02:00 committed by GitHub
commit 3422190c51
2 changed files with 28 additions and 13 deletions

View File

@ -29,17 +29,22 @@ extern "C" {
* @name Kernel configuration
*
* Since printf seems to get memory allocated by the linker/avr-libc the stack
* size tested sucessfully even with pretty small stacks.k
* size tested sucessfully even with pretty small stacks.
* @{
*/
#define THREAD_EXTRA_STACKSIZE_PRINTF (128)
#ifndef THREAD_STACKSIZE_DEFAULT
#define THREAD_STACKSIZE_DEFAULT (256)
# 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_STACKSIZE_DEFAULT
#define THREAD_STACKSIZE_DEFAULT (256)
#ifndef THREAD_EXTRA_STACKSIZE_PRINTF
# define THREAD_EXTRA_STACKSIZE_PRINTF (256)
#endif
#define THREAD_STACKSIZE_IDLE (96)
#define ISR_STACKSIZE (256)
#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
#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
/** @} */