cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
2,293 Views
Registered: ‎05-09-2017

xtime_l.h file IP

What is the IP for the xtime_l.h header file ?
0 Kudos
3 Replies
Highlighted
Xilinx Employee
Xilinx Employee
2,284 Views
Registered: ‎08-01-2008

Re: xtime_l.h file IP

It use for measuring time in a bare-metal Zynq application. Here is example 

#include <stdio.h> #include "platform.h" #include "xparameters.h" #include "xtime_l.h" void print(char *str); int main() { XTime tStart, tEnd; init_platform(); XTime_GetTime(&tStart); print("Hello World\n\r"); XTime_GetTime(&tEnd); printf("Output took %llu clock cycles.\n", 2*(tEnd - tStart)); printf("Output took %.2f us.\n", 1.0 * (tEnd - tStart) / (COUNTS_PER_SECOND/1000000)); return 0; }
Thanks and Regards
Balkrishan
--------------------------------------------------------------------------------------------
Please mark the post as an answer "Accept as solution" in case it helped resolve your query.
Give kudos in case a post in case it guided to the solution.
0 Kudos
Visitor
Visitor
2,232 Views
Registered: ‎05-09-2017

Re: xtime_l.h file IP

Hi Balkrishan,

 

I have design on Artix-7 board (AC705) which comprises ISE as TOP module and EDK as sub-module, in which imaging related IPs.

Now, we have added AXI timer (version 1.03a).

 

Header file: "xtime_l.h"

When I am trying to add this header file in this IP (SDK) I am getting the below error.

 

"Description Resource Path Location Type
fatal error: xtime_l.h: No such file or directory main.c /timer/src line 4 C/C++ Problem"

 

I want to calculate time for particular process.

 

I am not familiar with bare-metal Zynq application.

So, what is bare-metal Zynq application?

 

Thank You.

 

Regards,

Vrujal

0 Kudos
Highlighted
Visitor
Visitor
606 Views
Registered: ‎04-12-2019

Re: xtime_l.h file IP

Respected Balkrishan,

I have the below functionality working with Bare Metal, but my application uses FreeRTOS in Xilinx, and I am unable to use the time functionality owing to some parameters for sleep timers not declared in xparameters.h file as opposed to be seen with Bare Metal BSP include files.

So, could you please help me to know how can we use this functionality with the FreeRTOS application in BSP ?

Yours Sincerely,

Romin

0 Kudos