stm32h7: socket CAN error handling.

This commit is contained in:
rajvinder kaur
2023-01-27 08:30:25 -05:00
committed by Xiang Xiao
parent 0842a291e0
commit 2b30f17607
4 changed files with 560 additions and 37 deletions
+3
View File
@@ -221,6 +221,9 @@
#define CAN_ERR_BUSOFF (1 << 6) /* Bit 6: Bus off */
#define CAN_ERR_BUSERROR (1 << 7) /* Bit 7: Bus error */
#define CAN_ERR_RESTARTED (1 << 8) /* Bit 8: Controller restarted */
#define CAN_ERR_CNT (1 << 9) /* Tx error counter / data[6]
* Rx error counter / data[7]
*/
/* The remaining definitions described the error report payload that follows
* the CAN header.