drivers: can: stm32: add RX overrun counter statistic support
Add support for the RX overrun statistics counter to the ST STM32 bxCAN driver. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
5517a935d0
commit
8b896fdf01
1 changed files with 1 additions and 0 deletions
|
@ -127,6 +127,7 @@ static inline void can_stm32_rx_isr_handler(const struct device *dev)
|
|||
|
||||
if (can->RF0R & CAN_RF0R_FOVR0) {
|
||||
LOG_ERR("RX FIFO Overflow");
|
||||
CAN_STATS_RX_OVERRUN_INC(dev);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue