17 #ifndef _RTEMS_RTEMS_MODESIMPL_H 18 #define _RTEMS_RTEMS_MODESIMPL_H 46 return ( mode_set & masks ) ? true :
false;
132 _out_mode = old_mode_set;
134 _out_mode |= new_mode_set & mask;
135 *changed = _out_mode ^ old_mode_set;
136 *out_mode_set = _out_mode;
This header file defines the task modes of the Task Manager API.
static __inline__ bool _Modes_Is_asr_disabled(rtems_mode mode_set)
Checks if mode_set says that Asynchronous Signal Processing is disabled.
#define RTEMS_INTERRUPT_MASK
This task mode constant corresponds to the interrupt enable/disable bits.
#define RTEMS_TIMESLICE
This task mode constant is used to indicate timeslicing is enabled.
#define RTEMS_TIMESLICE_MASK
This task mode constant corresponds to the timeslice enable/disable bit.
#define _ISR_Set_level(_new_level)
Set current interrupt level.
static __inline__ bool _Modes_Is_timeslice(rtems_mode mode_set)
Checks if mode_set indicates that timeslicing is enabled.
static __inline__ ISR_Level _Modes_Get_interrupt_level(rtems_mode mode_set)
Gets the interrupt level portion of the mode_set.
#define RTEMS_ASR_MASK
This mode constant corresponds to the signal enable/disable bit.
#define RTEMS_PREEMPT
This task mode constant is used to indicate preemption is enabled.
#define RTEMS_NO_ASR
This task mode constant is used to indicate signal processing is disabled.
uint32_t rtems_mode
This type is used to represent a task mode set.
static __inline__ bool _Modes_Mask_changed(rtems_mode mode_set, rtems_mode masks)
Checks if any of the mode flags in mask are set in mode_set.
#define RTEMS_PREEMPT_MASK
This task mode constant corresponds to the preemption enable/disable bit.
static __inline__ void _Modes_Change(rtems_mode old_mode_set, rtems_mode new_mode_set, rtems_mode mask, rtems_mode *out_mode_set, rtems_mode *changed)
Changes the modes in old_mode_set indicated by mask to the requested values in new_mode_set.
static __inline__ void _Modes_Set_interrupt_level(rtems_mode mode_set)
Sets the current interrupt level to that specified in the mode_set.
static __inline__ bool _Modes_Is_preempt(rtems_mode mode_set)
Checks if mode_set indicates that preemption is enabled.
#define RTEMS_INLINE_ROUTINE
Gives a hint to the compiler in a function declaration to inline this function.