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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [CORTEX_LM3S811_KEIL/] [LuminaryCode/] [hw_gpio.h] - Blame information for rev 590

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 581 jeremybenn
//*****************************************************************************
2
//
3
// hw_gpio.h - Defines and Macros for GPIO hardware.
4
//
5
// Copyright (c) 2005,2006 Luminary Micro, Inc.  All rights reserved.
6
//
7
// Software License Agreement
8
//
9
// Luminary Micro, Inc. (LMI) is supplying this software for use solely and
10
// exclusively on LMI's Stellaris Family of microcontroller products.
11
//
12
// The software is owned by LMI and/or its suppliers, and is protected under
13
// applicable copyright laws.  All rights are reserved.  Any use in violation
14
// of the foregoing restrictions may subject the user to criminal sanctions
15
// under applicable laws, as well as to civil liability for the breach of the
16
// terms and conditions of this license.
17
//
18
// THIS SOFTWARE IS PROVIDED "AS IS".  NO WARRANTIES, WHETHER EXPRESS, IMPLIED
19
// OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
20
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
21
// LMI SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
22
// CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
23
//
24
// This is part of revision 816 of the Stellaris Driver Library.
25
//
26
//*****************************************************************************
27
 
28
#ifndef __HW_GPIO_H__
29
#define __HW_GPIO_H__
30
 
31
//*****************************************************************************
32
//
33
// GPIO Register Offsets.
34
//
35
//*****************************************************************************
36
#define GPIO_O_DATA             0x00000000  // Data register.
37
#define GPIO_O_DIR              0x00000400  // Data direction register.
38
#define GPIO_O_IS               0x00000404  // Interrupt sense register.
39
#define GPIO_O_IBE              0x00000408  // Interrupt both edges register.
40
#define GPIO_O_IEV              0x0000040C  // Intterupt event register.
41
#define GPIO_O_IM               0x00000410  // Interrupt mask register.
42
#define GPIO_O_RIS              0x00000414  // Raw interrupt status register.
43
#define GPIO_O_MIS              0x00000418  // Masked interrupt status reg.
44
#define GPIO_O_ICR              0x0000041C  // Interrupt clear register.
45
#define GPIO_O_AFSEL            0x00000420  // Mode control select register.
46
#define GPIO_O_DR2R             0x00000500  // 2ma drive select register.
47
#define GPIO_O_DR4R             0x00000504  // 4ma drive select register.
48
#define GPIO_O_DR8R             0x00000508  // 8ma drive select register.
49
#define GPIO_O_ODR              0x0000050C  // Open drain select register.
50
#define GPIO_O_PUR              0x00000510  // Pull up select register.
51
#define GPIO_O_PDR              0x00000514  // Pull down select register.
52
#define GPIO_O_SLR              0x00000518  // Slew rate control enable reg.
53
#define GPIO_O_DEN              0x0000051C  // Digital input enable register.
54
#define GPIO_O_PeriphID4        0x00000FD0  //
55
#define GPIO_O_PeriphID5        0x00000FD4  //
56
#define GPIO_O_PeriphID6        0x00000FD8  //
57
#define GPIO_O_PeriphID7        0x00000FDC  //
58
#define GPIO_O_PeriphID0        0x00000FE0  //
59
#define GPIO_O_PeriphID1        0x00000FE4  //
60
#define GPIO_O_PeriphID2        0x00000FE8  //
61
#define GPIO_O_PeriphID3        0x00000FEC  //
62
#define GPIO_O_PCellID0         0x00000FF0  //
63
#define GPIO_O_PCellID1         0x00000FF4  //
64
#define GPIO_O_PCellID2         0x00000FF8  //
65
#define GPIO_O_PCellID3         0x00000FFC  //
66
 
67
//*****************************************************************************
68
//
69
// GPIO Register reset values.
70
//
71
//*****************************************************************************
72
#define GPIO_RV_DATA            0x00000000  // Data register reset value.
73
#define GPIO_RV_DIR             0x00000000  // Data direction reg RV.
74
#define GPIO_RV_IS              0x00000000  // Interrupt sense reg RV.
75
#define GPIO_RV_IBE             0x00000000  // Interrupt both edges reg RV.
76
#define GPIO_RV_IEV             0x00000000  // Intterupt event reg RV.
77
#define GPIO_RV_IM              0x00000000  // Interrupt mask reg RV.
78
#define GPIO_RV_RIS             0x00000000  // Raw interrupt status reg RV.
79
#define GPIO_RV_MIS             0x00000000  // Masked interrupt status reg RV.
80
#define GPIO_RV_IC              0x00000000  // Interrupt clear reg RV.
81
#define GPIO_RV_AFSEL           0x00000000  // Mode control select reg RV.
82
#define GPIO_RV_DR2R            0x000000FF  // 2ma drive select reg RV.
83
#define GPIO_RV_DR4R            0x00000000  // 4ma drive select reg RV.
84
#define GPIO_RV_DR8R            0x00000000  // 8ma drive select reg RV.
85
#define GPIO_RV_ODR             0x00000000  // Open drain select reg RV.
86
#define GPIO_RV_PUR             0x000000FF  // Pull up select reg RV.
87
#define GPIO_RV_PDR             0x00000000  // Pull down select reg RV.
88
#define GPIO_RV_SLR             0x00000000  // Slew rate control enable reg RV.
89
#define GPIO_RV_DEN             0x000000FF  // Digital input enable reg RV.
90
#define GPIO_RV_PeriphID4       0x00000000  //
91
#define GPIO_RV_PeriphID5       0x00000000  //
92
#define GPIO_RV_PeriphID6       0x00000000  //
93
#define GPIO_RV_PeriphID7       0x00000000  //
94
#define GPIO_RV_PeriphID0       0x00000061  //
95
#define GPIO_RV_PeriphID1       0x00000010  //
96
#define GPIO_RV_PeriphID2       0x00000004  //
97
#define GPIO_RV_PeriphID3       0x00000000  //
98
#define GPIO_RV_PCellID0        0x0000000D  //
99
#define GPIO_RV_PCellID1        0x000000F0  //
100
#define GPIO_RV_PCellID2        0x00000005  //
101
#define GPIO_RV_PCellID3        0x000000B1  //
102
 
103
#endif //  __HW_GPIO_H__

powered by: WebSVN 2.1.0

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