RTEMS  5.1
clock.h
Go to the documentation of this file.
1 
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.org/license/LICENSE.
16  *
17  * Jukka Pietarinen <jukka.pietarinen@mrf.fi>, 2008,
18  * Micro-Research Finland Oy
19  */
20 
28 #ifndef _BSPCLOCK_H
29 #define _BSPCLOCK_H
30 
33 #define LM32_CLOCK_SR (0x0000)
34 #define LM32_CLOCK_SR_TO (0x0001)
35 #define LM32_CLOCK_SR_RUN (0x0002)
36 
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 
47 #define LM32_CLOCK_PERIOD (0x0008)
48 
51 #define LM32_CLOCK_SNAPSHOT (0x000C)
52 
53 #endif /* _BSPCLOCK_H */
54