2 * Amazon FreeRTOS POSIX V1.1.0
\r
3 * Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
\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
12 * The above copyright notice and this permission notice shall be included in all
\r
13 * copies or substantial portions of the Software.
\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
22 * http://aws.amazon.com/freertos
\r
23 * http://www.FreeRTOS.org
\r
27 * @file FreeRTOS_POSIX_portable_default.h
\r
28 * @brief Defaults for port-specific configuration of FreeRTOS+POSIX.
\r
31 #ifndef _FREERTOS_POSIX_PORTABLE_DEFAULT_H_
\r
32 #define _FREERTOS_POSIX_PORTABLE_DEFAULT_H_
\r
35 * @name The FreeRTOS task name given to pthreads.
\r
38 #ifndef posixconfigPTHREAD_TASK_NAME
\r
39 #define posixconfigPTHREAD_TASK_NAME "pthread" /**< Task name. */
\r
44 * @name the FreeRTOS timer name given to POSIX timers.
\r
47 #ifndef posixconfigTIMER_NAME
\r
48 #define posixconfigTIMER_NAME "timer" /**< Timer name. */
\r
53 * @name Defaults for POSIX message queue implementation.
\r
56 #ifndef posixconfigMQ_MAX_MESSAGES
\r
57 #define posixconfigMQ_MAX_MESSAGES 10 /**< Maximum number of messages in an mq at one time. */
\r
60 #ifndef posixconfigMQ_MAX_SIZE
\r
61 #define posixconfigMQ_MAX_SIZE 128 /**< Maximum size (in bytes) of each message. */
\r
66 * @name POSIX implementation-dependent constants usually defined in limits.h.
\r
68 * They are defined here to provide portability between platforms.
\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
75 #define NAME_MAX 64 /**< Maximum number of bytes in a filename (not including terminating null). */
\r
77 #ifndef SEM_VALUE_MAX
\r
78 #define SEM_VALUE_MAX 0x7FFFU /**< Maximum value of a sem_t. */
\r
83 * @name Enable typedefs of POSIX types.
\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
89 #ifndef posixconfigENABLE_CLOCK_T
\r
90 #define posixconfigENABLE_CLOCK_T 1 /**< clock_t in sys/types.h */
\r
92 #ifndef posixconfigENABLE_CLOCKID_T
\r
93 #define posixconfigENABLE_CLOCKID_T 1 /**< clockid_t in sys/types.h */
\r
95 #ifndef posixconfigENABLE_MODE_T
\r
96 #define posixconfigENABLE_MODE_T 1 /**< mode_t in sys/types.h */
\r
98 #ifndef posixconfigENABLE_PID_T
\r
99 #define posixconfigENABLE_PID_T 1 /**< pid_t in sys/types.h */
\r
101 #ifndef posixconfigENABLE_PTHREAD_ATTR_T
\r
102 #define posixconfigENABLE_PTHREAD_ATTR_T 1 /**< pthread_attr_t in sys/types.h */
\r
104 #ifndef posixconfigENABLE_PTHREAD_COND_T
\r
105 #define posixconfigENABLE_PTHREAD_COND_T 1 /**< pthread_cond_t in sys/types.h */
\r
107 #ifndef posixconfigENABLE_PTHREAD_CONDATTR_T
\r
108 #define posixconfigENABLE_PTHREAD_CONDATTR_T 1 /**< pthread_condattr_t in sys/types.h */
\r
110 #ifndef posixconfigENABLE_PTHREAD_MUTEX_T
\r
111 #define posixconfigENABLE_PTHREAD_MUTEX_T 1 /**< pthread_mutex_t in sys/types.h */
\r
113 #ifndef posixconfigENABLE_PTHREAD_MUTEXATTR_T
\r
114 #define posixconfigENABLE_PTHREAD_MUTEXATTR_T 1 /**< pthread_mutexattr_t in sys/types.h */
\r
116 #ifndef posixconfigENABLE_PTHREAD_T
\r
117 #define posixconfigENABLE_PTHREAD_T 1 /**< pthread_t in sys/types.h */
\r
119 #ifndef posixconfigENABLE_SSIZE_T
\r
120 #define posixconfigENABLE_SSIZE_T 1 /**< ssize_t in sys/types.h */
\r
122 #ifndef posixconfigENABLE_TIME_T
\r
123 #define posixconfigENABLE_TIME_T 1 /**< time_t in sys/types.h */
\r
125 #ifndef posixconfigENABLE_TIMER_T
\r
126 #define posixconfigENABLE_TIMER_T 1 /**< timer_t in sys/types.h */
\r
128 #ifndef posixconfigENABLE_USECONDS_T
\r
129 #define posixconfigENABLE_USECONDS_T 1 /**< useconds_t in sys/types.h */
\r
131 #ifndef posixconfigENABLE_TIMESPEC
\r
132 #define posixconfigENABLE_TIMESPEC 1 /**< struct timespec in time.h */
\r
134 #ifndef posixconfigENABLE_ITIMERSPEC
\r
135 #define posixconfigENABLE_ITIMERSPEC 1 /**< struct itimerspec in time.h */
\r
137 #ifndef posixconfigENABLE_SEM_T
\r
138 #define posixconfigENABLE_SEM_T 1 /**< struct sem_t in semaphore.h */
\r
140 #ifndef posixconfigENABLE_PTHREAD_BARRIER_T
\r
141 #define posixconfigENABLE_PTHREAD_BARRIER_T 1 /**< pthread_barrier_t in sys/types.h */
\r
145 #endif /* ifndef _FREERTOS_POSIX_PORTABLE_DEFAULT_H_ */
\r