- Configure a time stamp timer in the Project BSP (board support file)
- Generate the BSP (right click on the project and generate)
Register the ISR as below
retVal = alt_ic_isr_register(HIGH_RES_TIMER_IRQ_INTERRUPT_CONTROLLER_ID, HIGH_RES_TIMER_IRQ, handle_timer_interrupts, timer_ptr, 0x0);
then it should work, the same must be present in one of the document http://www.altera.com/support/ip/processors/nios2/ips-nios2_support.html