FreeRTOS: POSIX
Return to main page ↑
FreeRTOS_POSIX_portable_default.h File Reference

Defaults for port-specific configuration of FreeRTOS+POSIX. More...

Go to the source code of this file.

Macros

The FreeRTOS task name given to pthreads.
#define posixconfigPTHREAD_TASK_NAME   "pthread"
 
the FreeRTOS timer name given to POSIX timers.
#define posixconfigTIMER_NAME   "timer"
 
Defaults for POSIX message queue implementation.
#define posixconfigMQ_MAX_MESSAGES   10
 
#define posixconfigMQ_MAX_SIZE   128
 
POSIX implementation-dependent constants usually defined in limits.h.

They are defined here to provide portability between platforms.

#define PTHREAD_STACK_MIN   configMINIMAL_STACK_SIZE * sizeof( StackType_t )
 
#define NAME_MAX   64
 
#define SEM_VALUE_MAX   0x7FFFU
 
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.

#define posixconfigENABLE_CLOCK_T   1
 
#define posixconfigENABLE_CLOCKID_T   1
 
#define posixconfigENABLE_MODE_T   1
 
#define posixconfigENABLE_PID_T   1
 
#define posixconfigENABLE_PTHREAD_ATTR_T   1
 
#define posixconfigENABLE_PTHREAD_COND_T   1
 
#define posixconfigENABLE_PTHREAD_CONDATTR_T   1
 
#define posixconfigENABLE_PTHREAD_MUTEX_T   1
 
#define posixconfigENABLE_PTHREAD_MUTEXATTR_T   1
 
#define posixconfigENABLE_PTHREAD_T   1
 
#define posixconfigENABLE_SSIZE_T   1
 
#define posixconfigENABLE_TIME_T   1
 
#define posixconfigENABLE_TIMER_T   1
 
#define posixconfigENABLE_USECONDS_T   1
 
#define posixconfigENABLE_TM   1
 
#define posixconfigENABLE_TIMESPEC   1
 
#define posixconfigENABLE_ITIMERSPEC   1
 
#define posixconfigENABLE_SEM_T   1
 
#define posixconfigENABLE_PTHREAD_BARRIER_T   1
 

Detailed Description

Defaults for port-specific configuration of FreeRTOS+POSIX.

Macro Definition Documentation

◆ posixconfigPTHREAD_TASK_NAME

#define posixconfigPTHREAD_TASK_NAME   "pthread"

Task name.

◆ posixconfigTIMER_NAME

#define posixconfigTIMER_NAME   "timer"

Timer name.

◆ posixconfigMQ_MAX_MESSAGES

#define posixconfigMQ_MAX_MESSAGES   10

Maximum number of messages in an mq at one time.

◆ posixconfigMQ_MAX_SIZE

#define posixconfigMQ_MAX_SIZE   128

Maximum size (in bytes) of each message.

◆ PTHREAD_STACK_MIN

#define PTHREAD_STACK_MIN   configMINIMAL_STACK_SIZE * sizeof( StackType_t )

Minimum size in bytes of thread stack storage.

◆ NAME_MAX

#define NAME_MAX   64

Maximum number of bytes in a filename (not including terminating null).

◆ SEM_VALUE_MAX

#define SEM_VALUE_MAX   0x7FFFU

Maximum value of a sem_t.

◆ posixconfigENABLE_CLOCK_T

#define posixconfigENABLE_CLOCK_T   1

clock_t in sys/types.h

◆ posixconfigENABLE_CLOCKID_T

#define posixconfigENABLE_CLOCKID_T   1

clockid_t in sys/types.h

◆ posixconfigENABLE_MODE_T

#define posixconfigENABLE_MODE_T   1

mode_t in sys/types.h

◆ posixconfigENABLE_PID_T

#define posixconfigENABLE_PID_T   1

pid_t in sys/types.h

◆ posixconfigENABLE_PTHREAD_ATTR_T

#define posixconfigENABLE_PTHREAD_ATTR_T   1

pthread_attr_t in sys/types.h

◆ posixconfigENABLE_PTHREAD_COND_T

#define posixconfigENABLE_PTHREAD_COND_T   1

pthread_cond_t in sys/types.h

◆ posixconfigENABLE_PTHREAD_CONDATTR_T

#define posixconfigENABLE_PTHREAD_CONDATTR_T   1

pthread_condattr_t in sys/types.h

◆ posixconfigENABLE_PTHREAD_MUTEX_T

#define posixconfigENABLE_PTHREAD_MUTEX_T   1

pthread_mutex_t in sys/types.h

◆ posixconfigENABLE_PTHREAD_MUTEXATTR_T

#define posixconfigENABLE_PTHREAD_MUTEXATTR_T   1

pthread_mutexattr_t in sys/types.h

◆ posixconfigENABLE_PTHREAD_T

#define posixconfigENABLE_PTHREAD_T   1

pthread_t in sys/types.h

◆ posixconfigENABLE_SSIZE_T

#define posixconfigENABLE_SSIZE_T   1

ssize_t in sys/types.h

◆ posixconfigENABLE_TIME_T

#define posixconfigENABLE_TIME_T   1

time_t in sys/types.h

◆ posixconfigENABLE_TIMER_T

#define posixconfigENABLE_TIMER_T   1

timer_t in sys/types.h

◆ posixconfigENABLE_USECONDS_T

#define posixconfigENABLE_USECONDS_T   1

useconds_t in sys/types.h

◆ posixconfigENABLE_TM

#define posixconfigENABLE_TM   1

struct tm in time.h

◆ posixconfigENABLE_TIMESPEC

#define posixconfigENABLE_TIMESPEC   1

struct timespec in time.h

◆ posixconfigENABLE_ITIMERSPEC

#define posixconfigENABLE_ITIMERSPEC   1

struct itimerspec in time.h

◆ posixconfigENABLE_SEM_T

#define posixconfigENABLE_SEM_T   1

struct sem_t in semaphore.h

◆ posixconfigENABLE_PTHREAD_BARRIER_T

#define posixconfigENABLE_PTHREAD_BARRIER_T   1

pthread_barrier_t in sys/types.h