Hi,Powerlink-team Kalycito ,
I wrote a hrestimer-zynqtmr.c in imitation of stack/src/kernel/timer/hrestimer-zynqttc.c. In hrestimer-zynqttc.c,there is a marco define:
,and what is the value of TTC_RESOLUTION_FACTOR in my hrestimer-zynqtmr.c? and How to calculate it? the clock linked to the AXI timer is 100HMZ.
thanks.
attachment is the source code of hrestimer-zynqtmr.c
this is the content of my hrestimer-zynqtmr.c: +++++++++++++++++++++++++++++++++++++++++
Hi Liu zhi qiang,
The TTC Resolution factor is calculated based on the values of clock frequency and prescaler.
The steps to calculate the TTC value are as follows:
Kindly make use of the prescaler value and follow the above steps to calculate it for 100MHz clock frequency.
Regards, Powerlink-Team-Kalycito
Log in to post a comment.
Hi,Powerlink-team Kalycito ,
I wrote a hrestimer-zynqtmr.c in imitation of stack/src/kernel/timer/hrestimer-zynqttc.c. In hrestimer-zynqttc.c,there is a marco define:
#define TTC_RESOLUTION_FACTOR 2304
,and what is the value of TTC_RESOLUTION_FACTOR in my hrestimer-zynqtmr.c? and How to calculate it?
the clock linked to the AXI timer is 100HMZ.
thanks.
Last edit: liu zhi qiang 2018-09-24
attachment is the source code of hrestimer-zynqtmr.c
Last edit: liu zhi qiang 2018-09-24
this is the content of my hrestimer-zynqtmr.c:
+++++++++++++++++++++++++++++++++++++++++
Last edit: liu zhi qiang 2018-09-24
Hi Liu zhi qiang,
The TTC Resolution factor is calculated based on the values of clock frequency and prescaler.
The steps to calculate the TTC value are as follows:
Kindly make use of the prescaler value and follow the above steps to calculate it for 100MHz clock frequency.
Regards,
Powerlink-Team-Kalycito