drivers: can: rcar: add RX overrun counter statistic support
Add support for the RX overrun statistics counter to the Renesas R-Car CAN driver. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
8b896fdf01
commit
51cac9e04f
1 changed files with 1 additions and 0 deletions
|
@ -346,6 +346,7 @@ static void can_rcar_error(const struct device *dev)
|
|||
}
|
||||
if (eifr & RCAR_CAN_EIFR_ORIF) {
|
||||
LOG_DBG("Receive overrun error interrupt\n");
|
||||
CAN_STATS_RX_OVERRUN_INC(dev);
|
||||
sys_write8((uint8_t)~RCAR_CAN_EIFR_ORIF,
|
||||
config->reg_addr + RCAR_CAN_EIFR);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue