mirror of https://github.com/rusefi/ChibiOS.git
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:
parent
0ca0bc18f9
commit
2f46bd9742
|
@ -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 */
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue