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_pfc.h] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
//=============================================================================
2
//
3
//      mod_regs_pfc.h
4
//
5
//      PFC (pin function controller) 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
44
// Date:        2000-10-30
45
//              
46
//####DESCRIPTIONEND####
47
//
48
//=============================================================================
49
 
50
#define CYGARC_REG_PACR                 0xa4000100 // port A control
51
#define CYGARC_REG_PBCR                 0xa4000102 // port B control
52
#define CYGARC_REG_PCCR                 0xa4000104 // port C control
53
#define CYGARC_REG_PDCR                 0xa4000106 // port D control
54
#define CYGARC_REG_PECR                 0xa4000108 // port E control
55
#define CYGARC_REG_PFCR                 0xa400010a // port F control
56
#define CYGARC_REG_PGCR                 0xa400010c // port G control
57
#define CYGARC_REG_PHCR                 0xa400010e // port H control
58
#define CYGARC_REG_PJCR                 0xa4000110 // port J control
59
#define CYGARC_REG_PKCR                 0xa4000112 // port K control
60
#define CYGARC_REG_PLCR                 0xa4000114 // port L control
61
#define CYGARC_REG_SCPCR                0xa4000116 // SC port control
62
 
63
#define CYGARC_REG_PADR                 0xa4000120 // port A data
64
#define CYGARC_REG_PBDR                 0xa4000122 // port B data
65
#define CYGARC_REG_PCDR                 0xa4000124 // port C data
66
#define CYGARC_REG_PDDR                 0xa4000126 // port D data
67
#define CYGARC_REG_PEDR                 0xa4000128 // port E data
68
#define CYGARC_REG_PFDR                 0xa400012a // port F data
69
#define CYGARC_REG_PGDR                 0xa400012c // port G data
70
#define CYGARC_REG_PHDR                 0xa400012e // port H data
71
#define CYGARC_REG_PJDR                 0xa4000130 // port J data
72
#define CYGARC_REG_PKDR                 0xa4000132 // port K data
73
#define CYGARC_REG_PLDR                 0xa4000134 // port L data
74
#define CYGARC_REG_SCPDR                0xa4000136 // SC port data
75
 
76
 
77
// Port C
78
#define CYGARC_REG_PCCR_PC7_MASK        0xc000
79
#define CYGARC_REG_PCCR_PC7_shift       14
80
#define CYGARC_REG_PCCR_PC6_MASK        0x3000
81
#define CYGARC_REG_PCCR_PC6_shift       12
82
#define CYGARC_REG_PCCR_PC5_MASK        0x0c00
83
#define CYGARC_REG_PCCR_PC5_shift       10
84
#define CYGARC_REG_PCCR_PC4_MASK        0x0300
85
#define CYGARC_REG_PCCR_PC4_shift       8
86
#define CYGARC_REG_PCCR_PC3_MASK        0x00c0
87
#define CYGARC_REG_PCCR_PC3_shift       6
88
#define CYGARC_REG_PCCR_PC2_MASK        0x0030
89
#define CYGARC_REG_PCCR_PC2_shift       4
90
#define CYGARC_REG_PCCR_PC1_MASK        0x000c
91
#define CYGARC_REG_PCCR_PC1_shift       2
92
#define CYGARC_REG_PCCR_PC0_MASK        0x0003
93
#define CYGARC_REG_PCCR_PC0_shift       0
94
 
95
#define CYGARC_REG_PCCR_MD_OTHER        0x0
96
#define CYGARC_REG_PCCR_MD_OUT          0x1
97
#define CYGARC_REG_PCCR_MD_IN_ON        0x2
98
#define CYGARC_REG_PCCR_MD_IN_OFF       0x3
99
 
100
#define CYGARC_REG_PCDR_PC7DT           0x80
101
#define CYGARC_REG_PCDR_PC6DT           0x40
102
#define CYGARC_REG_PCDR_PC5DT           0x20
103
#define CYGARC_REG_PCDR_PC4DT           0x10
104
#define CYGARC_REG_PCDR_PC3DT           0x08
105
#define CYGARC_REG_PCDR_PC2DT           0x04
106
#define CYGARC_REG_PCDR_PC1DT           0x02
107
#define CYGARC_REG_PCDR_PC0DT           0x01
108
 

powered by: WebSVN 2.1.0

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