diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2025-03-19 22:14:19 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2025-04-03 13:32:23 -0400 |
commit | 8176ba22aa6cca9ad2e470ce927d784281f3f3d7 (patch) | |
tree | a1c4757822f1409a6b460f263785fad8df674aeb /src/stm32/can.c | |
parent | 4b9add2fc30ef4777796212cead0f1977e822538 (diff) | |
download | kutter-8176ba22aa6cca9ad2e470ce927d784281f3f3d7.tar.gz kutter-8176ba22aa6cca9ad2e470ce927d784281f3f3d7.tar.xz kutter-8176ba22aa6cca9ad2e470ce927d784281f3f3d7.zip |
stm32: Turn on can.c error interrupts
It seems both ERRIE and LECIE must be enabled to get hardware error
interrupts. Without this, the rx_error and tx_error reports are
likely to always be zero.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stm32/can.c')
-rw-r--r-- | src/stm32/can.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm32/can.c b/src/stm32/can.c index 6d35e677..30f8fc90 100644 --- a/src/stm32/can.c +++ b/src/stm32/can.c @@ -333,6 +333,6 @@ can_init(void) armcm_enable_irq(CAN_IRQHandler, CAN_TX_IRQn, 0); if (CAN_RX0_IRQn != CAN_SCE_IRQn) armcm_enable_irq(CAN_IRQHandler, CAN_SCE_IRQn, 0); - SOC_CAN->IER = CAN_IER_FMPIE0 | CAN_IER_ERRIE; + SOC_CAN->IER = CAN_IER_FMPIE0 | CAN_IER_ERRIE | CAN_IER_LECIE; } DECL_INIT(can_init); |