FreeRTOS: POSIX
Return to main page ↑
FreeRTOS_POSIX_portable_default.h
Go to the documentation of this file.
1 /*
2  * FreeRTOS POSIX V1.2.1
3  * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a copy of
6  * this software and associated documentation files (the "Software"), to deal in
7  * the Software without restriction, including without limitation the rights to
8  * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9  * the Software, and to permit persons to whom the Software is furnished to do so,
10  * subject to the following conditions:
11  *
12  * The above copyright notice and this permission notice shall be included in all
13  * copies or substantial portions of the Software.
14  *
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17  * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21  *
22  * http://aws.amazon.com/freertos
23  * http://www.FreeRTOS.org
24  */
25 
31 #ifndef _FREERTOS_POSIX_PORTABLE_DEFAULT_H_
32 #define _FREERTOS_POSIX_PORTABLE_DEFAULT_H_
33 
38 #ifndef posixconfigPTHREAD_TASK_NAME
39  #define posixconfigPTHREAD_TASK_NAME "pthread"
40 #endif
41 
47 #ifndef posixconfigTIMER_NAME
48  #define posixconfigTIMER_NAME "timer"
49 #endif
50 
56 #ifndef posixconfigMQ_MAX_MESSAGES
57  #define posixconfigMQ_MAX_MESSAGES 10
58 #endif
59 
60 #ifndef posixconfigMQ_MAX_SIZE
61  #define posixconfigMQ_MAX_SIZE 128
62 #endif
63 
71 #ifndef PTHREAD_STACK_MIN
72  #define PTHREAD_STACK_MIN configMINIMAL_STACK_SIZE * sizeof( StackType_t )
73 #endif
74 #ifndef NAME_MAX
75  #define NAME_MAX 64
76 #endif
77 #ifndef SEM_VALUE_MAX
78  #define SEM_VALUE_MAX 0x7FFFU
79 #endif
80 
89 #ifndef posixconfigENABLE_CLOCK_T
90  #define posixconfigENABLE_CLOCK_T 1
91 #endif
92 #ifndef posixconfigENABLE_CLOCKID_T
93  #define posixconfigENABLE_CLOCKID_T 1
94 #endif
95 #ifndef posixconfigENABLE_MODE_T
96  #define posixconfigENABLE_MODE_T 1
97 #endif
98 #ifndef posixconfigENABLE_PID_T
99  #define posixconfigENABLE_PID_T 1
100 #endif
101 #ifndef posixconfigENABLE_PTHREAD_ATTR_T
102  #define posixconfigENABLE_PTHREAD_ATTR_T 1
103 #endif
104 #ifndef posixconfigENABLE_PTHREAD_COND_T
105  #define posixconfigENABLE_PTHREAD_COND_T 1
106 #endif
107 #ifndef posixconfigENABLE_PTHREAD_CONDATTR_T
108  #define posixconfigENABLE_PTHREAD_CONDATTR_T 1
109 #endif
110 #ifndef posixconfigENABLE_PTHREAD_MUTEX_T
111  #define posixconfigENABLE_PTHREAD_MUTEX_T 1
112 #endif
113 #ifndef posixconfigENABLE_PTHREAD_MUTEXATTR_T
114  #define posixconfigENABLE_PTHREAD_MUTEXATTR_T 1
115 #endif
116 #ifndef posixconfigENABLE_PTHREAD_T
117  #define posixconfigENABLE_PTHREAD_T 1
118 #endif
119 #ifndef posixconfigENABLE_SSIZE_T
120  #define posixconfigENABLE_SSIZE_T 1
121 #endif
122 #ifndef posixconfigENABLE_TIME_T
123  #define posixconfigENABLE_TIME_T 1
124 #endif
125 #ifndef posixconfigENABLE_TIMER_T
126  #define posixconfigENABLE_TIMER_T 1
127 #endif
128 #ifndef posixconfigENABLE_USECONDS_T
129  #define posixconfigENABLE_USECONDS_T 1
130 #endif
131 #ifndef posixconfigENABLE_TM
132  #define posixconfigENABLE_TM 1
133 #endif
134 #ifndef posixconfigENABLE_TIMESPEC
135  #define posixconfigENABLE_TIMESPEC 1
136 #endif
137 #ifndef posixconfigENABLE_ITIMERSPEC
138  #define posixconfigENABLE_ITIMERSPEC 1
139 #endif
140 #ifndef posixconfigENABLE_SEM_T
141  #define posixconfigENABLE_SEM_T 1
142 #endif
143 #ifndef posixconfigENABLE_PTHREAD_BARRIER_T
144  #define posixconfigENABLE_PTHREAD_BARRIER_T 1
145 #endif
146 
148 #endif /* ifndef _FREERTOS_POSIX_PORTABLE_DEFAULT_H_ */