From 01f8cbc9cb4876f07e28413fe3f7007180d772ac Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Sat, 2 Jul 2022 12:35:46 -0700 Subject: [PATCH] check CAN isr --- os/hal/ports/simulator/posix/hal_lld.c | 6 ++++++ os/hal/ports/simulator/win32/hal_lld.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/os/hal/ports/simulator/posix/hal_lld.c b/os/hal/ports/simulator/posix/hal_lld.c index 0015f5b24..d0c50795a 100755 --- a/os/hal/ports/simulator/posix/hal_lld.c +++ b/os/hal/ports/simulator/posix/hal_lld.c @@ -92,6 +92,12 @@ void _sim_check_for_interrupts(void) { CH_IRQ_EPILOGUE(); } +#if HAL_USE_CAN + if (check_can_isr()) { + int_occurred = true; + } +#endif + if (int_occurred) { _dbg_check_lock(); if (chSchIsPreemptionRequired()) diff --git a/os/hal/ports/simulator/win32/hal_lld.c b/os/hal/ports/simulator/win32/hal_lld.c index 5b50ca5c3..f17c641f3 100644 --- a/os/hal/ports/simulator/win32/hal_lld.c +++ b/os/hal/ports/simulator/win32/hal_lld.c @@ -99,6 +99,12 @@ void _sim_check_for_interrupts(void) { CH_IRQ_EPILOGUE(); } +#if HAL_USE_CAN + if (check_can_isr()) { + int_occurred = true; + } +#endif + if (int_occurred) { _dbg_check_lock(); if (chSchIsPreemptionRequired())