More clear code.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14861 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
591ffab1c6
commit
2aadae694c
|
@ -361,6 +361,11 @@
|
|||
*/
|
||||
#define CORTEX_MAX_KERNEL_PRIORITY (CORTEX_PRIORITY_SVCALL + 1)
|
||||
|
||||
/**
|
||||
* @brief Minimum usable priority for normal ISRs.
|
||||
*/
|
||||
#define CORTEX_MIN_KERNEL_PRIORITY (CORTEX_PRIORITY_PENDSV - 1)
|
||||
|
||||
/**
|
||||
* @brief BASEPRI level within kernel lock.
|
||||
*/
|
||||
|
@ -513,7 +518,7 @@ struct port_context {
|
|||
* @brief Priority level verification macro.
|
||||
*/
|
||||
#define PORT_IRQ_IS_VALID_KERNEL_PRIORITY(n) \
|
||||
(((n) >= CORTEX_MAX_KERNEL_PRIORITY) && ((n) < CORTEX_PRIORITY_LEVELS))
|
||||
(((n) >= CORTEX_MAX_KERNEL_PRIORITY) && ((n) <= CORTEX_MIN_KERNEL_PRIORITY))
|
||||
|
||||
/**
|
||||
* @brief Optimized thread function declaration macro.
|
||||
|
|
Loading…
Reference in New Issue