Skip to content

Commit 8b896fd

Browse files
henrikbrixandersenmbolivar-nordic
authored andcommitted
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 <[email protected]>
1 parent 5517a93 commit 8b896fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/can/can_stm32.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ static inline void can_stm32_rx_isr_handler(const struct device *dev)
127127

128128
if (can->RF0R & CAN_RF0R_FOVR0) {
129129
LOG_ERR("RX FIFO Overflow");
130+
CAN_STATS_RX_OVERRUN_INC(dev);
130131
}
131132
}
132133

0 commit comments

Comments
 (0)