1menu "PThreads"
2
3    config PTHREAD_TASK_PRIO_DEFAULT
4        int "Default task priority"
5        range 0 255
6        default 5
7        help
8            Priority used to create new tasks with default pthread parameters.
9
10    config PTHREAD_TASK_STACK_SIZE_DEFAULT
11        int "Default task stack size"
12        default 3072
13        help
14            Stack size used to create new tasks with default pthread parameters.
15
16    config PTHREAD_STACK_MIN
17        int "Minimum allowed pthread stack size"
18        default 768
19        help
20            Minimum allowed pthread stack size set in attributes passed to pthread_create
21
22    choice PTHREAD_TASK_CORE_DEFAULT
23        bool "Default pthread core affinity"
24        default PTHREAD_DEFAULT_CORE_NO_AFFINITY
25        depends on !FREERTOS_UNICORE
26        help
27            The default core to which pthreads are pinned.
28
29        config PTHREAD_DEFAULT_CORE_NO_AFFINITY
30            bool "No affinity"
31        config PTHREAD_DEFAULT_CORE_0
32            bool "Core 0"
33        config PTHREAD_DEFAULT_CORE_1
34            bool "Core 1"
35    endchoice
36
37    config PTHREAD_TASK_CORE_DEFAULT
38        int
39        default -1 if PTHREAD_DEFAULT_CORE_NO_AFFINITY || FREERTOS_UNICORE
40        default 0 if PTHREAD_DEFAULT_CORE_0
41        default 1 if PTHREAD_DEFAULT_CORE_1
42
43    config PTHREAD_TASK_NAME_DEFAULT
44        string "Default name of pthreads"
45        default "pthread"
46        help
47            The default name of pthreads.
48
49endmenu
50