cpu_conf.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2013 Freie Universität Berlin (FUB)
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
32 #define __FOPEN_MAX__ 4
33 #define __FILENAME_MAX__ 12
39 #define IRQ_API_INLINED (1)
40 
45 #define THREAD_EXTRA_STACKSIZE_PRINTF (512)
46 
47 #ifndef THREAD_STACKSIZE_DEFAULT
48 #define THREAD_STACKSIZE_DEFAULT (1024)
49 #endif
50 
51 #ifndef THREAD_STACKSIZE_IDLE
52 #define THREAD_STACKSIZE_IDLE (160)
53 #endif
60 /* The idle stack of '160' is not enough to do the 'msg_receive'.
61  * It currently used '164' bytes. */
62 #define CONFIG_PTHREAD_REAPER_BASE_STACKSIZE (2*THREAD_STACKSIZE_IDLE)
69 #define CC_CONF_INLINE inline
70 #define CC_CONF_USED __attribute__((used))
71 #define CC_CONF_NONNULL(...) __attribute__((nonnull(__VA_ARGS__)))
72 #define CC_CONF_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
78 #define PUF_SRAM_ATTRIBUTES __attribute__((used, section(".noinit")))
79 
84 #define UND_STACKSIZE (4)
91 #define ABT_STACKSIZE (4)
98 #ifndef ISR_STACKSIZE
99 #define ISR_STACKSIZE (400)
100 #endif
107 #define FIQ_STACKSIZE (64)
114 #define SVC_STACKSIZE (400)
121 #define USR_STACKSIZE (4096)
128 #define NUM_HEAPS (4)
129 
134 #define BACKUP_RAM __attribute__((section(".backup.bss")))
135 
140 #define BACKUP_RAM_DATA __attribute__((section(".backup.data")))
141 
145 #define PERIPH_FLASHPAGE_CUSTOM_PAGESIZES
146 
150 #define CPU_FLASH_BASE (0x0U)
151 
156 #define PERIPH_FLASHPAGE_NEEDS_FLASHPAGE_ADDR
157 #define PERIPH_FLASHPAGE_NEEDS_FLASHPAGE_PAGE
158 
159 #define FLASHPAGE_NUMOF (27)
160 #define FLASHPAGE_WRITE_BLOCK_SIZE (256)
161 #define FLASHPAGE_WRITE_BLOCK_ALIGNMENT (256)
164 #ifdef __cplusplus
165 }
166 #endif
167