Loading...
Searching...
No Matches
cpu_conf.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2013, Freie Universitaet Berlin (FUB). All rights reserved.
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
11#ifdef __cplusplus
12extern "C" {
13#endif
14
20
30
35#define __FOPEN_MAX__ 4
36#define __FILENAME_MAX__ 12
38
42#define IRQ_API_INLINED (1)
43
48#define THREAD_EXTRA_STACKSIZE_PRINTF (512)
49
50#ifndef THREAD_STACKSIZE_DEFAULT
51#define THREAD_STACKSIZE_DEFAULT (1024)
52#endif
53
54#ifndef THREAD_STACKSIZE_IDLE
55#define THREAD_STACKSIZE_IDLE (160)
56#endif
58
63/* The idle stack of '160' is not enough to do the 'msg_receive'.
64 * It currently used '164' bytes. */
65#define CONFIG_PTHREAD_REAPER_BASE_STACKSIZE (2*THREAD_STACKSIZE_IDLE)
67
72#define CC_CONF_INLINE inline
73#define CC_CONF_USED __attribute__((used))
74#define CC_CONF_NONNULL(...) __attribute__((nonnull(__VA_ARGS__)))
75#define CC_CONF_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
77
81#define PUF_SRAM_ATTRIBUTES __attribute__((used, section(".noinit")))
82
87#define UND_STACKSIZE (4)
89
94#define ABT_STACKSIZE (4)
96
101#ifndef ISR_STACKSIZE
102#define ISR_STACKSIZE (400)
103#endif
105
110#define FIQ_STACKSIZE (64)
112
117#define SVC_STACKSIZE (400)
119
124#define USR_STACKSIZE (4096)
126
131#define NUM_HEAPS (4)
132
137#define BACKUP_RAM __attribute__((section(".backup.bss")))
138
143#define BACKUP_RAM_DATA __attribute__((section(".backup.data")))
144
148#define PERIPH_FLASHPAGE_CUSTOM_PAGESIZES
149
153#define CPU_FLASH_BASE (0x0U)
154
159#define PERIPH_FLASHPAGE_NEEDS_FLASHPAGE_ADDR
160#define PERIPH_FLASHPAGE_NEEDS_FLASHPAGE_PAGE
161
162#define FLASHPAGE_NUMOF (27)
163#define FLASHPAGE_WRITE_BLOCK_SIZE (256)
164#define FLASHPAGE_WRITE_BLOCK_ALIGNMENT (256)
166
167#ifdef __cplusplus
168}
169#endif
170