Site Tools


documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs064

timerread

Demonstrates how to use the timer device to read the current system time.

Synopsis

timerread

Description

This program demonstrates how to use the timer device to read the current system time.

The program does the following:

  • Opens the timer device
  • Creates an IOReq
  • Initializes an IOInfo structure
  • Calls DoIO() to perform the read operation
  • Prints out the current time
  • Cleans up

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.

Associated Files

timerread.c

Location

examples/Kernel

documentation/development/opera/pf25/ppgfldr/smmfldr/gspfldr/12pgs064.txt · Last modified: 2022/10/10 16:53 by 127.0.0.1