diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-03-26 11:12:55 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-03-26 11:12:55 +0000 |
commit | a3e2fd30898b3890a53a505103b5e2535fc34533 (patch) | |
tree | c4f074a1fc366fe6c30b948e1c137e3a47babd86 /os/hal/osal/nil | |
parent | e54e465a69b55dc88710cba9e7b6f0e88bd4a618 (diff) | |
download | ChibiOS-a3e2fd30898b3890a53a505103b5e2535fc34533.tar.gz ChibiOS-a3e2fd30898b3890a53a505103b5e2535fc34533.tar.bz2 ChibiOS-a3e2fd30898b3890a53a505103b5e2535fc34533.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7810 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/osal/nil')
-rw-r--r-- | os/hal/osal/nil/osal.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/os/hal/osal/nil/osal.h b/os/hal/osal/nil/osal.h index 0c3541efd..c20e7ef15 100644 --- a/os/hal/osal/nil/osal.h +++ b/os/hal/osal/nil/osal.h @@ -109,6 +109,21 @@ #endif
/** @} */
+/**
+ * @name IRQ-related constants
+ * @{
+ */
+/**
+ * @brief Total priority levels.
+ */
+#define OSAL_IRQ_PRIORITY_LEVELS CORTEX_PRIORITY_LEVELS
+
+/**
+ * @brief Highest IRQ priority for HAL drivers.
+ */
+#define OSAL_IRQ_MAXIMUM_PRIORITY CORTEX_MAX_KERNEL_PRIORITY
+/** @} */
+
/*===========================================================================*/
/* Module pre-compile time settings. */
/*===========================================================================*/
@@ -278,6 +293,11 @@ typedef struct { * @{
*/
/**
+ * @brief Priority level verification macro.
+ */
+#define OSAL_IRQ_IS_VALID_PRIORITY(n) CORTEX_IS_VALID_KERNEL_PRIORITY(n)
+
+/**
* @brief IRQ prologue code.
* @details This macro must be inserted at the start of all IRQ handlers.
*/
|