diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-11-10 15:17:28 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-11-18 07:30:35 +0100 |
commit | 408609f6b9cd8e03d3886b7c150efbf7e59b5fb0 (patch) | |
tree | 0c4ec2f82334c0efb93f1222e4ee80a6ada166ce /cpukit/score/include/rtems/score/isrlevel.h | |
parent | score: Restrict task interrupt level to 0 on SMP (diff) | |
download | rtems-408609f6b9cd8e03d3886b7c150efbf7e59b5fb0.tar.bz2 |
score: Add _ISR_Is_enabled()
In contrast to _ISR_Get_level() the _ISR_Is_enabled() function evaluates
a level parameter and returns a boolean value.
Update #2811.
Diffstat (limited to 'cpukit/score/include/rtems/score/isrlevel.h')
-rw-r--r-- | cpukit/score/include/rtems/score/isrlevel.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/isrlevel.h b/cpukit/score/include/rtems/score/isrlevel.h index 2ad1740cd4..abfb1b67fc 100644 --- a/cpukit/score/include/rtems/score/isrlevel.h +++ b/cpukit/score/include/rtems/score/isrlevel.h @@ -105,6 +105,18 @@ typedef uint32_t ISR_Level; } while (0) /** + * @brief Returns true if interrupts are enabled in the specified interrupt + * level, otherwise returns false. + * + * @param[in] _level The ISR level. + * + * @retval true Interrupts are enabled in the interrupt level. + * @retval false Otherwise. + */ +#define _ISR_Is_enabled( _level ) \ + _CPU_ISR_Is_enabled( _level ) + +/** * @brief Return current interrupt level. * * This routine returns the current interrupt level. |