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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [or1ksim/] [peripheral/] [gpio.c] - Diff between revs 19 and 82

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 19 Rev 82
Line 38... Line 38...
#include "sched.h"
#include "sched.h"
#include "pic.h"
#include "pic.h"
#include "abstract.h"
#include "abstract.h"
#include "toplevel-support.h"
#include "toplevel-support.h"
#include "sim-cmd.h"
#include "sim-cmd.h"
 
#include "gpio.h"
 
 
/* Address space required by one GPIO */
 
#define GPIO_ADDR_SPACE      0x20
 
 
 
/* Relative Register Addresses */
 
#define RGPIO_IN             0x00
 
#define RGPIO_OUT            0x04
 
#define RGPIO_OE             0x08
 
#define RGPIO_INTE           0x0C
 
#define RGPIO_PTRIG          0x10
 
#define RGPIO_AUX            0x14
 
#define RGPIO_CTRL           0x18
 
#define RGPIO_INTS           0x1C
 
 
 
/* Fields inside RGPIO_CTRL */
 
#define RGPIO_CTRL_ECLK      0x00000001
 
#define RGPIO_CTRL_NEC       0x00000002
 
#define RGPIO_CTRL_INTE      0x00000004
 
#define RGPIO_CTRL_INTS      0x00000008
 
 
 
 
 
/*
/*
 * The various VAPI IDs each GPIO device has
 * The various VAPI IDs each GPIO device has
 */
 */

powered by: WebSVN 2.1.0

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