source: rtems/cpukit/include/rtems/clockdrv.h @ bb99cd0d

5
Last change on this file since bb99cd0d was bb99cd0d, checked in by Sebastian Huber <sebastian.huber@…>, on Dec 5, 2019 at 6:22:33 PM

clock: Simplify driver initialization

Use a system initialization handler instead of a legacy IO driver.

Update #3834.

  • Property mode set to 100644
File size: 936 bytes
Line 
1/**
2 * @file
3 *
4 * @ingroup RTEMSDriverClock
5 *
6 * @brief Clock Driver API
7 *
8 * This file defines the Clock Driver API.
9 */
10
11/*
12 *  COPYRIGHT (c) 1989-2011.
13 *  On-Line Applications Research Corporation (OAR).
14 *
15 *  The license and distribution terms for this file may be
16 *  found in the file LICENSE in this distribution or at
17 *  http://www.rtems.org/license/LICENSE.
18 */
19
20#ifndef _RTEMS_CLOCKDRV_H
21#define _RTEMS_CLOCKDRV_H
22
23#include <stdint.h>
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29/**
30 * @defgroup RTEMSDriverClock Clock Driver
31 *
32 * @ingroup RTEMSDeviceDrivers
33 *
34 * @brief The Clock Driver API.
35 *
36 * @{
37 */
38
39/**
40 * @brief Count of clock driver ticks since system boot or last overflow.
41 *
42 * This counter may overflow.
43 */
44extern volatile uint32_t Clock_driver_ticks;
45
46/**
47 * @brief Initialize the clock driver.
48 */
49void _Clock_Initialize( void );
50
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.