diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-07-25 14:48:20 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-07-25 14:48:20 +0000 |
commit | 2f46bd9742047fac9ed3d139396b112120e2eada (patch) | |
tree | f8efee9f52dd5b4564d80a2040f2b0e884192287 /os/ports | |
parent | 0ca0bc18f97a40b9637f225a114f740b30db5cc1 (diff) | |
download | ChibiOS-2f46bd9742047fac9ed3d139396b112120e2eada.tar.gz ChibiOS-2f46bd9742047fac9ed3d139396b112120e2eada.tar.bz2 ChibiOS-2f46bd9742047fac9ed3d139396b112120e2eada.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6029 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/ports')
-rw-r--r-- | os/ports/GCC/ARMCMx/chcore_v7m.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/os/ports/GCC/ARMCMx/chcore_v7m.h b/os/ports/GCC/ARMCMx/chcore_v7m.h index 9d81d1839..9bf9dafb2 100644 --- a/os/ports/GCC/ARMCMx/chcore_v7m.h +++ b/os/ports/GCC/ARMCMx/chcore_v7m.h @@ -456,7 +456,11 @@ static inline syssts_t port_get_irq_status(void) { */
static inline bool port_irq_enabled(syssts_t sts) {
+#if !CORTEX_SIMPLIFIED_PRIORITY
return sts >= CORTEX_BASEPRI_KERNEL;
+#else /* CORTEX_SIMPLIFIED_PRIORITY */
+ return (sts & 1) == 0;
+#endif /* CORTEX_SIMPLIFIED_PRIORITY */
}
/**
|