OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

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

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

Rev 19 Rev 82
Line 25... Line 25...
 
 
 
 
#ifndef GPIO__H
#ifndef GPIO__H
#define GPIO__H
#define GPIO__H
 
 
 
 
 
/* Constants also used by testbench */
 
 
 
/* 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
 
 
 
 
/* Function prototypes for external use */
/* Function prototypes for external use */
extern void  reg_gpio_sec ();
extern void  reg_gpio_sec ();
 
 
#endif  /* GPIO__H */
#endif  /* GPIO__H */
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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