Demonstrates how to use the timer device to read the current system time.
timerread
This program demonstrates how to use the timer device to read the current system time.
The program does the following:
DoIO()
to perform the read operation
Note that Portfolio provides convenience routines to make using the timer device easier. For example, CreateTimerIOReq()
and DeleteTimerIOReq()
. This example intends to show how in general one can communicate with devices in the Portfolio environment. For more information on the timer convenience routines, see the timer device documentation.
timerread.c
examples/Kernel