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