4.104.114.84.95
Rev | Line | |
---|
[ac7d5ef0] | 1 | /* clock.h |
---|
| 2 | * |
---|
| 3 | * This file describes the Clock Driver for all boards. |
---|
| 4 | * |
---|
| 5 | * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. |
---|
| 6 | * On-Line Applications Research Corporation (OAR). |
---|
| 7 | * All rights assigned to U.S. Government, 1994. |
---|
| 8 | * |
---|
| 9 | * This material may be reproduced by or for the U.S. Government pursuant |
---|
| 10 | * to the copyright license under the clause at DFARS 252.227-7013. This |
---|
| 11 | * notice must appear in all copies of this file and its derivatives. |
---|
| 12 | * |
---|
| 13 | * $Id$ |
---|
| 14 | */ |
---|
| 15 | |
---|
| 16 | #ifndef __CLOCK_DRIVER_h |
---|
| 17 | #define __CLOCK_DRIVER_h |
---|
| 18 | |
---|
| 19 | #ifdef __cplusplus |
---|
| 20 | extern "C" { |
---|
| 21 | #endif |
---|
| 22 | |
---|
| 23 | /* variables */ |
---|
| 24 | |
---|
| 25 | extern volatile rtems_unsigned32 Clock_driver_ticks; |
---|
| 26 | |
---|
| 27 | /* functions */ |
---|
| 28 | |
---|
| 29 | rtems_task Exit_task(); |
---|
| 30 | void exit_task_init(); |
---|
| 31 | |
---|
| 32 | void Install_clock( rtems_isr_entry ); |
---|
| 33 | void ReInstall_clock( rtems_isr_entry ); |
---|
| 34 | void Clock_exit(); |
---|
| 35 | |
---|
| 36 | rtems_isr Clock_isr( |
---|
| 37 | rtems_vector_number |
---|
| 38 | ); |
---|
| 39 | |
---|
| 40 | /* driver entries */ |
---|
| 41 | |
---|
| 42 | #define CLOCK_DRIVER_TABLE_ENTRY \ |
---|
| 43 | { Clock_initialize, NULL, NULL, NULL, NULL, NULL } |
---|
| 44 | |
---|
| 45 | rtems_device_driver Clock_initialize( |
---|
| 46 | rtems_device_major_number, |
---|
| 47 | rtems_device_minor_number, |
---|
| 48 | void *, |
---|
| 49 | rtems_id, |
---|
| 50 | rtems_unsigned32 * |
---|
| 51 | ); |
---|
| 52 | |
---|
| 53 | #ifdef __cplusplus |
---|
| 54 | } |
---|
| 55 | #endif |
---|
| 56 | |
---|
| 57 | #endif |
---|
| 58 | /* end of include file */ |
---|
Note: See
TracBrowser
for help on using the repository browser.