Loading...
Searching...
No Matches
thread_config.h File Reference

Thread configuration defines. More...

Detailed Description

Thread configuration defines.

Author
Kaspar Schleiser kaspa.nosp@m.r@sc.nosp@m.hleis.nosp@m.er.d.nosp@m.e

Definition in file thread_config.h.

#include "cpu_conf.h"
#include "sched.h"
+ Include dependency graph for thread_config.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

#define THREAD_STACKSIZE_DEFAULT
 A reasonable default stack size that will suffice most smaller tasks.
 
#define THREAD_STACKSIZE_IDLE
 Size of the idle task's stack in bytes.
 
#define THREAD_EXTRA_STACKSIZE_PRINTF
 Size of the task's printf stack in bytes.
 
#define THREAD_STACKSIZE_MAIN
 Size of the main task's stack in bytes.
 
#define THREAD_STACKSIZE_LARGE   (THREAD_STACKSIZE_MEDIUM * 2)
 Large stack size.
 
#define THREAD_STACKSIZE_MEDIUM   THREAD_STACKSIZE_DEFAULT
 Medium stack size.
 
#define THREAD_STACKSIZE_SMALL   (THREAD_STACKSIZE_MEDIUM / 2)
 Small stack size.
 
#define THREAD_STACKSIZE_TINY   (THREAD_STACKSIZE_MEDIUM / 4)
 Tiny stack size.
 
#define THREAD_STACKSIZE_MINIMUM   (sizeof(thread_t))
 Minimum stack size.
 
#define THREAD_PRIORITY_MIN   (SCHED_PRIO_LEVELS - 1)
 Least priority a thread can have.
 
#define THREAD_PRIORITY_IDLE   (THREAD_PRIORITY_MIN)
 Priority of the idle thread.
 
#define THREAD_PRIORITY_MAIN
 Priority of the main thread.
 

Macro Definition Documentation

◆ THREAD_EXTRA_STACKSIZE_PRINTF

#define THREAD_EXTRA_STACKSIZE_PRINTF

Size of the task's printf stack in bytes.

Note
This value must be defined by the CPU specific implementation, please take a look at cpu/$CPU/include/cpu_conf.h

Definition at line 71 of file thread_config.h.

◆ THREAD_PRIORITY_IDLE

#define THREAD_PRIORITY_IDLE   (THREAD_PRIORITY_MIN)

Priority of the idle thread.

Definition at line 128 of file thread_config.h.

◆ THREAD_PRIORITY_MAIN

#define THREAD_PRIORITY_MAIN
Value:
#define SCHED_PRIO_LEVELS
The number of thread priority levels.
Definition sched.h:194
#define THREAD_PRIORITY_MIN
Least priority a thread can have.

Priority of the main thread.

Definition at line 135 of file thread_config.h.

◆ THREAD_PRIORITY_MIN

#define THREAD_PRIORITY_MIN   (SCHED_PRIO_LEVELS - 1)

Least priority a thread can have.

Definition at line 122 of file thread_config.h.

◆ THREAD_STACKSIZE_DEFAULT

#define THREAD_STACKSIZE_DEFAULT

A reasonable default stack size that will suffice most smaller tasks.

Note
This value must be defined by the CPU specific implementation, please take a look at cpu/$CPU/include/cpu_conf.h

Definition at line 43 of file thread_config.h.

◆ THREAD_STACKSIZE_IDLE

#define THREAD_STACKSIZE_IDLE

Size of the idle task's stack in bytes.

Note
This value must be defined by the CPU specific implementation, please take a look at cpu/$CPU/include/cpu_conf.h

Definition at line 57 of file thread_config.h.

◆ THREAD_STACKSIZE_LARGE

#define THREAD_STACKSIZE_LARGE   (THREAD_STACKSIZE_MEDIUM * 2)

Large stack size.

Definition at line 87 of file thread_config.h.

◆ THREAD_STACKSIZE_MAIN

#define THREAD_STACKSIZE_MAIN
Value:
#define THREAD_STACKSIZE_DEFAULT
A reasonable default stack size that will suffice most smaller tasks.
#define THREAD_EXTRA_STACKSIZE_PRINTF
Size of the task's printf stack in bytes.

Size of the main task's stack in bytes.

Definition at line 79 of file thread_config.h.

◆ THREAD_STACKSIZE_MEDIUM

#define THREAD_STACKSIZE_MEDIUM   THREAD_STACKSIZE_DEFAULT

Medium stack size.

Definition at line 94 of file thread_config.h.

◆ THREAD_STACKSIZE_MINIMUM

#define THREAD_STACKSIZE_MINIMUM   (sizeof(thread_t))

Minimum stack size.

Definition at line 115 of file thread_config.h.

◆ THREAD_STACKSIZE_SMALL

#define THREAD_STACKSIZE_SMALL   (THREAD_STACKSIZE_MEDIUM / 2)

Small stack size.

Definition at line 101 of file thread_config.h.

◆ THREAD_STACKSIZE_TINY

#define THREAD_STACKSIZE_TINY   (THREAD_STACKSIZE_MEDIUM / 4)

Tiny stack size.

Definition at line 108 of file thread_config.h.