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 | /** @} */ |
---|