RTEMS Logo

RTEMS 4.7.2 On-Line Library


Clock Driver IO Control

PREV UP next Bookshelf BSP and Device Driver Development Guide

9.6: IO Control

The clock driver must supply a handler for the IO control device driver entry point. This functionality is used by other components -- notably the Shared Memory Driver to install a wrapper for the clock interrupt service routine. The following shows the functionality required:

rtems_device_driver Clock_control(
  rtems_device_major_number major,
  rtems_device_minor_number minor,
  void *pargp
)
{
  error check the argument pointer parameter

  if the command is "ISR"
    invoke the clock interrupt service routine
  else if the command is "NEW"
    install the requested handler
}


PREV UP next Bookshelf BSP and Device Driver Development Guide

Copyright © 1988-2004 OAR Corporation