mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 04:52:59 +01:00
Merge pull request #18263 from maribu/cpu/avr8/idle_stack
cpu/{atmega_common,atxmega}: increase idle thread stack size
This commit is contained in:
commit
a1ee44e114
@ -49,10 +49,11 @@ extern "C" {
|
||||
* to avoid not printing of debug in interrupts
|
||||
*/
|
||||
#ifndef THREAD_STACKSIZE_IDLE
|
||||
#if MODULE_XTIMER || MODULE_ZTIMER64
|
||||
/* 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
|
||||
#if MODULE_XTIMER || MODULE_ZTIMER || MODULE_ZTIMER64
|
||||
/* For AVR no ISR stack is used, hence an IRQ will victimize the stack of
|
||||
* whatever thread happens to be running with the IRQ kicks in. If more than
|
||||
* trivial stuff is needed to be done in ISRs (e.g. when soft timers are used),
|
||||
* the idle stack will overflow.
|
||||
*/
|
||||
#define THREAD_STACKSIZE_IDLE (192)
|
||||
#else
|
||||
|
@ -41,10 +41,11 @@ extern "C" {
|
||||
* to avoid not printing of debug in interrupts
|
||||
*/
|
||||
#ifndef THREAD_STACKSIZE_IDLE
|
||||
#if MODULE_XTIMER || MODULE_ZTIMER64
|
||||
/* 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
|
||||
#if MODULE_XTIMER || MODULE_ZTIMER || MODULE_ZTIMER64
|
||||
/* For AVR no ISR stack is used, hence an IRQ will victimize the stack of
|
||||
* whatever thread happens to be running with the IRQ kicks in. If more than
|
||||
* trivial stuff is needed to be done in ISRs (e.g. when soft timers are used),
|
||||
* the idle stack will overflow.
|
||||
*/
|
||||
#define THREAD_STACKSIZE_IDLE (384)
|
||||
#else
|
||||
|
@ -6,6 +6,7 @@ BOARD_INSUFFICIENT_MEMORY := \
|
||||
arduino-uno \
|
||||
atmega328p \
|
||||
atmega328p-xplained-mini \
|
||||
atxmega-a3bu-xplained \
|
||||
bluepill-stm32f030c8 \
|
||||
i-nucleo-lrwan1 \
|
||||
msb-430 \
|
||||
|
Loading…
Reference in New Issue
Block a user