cpu_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2021 Gerson Fernando Budke
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
9 #pragma once
10 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 #define THREAD_EXTRA_STACKSIZE_PRINTF (128)
26 
35 #ifndef THREAD_STACKSIZE_DEFAULT
36 #define THREAD_STACKSIZE_DEFAULT (512)
37 #endif
38 
39 /* keep THREAD_STACKSIZE_IDLE > THREAD_EXTRA_STACKSIZE_PRINTF
40  * to avoid not printing of debug in interrupts
41  */
42 #ifndef THREAD_STACKSIZE_IDLE
43 #if MODULE_XTIMER || MODULE_ZTIMER || MODULE_ZTIMER64
44 /* For AVR no ISR stack is used, hence an IRQ will victimize the stack of
45  * whatever thread happens to be running with the IRQ kicks in. If more than
46  * trivial stuff is needed to be done in ISRs (e.g. when soft timers are used),
47  * the idle stack will overflow.
48  */
49 #define THREAD_STACKSIZE_IDLE (384)
50 #else
51 #define THREAD_STACKSIZE_IDLE (192)
52 #endif
53 #endif
59 #define HAVE_HEAP_STATS
60 
64 #define IRQ_API_INLINED (1)
65 
66 #ifndef DOXYGEN
67 #define HAS_FLASH_UTILS_ARCH 1
68 #endif
69 
70 #ifdef __cplusplus
71 }
72 #endif
73