Loading...
Searching...
No Matches
cpu_conf_common.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2020 Koen Zandberg <koen@bergzand.net>
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "vendor/riscv_csr.h"
19#include "cpu_conf_common.h"
20
25#if __riscv_xlen == 64
26# ifndef THREAD_EXTRA_STACKSIZE_PRINTF
27# define THREAD_EXTRA_STACKSIZE_PRINTF (512)
28# endif
29# ifndef THREAD_STACKSIZE_DEFAULT
30# define THREAD_STACKSIZE_DEFAULT (2048)
31# endif
32# ifndef THREAD_STACKSIZE_IDLE
33# define THREAD_STACKSIZE_IDLE (512)
34# endif
35#else
36# ifndef THREAD_EXTRA_STACKSIZE_PRINTF
37# define THREAD_EXTRA_STACKSIZE_PRINTF (256)
38# endif
39# ifndef THREAD_STACKSIZE_DEFAULT
40# define THREAD_STACKSIZE_DEFAULT (1024)
41# endif
42# ifndef THREAD_STACKSIZE_IDLE
43# define THREAD_STACKSIZE_IDLE (256)
44# endif
45#endif
47
51#define PUF_SRAM_ATTRIBUTES __attribute__((used, section(".noinit")))
52
56#define HAVE_HEAP_STATS
57
61#define IRQ_API_INLINED (1)
62
63#ifdef __cplusplus
64extern "C" {
65#endif
66
67#ifdef __cplusplus
68}
69#endif
70
RISC-V CPU configuration options.