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

4.104.115
Last change on this file since b1783062 was b1783062, checked in by Joel Sherrill <joel.sherrill@…>, on 12/04/08 at 22:55:13

2008-12-04 Jukka Pietarinen <jukka.pietarinen@…>

  • ChangeLog?, Makefile.am, README, acinclude.m4, configure.ac, shared/clock/ckinit.c, shared/clock/clock.h, shared/console/console.c, shared/console/uart.c, shared/console/uart.h, shared/start/start.S, shared/startup/bspstart.c, shared/startup/setvec.c, shared/timer/timer.c, shared/tsmac/dp83848phy.h, shared/tsmac/tsmac.c, shared/tsmac/tsmac.h: New files.
  • Property mode set to 100644
File size: 956 bytes
Line 
1/*
2 *  This file contains definitions for LatticeMico32 Timer (Clock)
3 *
4 *  COPYRIGHT (c) 1989-1999.
5 *  On-Line Applications Research Corporation (OAR).
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
9 *  http://www.rtems.com/license/LICENSE.
10 *
11 *  $Id$
12 *
13 *  Jukka Pietarinen <jukka.pietarinen@mrf.fi>, 2008,
14 *  Micro-Research Finland Oy
15 */
16
17#ifndef _BSPCLOCK_H
18#define _BSPCLOCK_H
19
20/* Status Register */
21
22#define LM32_CLOCK_SR       (0x0000)
23#define LM32_CLOCK_SR_TO    (0x0001)
24#define LM32_CLOCK_SR_RUN   (0x0002)
25
26/* Control Register */
27
28#define LM32_CLOCK_CR       (0x0004)
29#define LM32_CLOCK_CR_ITO   (0x0001)
30#define LM32_CLOCK_CR_CONT  (0x0002)
31#define LM32_CLOCK_CR_START (0x0004)
32#define LM32_CLOCK_CR_STOP  (0x0008)
33
34/* Period Register */
35
36#define LM32_CLOCK_PERIOD   (0x0008)
37
38/* Snapshot Register */
39
40#define LM32_CLOCK_SNAPSHOT (0x000C)
41
42#endif /* _BSPCLOCK_H */
Note: See TracBrowser for help on using the repository browser.