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. More...
 
#define THREAD_STACKSIZE_IDLE
 Size of the idle task's stack in bytes. More...
 
#define THREAD_EXTRA_STACKSIZE_PRINTF
 Size of the task's printf stack in bytes. More...
 
#define THREAD_STACKSIZE_MAIN
 Size of the main task's stack in bytes. More...
 
#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. More...
 

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_MAIN

#define THREAD_PRIORITY_MAIN
Value:
#define SCHED_PRIO_LEVELS
The number of thread priority levels.
Definition: sched.h:180
#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_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_MAIN

#define THREAD_STACKSIZE_MAIN
Value:
THREAD_EXTRA_STACKSIZE_PRINTF)
#define THREAD_STACKSIZE_DEFAULT
A reasonable default stack size that will suffice most smaller tasks.
Definition: thread_config.h:43

Size of the main task's stack in bytes.

Definition at line 79 of file thread_config.h.