git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6029 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2013-07-25 14:48:20 +00:00
parent 0ca0bc18f9
commit 2f46bd9742
1 changed files with 4 additions and 0 deletions

View File

@ -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 */
}
/**