source: rtems/c/src/lib/libbsp/lm32/shared/clock/clock.h @ c541862e

4.115
Last change on this file since c541862e was c541862e, checked in by Chirayu Desai <cdesai@…>, on 12/23/13 at 16:44:42

lm32: Add doxygen

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/**
2 * @file
3 * @ingroup lm32_clock
4 * @brief LatticeMico32 Timer (Clock) definitions
5 */
6
7/*
8 *  This file contains definitions for LatticeMico32 Timer (Clock)
9 *
10 *  COPYRIGHT (c) 1989-1999.
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.com/license/LICENSE.
16 *
17 *  Jukka Pietarinen <jukka.pietarinen@mrf.fi>, 2008,
18 *  Micro-Research Finland Oy
19 */
20
21/**
22 * @defgroup lm32_clock LM32 Clock
23 * @ingroup lm32_shared
24 * @brief LatticeMico32 Timer (Clock) definitions.
25 * @{
26 */
27
28#ifndef _BSPCLOCK_H
29#define _BSPCLOCK_H
30
31/** @brief Status Register */
32
33#define LM32_CLOCK_SR       (0x0000)
34#define LM32_CLOCK_SR_TO    (0x0001)
35#define LM32_CLOCK_SR_RUN   (0x0002)
36
37/** @brief Control Register */
38
39#define LM32_CLOCK_CR       (0x0004)
40#define LM32_CLOCK_CR_ITO   (0x0001)
41#define LM32_CLOCK_CR_CONT  (0x0002)
42#define LM32_CLOCK_CR_START (0x0004)
43#define LM32_CLOCK_CR_STOP  (0x0008)
44
45/** @brief Period Register */
46
47#define LM32_CLOCK_PERIOD   (0x0008)
48
49/** @brief Snapshot Register */
50
51#define LM32_CLOCK_SNAPSHOT (0x000C)
52
53#endif /* _BSPCLOCK_H */
54
55/** @} */
Note: See TracBrowser for help on using the repository browser.