Skip to content

Commit

Permalink
check CAN isr
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Jul 2, 2022
1 parent eed346d commit 4a81e00
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions os/hal/ports/simulator/posix/hal_lld.c
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
6 changes: 6 additions & 0 deletions os/hal/ports/simulator/win32/hal_lld.c
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 4a81e00

Please sign in to comment.