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 #ifndef CPU_CONF_H
10 #define CPU_CONF_H
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
36 #define __FOPEN_MAX__ 4
37 #define __FILENAME_MAX__ 12
38 
43 #define IRQ_API_INLINED (1)
44 
49 #define THREAD_EXTRA_STACKSIZE_PRINTF (512)
50 
51 #ifndef THREAD_STACKSIZE_DEFAULT
52 #define THREAD_STACKSIZE_DEFAULT (1024)
53 #endif
54 
55 #ifndef THREAD_STACKSIZE_IDLE
56 #define THREAD_STACKSIZE_IDLE (160)
57 #endif
58 
64 /* The idle stack of '160' is not enough to do the 'msg_receive'.
65  * It currently used '164' bytes. */
66 #define CONFIG_PTHREAD_REAPER_BASE_STACKSIZE (2*THREAD_STACKSIZE_IDLE)
67 
73 #define CC_CONF_INLINE inline
74 #define CC_CONF_USED __attribute__((used))
75 #define CC_CONF_NONNULL(...) __attribute__((nonnull(__VA_ARGS__)))
76 #define CC_CONF_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
77 
82 #define PUF_SRAM_ATTRIBUTES __attribute__((used, section(".noinit")))
83 
88 #define UND_STACKSIZE (4)
89 
95 #define ABT_STACKSIZE (4)
96 
102 #ifndef ISR_STACKSIZE
103 #define ISR_STACKSIZE (400)
104 #endif
105 
111 #define FIQ_STACKSIZE (64)
112 
118 #define SVC_STACKSIZE (400)
119 
125 #define USR_STACKSIZE (4096)
126 
132 #define NUM_HEAPS (4)
133 
138 #define BACKUP_RAM __attribute__((section(".backup.bss")))
139 
144 #define BACKUP_RAM_DATA __attribute__((section(".backup.data")))
145 
146 #ifdef __cplusplus
147 }
148 #endif
149 
151 #endif /* CPU_CONF_H */