cpu/atmega_common: increase stack size with xtimer
If a timer triggers while the idle thread is running, previously a stack overflow was triggered. This commit increases the idle threads stack size if xtimer is used.
This commit is contained in:
parent
42eb044ec6
commit
040bad0425
@ -49,8 +49,16 @@ extern "C" {
|
||||
* to avoid not printing of debug in interrupts
|
||||
*/
|
||||
#ifndef THREAD_STACKSIZE_IDLE
|
||||
#ifdef MODULE_XTIMER
|
||||
/* xtimer's 64 bit arithmetic doesn't perform well on 8 bit archs. In order to
|
||||
* prevent a stack overflow when an timer triggers while the idle thread is
|
||||
* running, we have to increase the stack size then
|
||||
*/
|
||||
#define THREAD_STACKSIZE_IDLE (192)
|
||||
#else
|
||||
#define THREAD_STACKSIZE_IDLE (128)
|
||||
#endif
|
||||
#endif
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user