21 #ifndef _RTEMS_RTEMS_MODES_H 22 #define _RTEMS_RTEMS_MODES_H 24 #include <rtems/score/cpu.h> 50 #define RTEMS_ALL_MODE_MASKS 0x0000ffff 55 #define RTEMS_DEFAULT_MODES 0x00000000 61 #define RTEMS_CURRENT_MODE 0 64 #define RTEMS_TIMESLICE_MASK 0x00000200 67 #define RTEMS_PREEMPT_MASK 0x00000100 70 #define RTEMS_ASR_MASK 0x00000400 73 #define RTEMS_INTERRUPT_MASK CPU_MODES_INTERRUPT_MASK 76 #define RTEMS_PREEMPT 0x00000000 78 #define RTEMS_NO_PREEMPT 0x00000100 81 #define RTEMS_NO_TIMESLICE 0x00000000 83 #define RTEMS_TIMESLICE 0x00000200 86 #define RTEMS_ASR 0x00000000 88 #define RTEMS_NO_ASR 0x00000400 100 #define RTEMS_INTERRUPT_LEVEL( _mode_set ) \ 101 ( (_mode_set) & RTEMS_INTERRUPT_MASK ) uint32_t Modes_Control
The following type defines the control block used to manage each a mode set.
Definition: modes.h:44
const uint32_t rtems_interrupt_mask
Interrupt Mask Variable.
Definition: modes.c:27
Modes_Control rtems_interrupt_level_body(uint32_t level)
Body for RTEMS_INTERRUPT_LEVEL Macro.
Definition: modes.c:29