Skip to content

Commit

Permalink
feat: Macros controlling the EVRU/D irqpoller.
Browse files Browse the repository at this point in the history
- Most users will not use this feature so the resources are released by
default.
- It allows configuring the irq polling period of EVRU/D.
  • Loading branch information
jerzyjamroz committed Jan 10, 2024
1 parent eaa0b66 commit 73aea17
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions evgMrmApp/src/evgInit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,8 +536,14 @@ mrmEvgSetupPCI (
delete evg;
return -1;
} else {
new IRQPoller(&EVRMRM::isr_poll, static_cast<void*>(evg->getEvruMrm()), 0.1);
new IRQPoller(&EVRMRM::isr_poll, static_cast<void*>(evg->getEvrdMrm()), 0.1);
// By default the IRQPollers for EVRU/D are disabled.
// __IRQP_EVRU/D_PRD selects the polling perdiod [s] and enables the equivalent EVM embedded EVR.
#ifdef __IRQP_EVRU_PRD
new IRQPoller(&EVRMRM::isr_poll, static_cast<void *>(evg->getEvruMrm()), __IRQP_EVRU_PRD);
#endif
#ifdef __IRQP_EVRD_PRD
new IRQPoller(&EVRMRM::isr_poll, static_cast<void *>(evg->getEvrdMrm()), __IRQP_EVRD_PRD);
#endif
printf("PCI interrupt connected!\n");
}

Expand Down

0 comments on commit 73aea17

Please sign in to comment.