/* * Amazon FreeRTOS+POSIX V1.0.0 * Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * SPDX-FileCopyrightText: 2018 Amazon.com, Inc. or its affiliates * * SPDX-License-Identifier: MIT * * SPDX-FileContributor: 2024 Espressif Systems (Shanghai) CO LTD * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://aws.amazon.com/freertos * http://www.FreeRTOS.org *//* ... *//** * @file FreeRTOS_POSIX_portable_default.h * @brief Defaults for port-specific configuration of FreeRTOS+POSIX. *//* ... */#ifndef_FREERTOS_POSIX_PORTABLE_DEFAULT_H_#define_FREERTOS_POSIX_PORTABLE_DEFAULT_H_/** * @brief The FreeRTOS task name given to pthreads. *//* ... */#ifndefposixconfigPTHREAD_TASK_NAME#defineposixconfigPTHREAD_TASK_NAME"pthread"#endif/** * @brief the FreeRTOS timer name given to POSIX timers. *//* ... */#ifndefposixconfigTIMER_NAME#defineposixconfigTIMER_NAME"timer"#endif/** * @defgroup Defaults for POSIX message queue implementation. *//* ... *//**@{ */#ifndefposixconfigMQ_MAX_MESSAGES#defineposixconfigMQ_MAX_MESSAGES10/**< Maximum number of messages in an mq at one time. */#endif#ifndefposixconfigMQ_MAX_SIZE#defineposixconfigMQ_MAX_SIZE128/**< Maximum size (in bytes) of each message. */#endif/**@} *//** * @defgroup POSIX implementation-dependent constants usually defined in limits.h. * * They are defined here to provide portability between platforms. *//* ... *//**@{ */#ifndefPTHREAD_STACK_MIN#definePTHREAD_STACK_MINconfigMINIMAL_STACK_SIZE*sizeof(StackType_t)/**< Minimum size in bytes of thread stack storage. */#endif#ifndefNAME_MAX#defineNAME_MAX64/**< Maximum number of bytes in a filename (not including terminating null). */#endif#ifndefSEM_VALUE_MAX#defineSEM_VALUE_MAX0xFFFFU/**< Maximum value of a sem_t. */#endif/**@} *//** * @defgroup Enable typedefs of POSIX types. * * Set these values to 1 or 0 to enable or disable the typedefs, respectively. * These typedefs should only be disabled if they conflict with system typedefs. *//* ... *//**@{ */#ifndefposixconfigENABLE_CLOCK_T#defineposixconfigENABLE_CLOCK_T1/**< clock_t in sys/types.h */#endif#ifndefposixconfigENABLE_CLOCKID_T#defineposixconfigENABLE_CLOCKID_T1/**< clockid_t in sys/types.h */#endif#ifndefposixconfigENABLE_MODE_T#defineposixconfigENABLE_MODE_T1/**< mode_t in sys/types.h */#endif#ifndefposixconfigENABLE_PID_T#defineposixconfigENABLE_PID_T1/**< pid_t in sys/types.h */#endif#ifndefposixconfigENABLE_PTHREAD_ATTR_T#defineposixconfigENABLE_PTHREAD_ATTR_T1/**< pthread_attr_t in sys/types.h */#endif#ifndefposixconfigENABLE_PTHREAD_COND_T#defineposixconfigENABLE_PTHREAD_COND_T1/**< pthread_cond_t in sys/types.h */#endif#ifndefposixconfigENABLE_PTHREAD_CONDATTR_T#defineposixconfigENABLE_PTHREAD_CONDATTR_T1/**< pthread_condattr_t in sys/types.h */#endif#ifndefposixconfigENABLE_PTHREAD_MUTEX_T#defineposixconfigENABLE_PTHREAD_MUTEX_T1/**< pthread_mutex_t in sys/types.h */#endif#ifndefposixconfigENABLE_PTHREAD_MUTEXATTR_T#defineposixconfigENABLE_PTHREAD_MUTEXATTR_T1/**< pthread_mutexattr_t in sys/types.h */#endif#ifndefposixconfigENABLE_PTHREAD_T#defineposixconfigENABLE_PTHREAD_T1/**< pthread_t in sys/types.h */#endif#ifndefposixconfigENABLE_SSIZE_T#defineposixconfigENABLE_SSIZE_T1/**< ssize_t in sys/types.h */#endif#ifndefposixconfigENABLE_TIME_T#defineposixconfigENABLE_TIME_T1/**< time_t in sys/types.h */#endif#ifndefposixconfigENABLE_TIMER_T#defineposixconfigENABLE_TIMER_T1/**< timer_t in sys/types.h */#endif#ifndefposixconfigENABLE_USECONDS_T#defineposixconfigENABLE_USECONDS_T1/**< useconds_t in sys/types.h */#endif#ifndefposixconfigENABLE_TIMESPEC#defineposixconfigENABLE_TIMESPEC1/**< struct timespec in time.h */#endif#ifndefposixconfigENABLE_ITIMERSPEC#defineposixconfigENABLE_ITIMERSPEC1/**< struct itimerspec in time.h */#endif#ifndefposixconfigENABLE_TM#defineposixconfigENABLE_TM1/**< struct tm in time.h */#endif/**@} *//* ... */#endif/* ifndef _FREERTOS_POSIX_PORTABLE_DEFAULT_H_ */
Details
Show: from
Types: Columns:
All items filtered out
All items filtered out
This file uses the notable symbols shown below. Click anywhere in the file to view more details.