Forum Discussion
Altera_Forum
Honored Contributor
13 years agoOk!
it means my LATTICE_pci_intr_handler function handle all the MSI(0-7) GENERATED IRQ. But let assume I want to test my CAN and UART by a simple function to make sure the appropriate function will be called depending on which device assert the Interrupt. void testCAN() { printf ("Called by CAN BUS!\n"); } and void testUART() { printf ("Called by UART!\n"); } How can I implemented these 2 functions within the Interrupt Handler or should I simply test the IRQ Number and called the related function ?? 0--CAN 1--UART ...