56#ifndef _RTEMS_RTEMS_MODES_H
57#define _RTEMS_RTEMS_MODES_H
60#include <rtems/score/cpu.h>
83#define RTEMS_ALL_MODE_MASKS 0x0000ffff
92#define RTEMS_ASR 0x00000000
101#define RTEMS_ASR_MASK 0x00000400
111#define RTEMS_CURRENT_MODE 0
120#define RTEMS_DEFAULT_MODES 0x00000000
130#define RTEMS_INTERRUPT_MASK CPU_MODES_INTERRUPT_MASK
151#define RTEMS_INTERRUPT_LEVEL( _interrupt_level ) \
152 ( ( _interrupt_level ) & RTEMS_INTERRUPT_MASK )
200#define RTEMS_NO_ASR 0x00000400
209#define RTEMS_NO_PREEMPT 0x00000100
218#define RTEMS_NO_TIMESLICE 0x00000000
227#define RTEMS_PREEMPT 0x00000000
237#define RTEMS_PREEMPT_MASK 0x00000100
246#define RTEMS_TIMESLICE 0x00000200
256#define RTEMS_TIMESLICE_MASK 0x00000200
rtems_mode rtems_interrupt_level_body(uint32_t level)
Maps the interrupt level to the associated processor-dependent task mode interrupt level.
Definition: modes.c:49
const uint32_t rtems_interrupt_mask
This task mode constant has the same value as RTEMS_INTERRUPT_MASK.
Definition: modes.c:47
uint32_t rtems_mode
This type represents a Classic API task mode set.
Definition: modes.h:174