#include "sys/alt_timestamp.h"# include "my_app.h"
alt_u32 time1;
alt_u32 time2;
int main(void)
{
if(alt_timestamp_start()<0)
{
printf("No timestamp device aviable\n");
}
else
{
time1=alt_timestamp();
}
while (1)
{
....................... //my application
........................//my application
time2=alt_timestamp();
printf("time execution= %u ticks\n",(unsigned int)(time2-time1));
}
}
"undefined reference to ' alt_timestamp_start ' undefined reference to
' alt_timestamp'
In effects these functions are not in the file "sys/alt_timestamp.h"
but i found them in the file "altera_avalon_timer_ts .c "
I try also to include this file but nothing
I cannot understand
http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif
http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif
http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif