cpu_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright(C) 2017, 2016, Imagination Technologies Limited and/or its
3  * affiliated group companies.
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser
6  * General Public License v2.1. See the file LICENSE in the top level
7  * directory for more details.
8  *
9  */
10 
22 #ifndef CPU_CONF_H
23 #define CPU_CONF_H
24 
25 #ifdef CPU_MODEL_P32MZ2048EFG100
26 #include "vendor/p32mz2048efg100.h"
27 #else
28 #error "No CPU headers for the defined CPU_MODEL found"
29 #endif
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
53 #ifndef THREAD_EXTRA_STACKSIZE_PRINTF
54 #define THREAD_EXTRA_STACKSIZE_PRINTF (1024)
55 #endif
56 
57 #ifndef THREAD_STACKSIZE_DEFAULT
58 #define THREAD_STACKSIZE_DEFAULT (2048)
59 #endif
60 
61 #ifndef THREAD_STACKSIZE_IDLE
62 #ifdef NDEBUG
63 #define THREAD_STACKSIZE_IDLE (512)
64 #else
65 #define THREAD_STACKSIZE_IDLE (512 + THREAD_EXTRA_STACKSIZE_PRINTF)
66 #endif
67 #endif
68 
70 #ifdef __cplusplus
71 }
72 #endif
73 
74 #endif /* CPU_CONF_H */
75