Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Application-defined function to get the Get current millisecond timestamp.

Files

net_util.h/net_bsp.c

Prototype

Code Block
          NET_TS NetUtil_TS_Get_ms (void);

Arguments

None.

Returned Value

Current millisecond timestamp.

Required Configuration

None.

Notes / Warnings

The application is responsible for providing a millisecond timestamp clock with adequate resolution and range to satisfy the minimum/maximum TCP RTO values (see ‘net_bsp.c NetUtil_TS_Get_ms() Note #1a’).

µC/TCP-IP includes µC/OS-II and µC/OS-III implementations which use their OS tick counters as the source for the millisecond timestamp. These implementations can be found in the following directories:

\Micrium\Software\uC-TCPIP-V2\BSP\Template\OS\uCOS-II
\Micrium\Software\uC-TCPIP-V2\BSP\Template\OS\uCOS-III