Loading...
Searching...
No Matches
cpu_conf.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021 Gerson Fernando Budke
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22#define THREAD_EXTRA_STACKSIZE_PRINTF (128)
23
32#ifndef THREAD_STACKSIZE_DEFAULT
33#define THREAD_STACKSIZE_DEFAULT (512)
34#endif
35
36/* keep THREAD_STACKSIZE_IDLE > THREAD_EXTRA_STACKSIZE_PRINTF
37 * to avoid not printing of debug in interrupts
38 */
39#ifndef THREAD_STACKSIZE_IDLE
40#if MODULE_XTIMER || MODULE_ZTIMER || MODULE_ZTIMER64
41/* For AVR no ISR stack is used, hence an IRQ will victimize the stack of
42 * whatever thread happens to be running with the IRQ kicks in. If more than
43 * trivial stuff is needed to be done in ISRs (e.g. when soft timers are used),
44 * the idle stack will overflow.
45 */
46#define THREAD_STACKSIZE_IDLE (384)
47#else
48#define THREAD_STACKSIZE_IDLE (192)
49#endif
50#endif
52
56#define HAVE_HEAP_STATS
57
61#define IRQ_API_INLINED (1)
62
63#ifndef DOXYGEN
64#define HAS_FLASH_UTILS_ARCH 1
65#endif
66
67#ifdef __cplusplus
68}
69#endif
70