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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [or1ksim/] [peripheral/] [gpio.h] - Diff between revs 477 and 502

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

Rev 477 Rev 502
Line 29... Line 29...
 
 
/* Address space required by one Ethernet MAC */
/* Address space required by one Ethernet MAC */
#define GPIO_ADDR_SPACE 0x20
#define GPIO_ADDR_SPACE 0x20
 
 
/* Relative Register Addresses */
/* Relative Register Addresses */
#define RGPIO_IN        (4 * 0x00)
#define RGPIO_IN        0x00
#define RGPIO_OUT       (4 * 0x01)
#define RGPIO_OUT       0x04
#define RGPIO_OE        (4 * 0x02)
#define RGPIO_OE        0x08
#define RGPIO_INTE      (4 * 0x03)
#define RGPIO_INTE      0x0C
#define RGPIO_PTRIG     (4 * 0x04)
#define RGPIO_PTRIG     0x10
#define RGPIO_AUX       (4 * 0x05)
#define RGPIO_AUX       0x14
#define RGPIO_CTRL      (4 * 0x06)
#define RGPIO_CTRL      0x18
 
#define RGPIO_INTS      0x1C
 
 
/* Fields inside RGPIO_CTRL */
/* Fields inside RGPIO_CTRL */
#define RGPIO_CTRL_ECLK      0x00000001
#define RGPIO_CTRL_ECLK      0x00000001
#define RGPIO_CTRL_NEC       0x00000002
#define RGPIO_CTRL_NEC       0x00000002
#define RGPIO_CTRL_INTE      0x00000004
#define RGPIO_CTRL_INTE      0x00000004
#define RGPIO_CTRL_INT       0x00000008
#define RGPIO_CTRL_INTS      0x00000008
 
 
 
 
#endif /* __OR1KSIM_PERIPHERAL_GPIO_H */
#endif /* __OR1KSIM_PERIPHERAL_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.