RTEMS  5.0.0
clockdrv.h
Go to the documentation of this file.
1 
9 /*
10  * COPYRIGHT (c) 1989-2011.
11  * On-Line Applications Research Corporation (OAR).
12  *
13  * The license and distribution terms for this file may be
14  * found in the file LICENSE in this distribution or at
15  * http://www.rtems.org/license/LICENSE.
16  */
17 
18 #ifndef _RTEMS_CLOCKDRV_H
19 #define _RTEMS_CLOCKDRV_H
20 
21 #include <rtems/io.h> /* rtems_device_driver */
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 /* variables */
28 
29 extern volatile uint32_t Clock_driver_ticks;
30 
31 /* default clock driver entry */
32 
33 #define CLOCK_DRIVER_TABLE_ENTRY \
34  { Clock_initialize, NULL, NULL, NULL, NULL, NULL }
35 
37  rtems_device_major_number,
38  rtems_device_minor_number,
39  void *
40 );
41 
42 void Clock_exit(void);
43 
44 #ifdef __cplusplus
45 }
46 #endif
47 
48 #endif
49 /* end of include file */
volatile uint32_t Clock_driver_ticks
ISRs until next clock tick.
Definition: clock.c:30
rtems_status_code
Classic API Status.
Definition: status.h:43
Classic Input/Output Manager API.
rtems_device_driver Clock_initialize(rtems_device_major_number, rtems_device_minor_number, void *)
Clock_initialize.
Definition: clock.c:63