cpu_conf_common.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 Koen Zandberg <koen@bergzand.net>
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser General
5  * Public License v2.1. See the file LICENSE in the top level directory for more
6  * details.
7  */
8 
19 #ifndef CPU_CONF_COMMON_H
20 #define CPU_CONF_COMMON_H
21 
22 #include "vendor/riscv_csr.h"
23 #include "cpu_conf_common.h"
24 
29 #ifndef THREAD_EXTRA_STACKSIZE_PRINTF
30 #define THREAD_EXTRA_STACKSIZE_PRINTF (256)
31 #endif
32 #ifndef THREAD_STACKSIZE_DEFAULT
33 #define THREAD_STACKSIZE_DEFAULT (1024)
34 #endif
35 #ifndef THREAD_STACKSIZE_IDLE
36 #define THREAD_STACKSIZE_IDLE (256)
37 #endif
43 #define PUF_SRAM_ATTRIBUTES __attribute__((used, section(".noinit")))
44 
48 #define HAVE_HEAP_STATS
49 
53 #define IRQ_API_INLINED (1)
54 
55 #ifdef __cplusplus
56 extern "C" {
57 #endif
58 
59 #ifdef __cplusplus
60 }
61 #endif
62 
63 #endif /* CPU_CONF_COMMON_H */
RISC-V CPU configuration options.