From 56e47668d59b0947c9e969e415d6a797b0704b58 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Thu, 17 Dec 2015 12:46:10 +0000 Subject: Added CAN transmission errors handling. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8613 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/include/can.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'os/hal/include') diff --git a/os/hal/include/can.h b/os/hal/include/can.h index 9fd9a09ca..fe4386089 100644 --- a/os/hal/include/can.h +++ b/os/hal/include/can.h @@ -38,23 +38,23 @@ /** * @brief Errors rate warning. */ -#define CAN_LIMIT_WARNING 1 +#define CAN_LIMIT_WARNING 1U /** * @brief Errors rate error. */ -#define CAN_LIMIT_ERROR 2 +#define CAN_LIMIT_ERROR 2U /** * @brief Bus off condition reached. */ -#define CAN_BUS_OFF_ERROR 4 +#define CAN_BUS_OFF_ERROR 4U /** * @brief Framing error of some kind on the CAN bus. */ -#define CAN_FRAMING_ERROR 8 +#define CAN_FRAMING_ERROR 8U /** * @brief Overflow in receive queue. */ -#define CAN_OVERFLOW_ERROR 16 +#define CAN_OVERFLOW_ERROR 16U /** @} */ /** @@ -113,7 +113,7 @@ typedef enum { /** * @brief Converts a mailbox index to a bit mask. */ -#define CAN_MAILBOX_TO_MASK(mbx) (1 << ((mbx) - 1)) +#define CAN_MAILBOX_TO_MASK(mbx) (1U << ((mbx) - 1U)) /** @} */ /*===========================================================================*/ -- cgit v1.2.3