RTEMS 6.1-rc5
Loading...
Searching...
No Matches
Macros | Typedefs | Functions | Variables
modes.h File Reference

This header file provides the task modes API of the Task Manager. More...

#include <stdint.h>
#include <rtems/score/cpu.h>

Go to the source code of this file.

Macros

#define RTEMS_ALL_MODE_MASKS   0x0000ffff
 This task mode constant is a bit mask with all mode bits set.
 
#define RTEMS_ASR   0x00000000
 This task mode constant indicates that signal processing is disabled.
 
#define RTEMS_ASR_MASK   0x00000400
 This mode constant corresponds to the signal enable/disable bit.
 
#define RTEMS_CURRENT_MODE   0
 This task mode constant indicates that the current task mode of the executing task shall be returned by rtems_task_mode().
 
#define RTEMS_DEFAULT_MODES   0x00000000
 This task mode constant represents the default mode set.
 
#define RTEMS_INTERRUPT_MASK   CPU_MODES_INTERRUPT_MASK
 This task mode constant corresponds to the interrupt enable/disable bits.
 
#define RTEMS_INTERRUPT_LEVEL(_interrupt_level)    ( ( _interrupt_level ) & RTEMS_INTERRUPT_MASK )
 Maps the interrupt level to the associated processor-dependent task mode interrupt level.
 
#define RTEMS_NO_ASR   0x00000400
 This task mode constant indicates that signal processing is disabled.
 
#define RTEMS_NO_PREEMPT   0x00000100
 This task mode constant indicates that preemption is disabled.
 
#define RTEMS_NO_TIMESLICE   0x00000000
 This task mode constant indicates that timeslicing is disabled.
 
#define RTEMS_PREEMPT   0x00000000
 This task mode constant indicates that preemption is enabled.
 
#define RTEMS_PREEMPT_MASK   0x00000100
 This task mode constant corresponds to the preemption enable/disable bit.
 
#define RTEMS_TIMESLICE   0x00000200
 This task mode constant indicates that timeslicing is enabled.
 
#define RTEMS_TIMESLICE_MASK   0x00000200
 This task mode constant corresponds to the timeslice enable/disable bit.
 

Typedefs

typedef uint32_t rtems_mode
 This type represents a Classic API task mode set.
 

Functions

rtems_mode rtems_interrupt_level_body (uint32_t level)
 Maps the interrupt level to the associated processor-dependent task mode interrupt level.
 

Variables

const uint32_t rtems_interrupt_mask
 This task mode constant has the same value as RTEMS_INTERRUPT_MASK.
 

Detailed Description

This header file provides the task modes API of the Task Manager.