Forum Discussion
Altera_Forum
Honored Contributor
20 years agonr_timer_milliseconds not found?
Hello Friends! When I compile this piece of code #include <asm/timer_struct.h>
int Timer_TimerDif(Timer_Data_t *timerData)
{
return nr_timer_milliseconds()-timerData->iStartTimer;
} I...
Altera_Forum
Honored Contributor
20 years agoLothar,
I haven't used this before, but I believe you need to create a timer in you Nios core and call it na_timer1. A note claims this will tie up the counter completely, so it is probably best anyway. The function is defined in timer_milliseconds.c If you did a standard installation, the path will be (from a nios terminal) cygdrive/c/altera/kits/nios2/components/altera_avalon_timer/sdk_c/lib/ Doug