]> git.sur5r.net Git - freertos/blob - FreeRTOS-Labs/Demo/FreeRTOS_Plus_POSIX_with_actor_Windows_Simulator/lib/FreeRTOS-Plus-POSIX/include/portable/FreeRTOS_POSIX_portable_default.h
Add the Labs projects provided in the V10.2.1_191129 zip file.
[freertos] / FreeRTOS-Labs / Demo / FreeRTOS_Plus_POSIX_with_actor_Windows_Simulator / lib / FreeRTOS-Plus-POSIX / include / portable / FreeRTOS_POSIX_portable_default.h
1 /*\r
2  * Amazon FreeRTOS POSIX V1.1.0\r
3  * Copyright (C) 2018 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
4  *\r
5  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
6  * this software and associated documentation files (the "Software"), to deal in\r
7  * the Software without restriction, including without limitation the rights to\r
8  * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\r
9  * the Software, and to permit persons to whom the Software is furnished to do so,\r
10  * subject to the following conditions:\r
11  *\r
12  * The above copyright notice and this permission notice shall be included in all\r
13  * copies or substantial portions of the Software.\r
14  *\r
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
16  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\r
17  * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\r
18  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\r
19  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r
20  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
21  *\r
22  * http://aws.amazon.com/freertos\r
23  * http://www.FreeRTOS.org\r
24  */\r
25 \r
26 /**\r
27  * @file FreeRTOS_POSIX_portable_default.h\r
28  * @brief Defaults for port-specific configuration of FreeRTOS+POSIX.\r
29  */\r
30 \r
31 #ifndef _FREERTOS_POSIX_PORTABLE_DEFAULT_H_\r
32 #define _FREERTOS_POSIX_PORTABLE_DEFAULT_H_\r
33 \r
34 /**\r
35  * @name The FreeRTOS task name given to pthreads.\r
36  */\r
37 /**@{ */\r
38 #ifndef posixconfigPTHREAD_TASK_NAME\r
39     #define posixconfigPTHREAD_TASK_NAME    "pthread" /**< Task name. */\r
40 #endif\r
41 /**@} */\r
42 \r
43 /**\r
44  * @name the FreeRTOS timer name given to POSIX timers.\r
45  */\r
46 /**@{ */\r
47 #ifndef posixconfigTIMER_NAME\r
48     #define posixconfigTIMER_NAME    "timer" /**< Timer name. */\r
49 #endif\r
50 /**@} */\r
51 \r
52 /**\r
53  * @name Defaults for POSIX message queue implementation.\r
54  */\r
55 /**@{ */\r
56 #ifndef posixconfigMQ_MAX_MESSAGES\r
57     #define posixconfigMQ_MAX_MESSAGES    10 /**< Maximum number of messages in an mq at one time. */\r
58 #endif\r
59 \r
60 #ifndef posixconfigMQ_MAX_SIZE\r
61     #define posixconfigMQ_MAX_SIZE    128 /**< Maximum size (in bytes) of each message. */\r
62 #endif\r
63 /**@} */\r
64 \r
65 /**\r
66  * @name POSIX implementation-dependent constants usually defined in limits.h.\r
67  *\r
68  * They are defined here to provide portability between platforms.\r
69  */\r
70 /**@{ */\r
71 #ifndef PTHREAD_STACK_MIN\r
72     #define PTHREAD_STACK_MIN    configMINIMAL_STACK_SIZE * sizeof( StackType_t ) /**< Minimum size in bytes of thread stack storage. */\r
73 #endif\r
74 #ifndef NAME_MAX\r
75     #define NAME_MAX             64                                               /**< Maximum number of bytes in a filename (not including terminating null). */\r
76 #endif\r
77 #ifndef SEM_VALUE_MAX\r
78     #define SEM_VALUE_MAX        0x7FFFU                                          /**< Maximum value of a sem_t. */\r
79 #endif\r
80 /**@} */\r
81 \r
82 /**\r
83  * @name Enable typedefs of POSIX types.\r
84  *\r
85  * Set these values to 1 or 0 to enable or disable the typedefs, respectively.\r
86  * These typedefs should only be disabled if they conflict with system typedefs.\r
87  */\r
88 /**@{ */\r
89 #ifndef posixconfigENABLE_CLOCK_T\r
90     #define posixconfigENABLE_CLOCK_T                1 /**< clock_t in sys/types.h */\r
91 #endif\r
92 #ifndef posixconfigENABLE_CLOCKID_T\r
93     #define posixconfigENABLE_CLOCKID_T              1 /**< clockid_t in sys/types.h */\r
94 #endif\r
95 #ifndef posixconfigENABLE_MODE_T\r
96     #define posixconfigENABLE_MODE_T                 1 /**< mode_t in sys/types.h */\r
97 #endif\r
98 #ifndef posixconfigENABLE_PID_T\r
99     #define posixconfigENABLE_PID_T                  1 /**< pid_t in sys/types.h */\r
100 #endif\r
101 #ifndef posixconfigENABLE_PTHREAD_ATTR_T\r
102     #define posixconfigENABLE_PTHREAD_ATTR_T         1 /**< pthread_attr_t in sys/types.h */\r
103 #endif\r
104 #ifndef posixconfigENABLE_PTHREAD_COND_T\r
105     #define posixconfigENABLE_PTHREAD_COND_T         1 /**< pthread_cond_t in sys/types.h */\r
106 #endif\r
107 #ifndef posixconfigENABLE_PTHREAD_CONDATTR_T\r
108     #define posixconfigENABLE_PTHREAD_CONDATTR_T     1 /**< pthread_condattr_t in sys/types.h */\r
109 #endif\r
110 #ifndef posixconfigENABLE_PTHREAD_MUTEX_T\r
111     #define posixconfigENABLE_PTHREAD_MUTEX_T        1 /**< pthread_mutex_t in sys/types.h */\r
112 #endif\r
113 #ifndef posixconfigENABLE_PTHREAD_MUTEXATTR_T\r
114     #define posixconfigENABLE_PTHREAD_MUTEXATTR_T    1 /**< pthread_mutexattr_t in sys/types.h */\r
115 #endif\r
116 #ifndef posixconfigENABLE_PTHREAD_T\r
117     #define posixconfigENABLE_PTHREAD_T              1 /**< pthread_t in sys/types.h */\r
118 #endif\r
119 #ifndef posixconfigENABLE_SSIZE_T\r
120     #define posixconfigENABLE_SSIZE_T                1 /**< ssize_t in sys/types.h */\r
121 #endif\r
122 #ifndef posixconfigENABLE_TIME_T\r
123     #define posixconfigENABLE_TIME_T                 1 /**< time_t in sys/types.h */\r
124 #endif\r
125 #ifndef posixconfigENABLE_TIMER_T\r
126     #define posixconfigENABLE_TIMER_T                1 /**< timer_t in sys/types.h */\r
127 #endif\r
128 #ifndef posixconfigENABLE_USECONDS_T\r
129     #define posixconfigENABLE_USECONDS_T             1 /**< useconds_t in sys/types.h */\r
130 #endif\r
131 #ifndef posixconfigENABLE_TIMESPEC\r
132     #define posixconfigENABLE_TIMESPEC               1 /**< struct timespec in time.h */\r
133 #endif\r
134 #ifndef posixconfigENABLE_ITIMERSPEC\r
135     #define posixconfigENABLE_ITIMERSPEC             1 /**< struct itimerspec in time.h */\r
136 #endif\r
137 #ifndef posixconfigENABLE_SEM_T\r
138     #define posixconfigENABLE_SEM_T                  1 /**< struct sem_t in semaphore.h */\r
139 #endif\r
140 #ifndef posixconfigENABLE_PTHREAD_BARRIER_T\r
141     #define posixconfigENABLE_PTHREAD_BARRIER_T      1 /**< pthread_barrier_t in sys/types.h */\r
142 #endif\r
143 /**@} */\r
144 \r
145 #endif /* ifndef _FREERTOS_POSIX_PORTABLE_DEFAULT_H_ */\r