//***************************************************************************** // //! Gets the priority masking level //! //! This function gets the current setting of the interrupt priority masking //! level. The value returned is the priority level such that all interrupts //! of that and lesser priority are masked. A value of 0 means that priority //! masking is disabled. //! //! Smaller numbers correspond to higher interrupt priorities. So for example //! a priority level mask of 4 allows interrupts of priority level 0-3, //! and interrupts with a numerical priority of 4 and greater are blocked. //! //! The hardware priority mechanism only looks at the upper 3 bits of the //! priority level, so any prioritization must be performed in those bits. //! //! \b Example: Get the current interrupt priority mask. //! //! \verbatim //! // //! // Get the current interrupt priority mask. //! // //! IntPriorityMaskGet(); //! \endverbatim //! //! \return Returns the value of the interrupt priority level mask. // //***************************************************************************** uint32_t IntPriorityMaskGet(void) { // // Return the current priority mask. // return(CPUbasepriGet()); }
//***************************************************************************** // //! Gets the priority masking level //! //! This function gets the current setting of the interrupt priority masking //! level. The value returned is the priority level such that all interrupts //! of that and lesser priority are masked. A value of 0 means that priority //! masking is disabled. //! //! Smaller numbers correspond to higher interrupt priorities. So for example //! a priority level mask of 4 allows interrupts of priority level 0-3, //! and interrupts with a numerical priority of 4 and greater are blocked. //! //! The hardware priority mechanism only looks at the upper N bits of the //! priority level (where N is 3 for the Stellaris family), so any //! prioritization must be performed in those bits. //! //! \return Returns the value of the interrupt priority level mask. // //***************************************************************************** unsigned long IntPriorityMaskGet(void) { return(CPUbasepriGet()); }