OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [hal/] [sh/] [sh4/] [current/] [include/] [mod_regs_rtc.h] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
//=============================================================================
2
//
3
//      mod_regs_rtc.h
4
//
5
//      RTC (real time clock) Module register definitions
6
//
7
//=============================================================================
8
// ####ECOSGPLCOPYRIGHTBEGIN####                                            
9
// -------------------------------------------                              
10
// This file is part of eCos, the Embedded Configurable Operating System.   
11
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
12
//
13
// eCos is free software; you can redistribute it and/or modify it under    
14
// the terms of the GNU General Public License as published by the Free     
15
// Software Foundation; either version 2 or (at your option) any later      
16
// version.                                                                 
17
//
18
// eCos is distributed in the hope that it will be useful, but WITHOUT      
19
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or    
20
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License    
21
// for more details.                                                        
22
//
23
// You should have received a copy of the GNU General Public License        
24
// along with eCos; if not, write to the Free Software Foundation, Inc.,    
25
// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.            
26
//
27
// As a special exception, if other files instantiate templates or use      
28
// macros or inline functions from this file, or you compile this file      
29
// and link it with other works to produce a work based on this file,       
30
// this file does not by itself cause the resulting work to be covered by   
31
// the GNU General Public License. However the source code for this file    
32
// must still be made available in accordance with section (3) of the GNU   
33
// General Public License v2.                                               
34
//
35
// This exception does not invalidate any other reasons why a work based    
36
// on this file might be covered by the GNU General Public License.         
37
// -------------------------------------------                              
38
// ####ECOSGPLCOPYRIGHTEND####                                              
39
//=============================================================================
40
//#####DESCRIPTIONBEGIN####
41
//
42
// Author(s):   jskov
43
// Contributors:jskov, Hajime Ishitani 
44
// Date:        2000-10-30
45
//              
46
//####DESCRIPTIONEND####
47
//
48
//=============================================================================
49
 
50
//--------------------------------------------------------------------------
51
// RealTime Clock
52
 
53
#define CYGARC_REG_RC64CNT              0xFFC80000              // 8bit
54
#define CYGARC_REG_RSECCNT              0xFFC80004              // 8bit
55
#define CYGARC_REG_RMINCNT              0xFFC80008              // 8bit
56
#define CYGARC_REG_RHRCNT               0xFFC8000C              // 8bit
57
#define CYGARC_REG_RWKCNT               0xFFC80010              // 8bit
58
#define CYGARC_REG_RDAYCNT              0xFFC80014              // 8bit
59
#define CYGARC_REG_RMONCNT              0xFFC80018              // 8bit
60
#define CYGARC_REG_RYRCNT               0xFFC8001C              // 16bit
61
#define CYGARC_REG_RSECAR               0xFFC80020              // 8bit
62
#define CYGARC_REG_RMINAR               0xFFC80024              // 8bit
63
#define CYGARC_REG_RHRAR                0xFFC80028              // 8bit
64
#define CYGARC_REG_RWKAR                0xFFC8002C              // 8bit
65
#define CYGARC_REG_RDAYAR               0xFFC80030              // 8bit
66
#define CYGARC_REG_RMONAR               0xFFC80034              // 8bit
67
#define CYGARC_REG_RCR1                 0xFFC80038              // 8bit
68
#define CYGARC_REG_RCR2                 0xFFC8003C              // 8bit
69
#define CYGARC_REG_RCR3                 0xFFC80050              // 8bit
70
#define CYGARC_REG_RYRAR                0xFFC80054              // 8bit
71
 
72
#define CYGARC_REG_RCR1_CF              0x80 // carry flag
73
#define CYGARC_REG_RCR1_CIE             0x10 // carry interrupt enable
74
#define CYGARC_REG_RCR1_AIE             0x08 // alarm interrupt enable
75
#define CYGARC_REG_RCR1_AF              0x01 // alarm flag
76
 
77
#define CYGARC_REG_RCR2_PEF             0x80 // periodic interrupt flag
78
#define CYGARC_REG_RCR2_PES2            0x40 // periodic interrupt setting
79
#define CYGARC_REG_RCR2_PES1            0x20
80
#define CYGARC_REG_RCR2_PES0            0x10
81
#define CYGARC_REG_RCR2_RTCEN           0x08 // RTC enable
82
#define CYGARC_REG_RCR2_ADJ             0x04 // second adjustment
83
#define CYGARC_REG_RCR2_RESET           0x02 // reset
84
#define CYGARC_REG_RCR2_START           0x01 // start
85
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.