diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-12-17 12:46:10 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-12-17 12:46:10 +0000 |
commit | 56e47668d59b0947c9e969e415d6a797b0704b58 (patch) | |
tree | 962e8bf714c36ea06d6d0ed22957571961109ab9 /os/hal/include | |
parent | bb82aedb91e81713dc3386c5e134dab5342f4eb5 (diff) | |
download | ChibiOS-56e47668d59b0947c9e969e415d6a797b0704b58.tar.gz ChibiOS-56e47668d59b0947c9e969e415d6a797b0704b58.tar.bz2 ChibiOS-56e47668d59b0947c9e969e415d6a797b0704b58.zip |
Added CAN transmission errors handling.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8613 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include')
-rw-r--r-- | os/hal/include/can.h | 12 |
1 files changed, 6 insertions, 6 deletions
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))
/** @} */
/*===========================================================================*/
|