The timer_tick function sets the timer tick flag, which the
TCPnet system uses to measure time.
The timer_tick function is in the RL-TCPnet library. The
prototype is defined in rtl.h.
note
The TCPnet system does not use any CPU timers. Hence, you must
generate the timing events by periodically calling the
timer_tick function, for example by using a timer interrupt
function.
Since all the TCPnet timeouts are very slow, you can also
generate timer events by polling for timer overflow.
You must configure the parameter TICK_INTERVAL in net_config.c
to the period of your timer events, in milliseconds. You can set
this to any value between 10 and 200.
It is better to set TICK_INTERVAL to a higher value because low
value for TICK_INTERVAL results in more frequent calls to system
timer update function, which reduces the performance of the TCPnet
system.
Return Value
The timer_tick function does not return any value.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.