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 
10 #ifndef CPU_CONF_H
11 #define CPU_CONF_H
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
37 #define __FOPEN_MAX__ 4
38 #define __FILENAME_MAX__ 12
39 
45 #define THREAD_EXTRA_STACKSIZE_PRINTF_FLOAT (4096)
46 #define THREAD_EXTRA_STACKSIZE_PRINTF (2048)
47 
48 #ifndef THREAD_STACKSIZE_DEFAULT
49 #define THREAD_STACKSIZE_DEFAULT (512)
50 #endif
51 
52 #define THREAD_STACKSIZE_IDLE (160)
53 
59 /* The idle stack of '160' is not enough to do the 'msg_receive'.
60  * It currently used '164' bytes. */
61 #define CONFIG_PTHREAD_REAPER_BASE_STACKSIZE (2*THREAD_STACKSIZE_IDLE)
62 
68 #define CC_CONF_INLINE inline
69 #define CC_CONF_USED __attribute__((used))
70 #define CC_CONF_NONNULL(...) __attribute__((nonnull(__VA_ARGS__)))
71 #define CC_CONF_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
72 
77 #define PUF_SRAM_ATTRIBUTES __attribute__((used, section(".noinit")))
78 
79 #ifdef __cplusplus
80 }
81 #endif
82 
84 #endif /* CPU_CONF_H */