diff options
Diffstat (limited to 'os/hal/include/can.h')
-rw-r--r-- | os/hal/include/can.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/os/hal/include/can.h b/os/hal/include/can.h index 234981448..1d8492d28 100644 --- a/os/hal/include/can.h +++ b/os/hal/include/can.h @@ -119,6 +119,11 @@ typedef enum { * @{
*/
/**
+ * @bried Converts a mailbox index to a bit mask.
+ */
+#define CAN_MAILBOX_TO_MASK(mbx) (1 << ((mbx) - 1))
+
+/**
* @brief Adds some flags to the CAN status mask.
*
* @param[in] canp pointer to the @p CANDriver object
|