4.104.114.84.95
Line | |
---|
1 | /* clock.h |
---|
2 | * |
---|
3 | * This file describes the Clock Driver for all boards. |
---|
4 | * |
---|
5 | * COPYRIGHT (c) 1989-1999. |
---|
6 | * On-Line Applications Research Corporation (OAR). |
---|
7 | * |
---|
8 | * The license and distribution terms for this file may be |
---|
9 | * found in the file LICENSE in this distribution or at |
---|
10 | * http://www.OARcorp.com/rtems/license.html. |
---|
11 | * |
---|
12 | * $Id$ |
---|
13 | */ |
---|
14 | |
---|
15 | #ifndef __CLOCK_DRIVER_h |
---|
16 | #define __CLOCK_DRIVER_h |
---|
17 | |
---|
18 | #ifdef __cplusplus |
---|
19 | extern "C" { |
---|
20 | #endif |
---|
21 | |
---|
22 | /* variables */ |
---|
23 | |
---|
24 | extern volatile rtems_unsigned32 Clock_driver_ticks; |
---|
25 | extern rtems_device_major_number rtems_clock_major; |
---|
26 | extern rtems_device_minor_number rtems_clock_minor; |
---|
27 | |
---|
28 | /* default clock driver entry */ |
---|
29 | |
---|
30 | #define CLOCK_DRIVER_TABLE_ENTRY \ |
---|
31 | { Clock_initialize, NULL, NULL, NULL, NULL, Clock_control } |
---|
32 | |
---|
33 | rtems_device_driver Clock_initialize( |
---|
34 | rtems_device_major_number, |
---|
35 | rtems_device_minor_number, |
---|
36 | void * |
---|
37 | ); |
---|
38 | |
---|
39 | rtems_device_driver Clock_control( |
---|
40 | rtems_device_major_number major, |
---|
41 | rtems_device_minor_number minor, |
---|
42 | void *pargp |
---|
43 | ); |
---|
44 | |
---|
45 | #ifdef __cplusplus |
---|
46 | } |
---|
47 | #endif |
---|
48 | |
---|
49 | #endif |
---|
50 | /* end of include file */ |
---|
Note: See
TracBrowser
for help on using the repository browser.