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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [OpenRISC_SIM_GCC/] [drivers/] [gpio.h] - Blame information for rev 773

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

Line No. Rev Author Line
1 623 filepang
#ifndef _GPIO_H_
2
#define _GPIO_H_
3
 
4
#define GPIO_IN         0x00            /* GPIO input data */
5
#define GPIO_OUT        0x04            /* GPIO output data */
6
#define GPIO_OE         0x08            /* GPIO output driver enable */
7
#define GPIO_INTE       0x0C            /* Interrupt enable */
8
#define GPIO_PTRIG      0x10            /* Type of event that triggers an interrupt */
9
#define GPIO_AUX        0x14            /* Multiplex auxiliary inputs to GPIO outputs */
10
#define GPIO_CTRL       0x18            /* Control register */
11
#define GPIO_INTS       0x1C            /* Interrupt status */
12
#define GPIO_ECLK       0x20            /* Enable gpio_eclk to latch RGPIO_IN */
13
#define GPIO_NEC        0x24            /* Select active edge of gpio_eclk */
14
 
15
#define GPIO_CTRL_INTE          0x01
16
#define GPIO_CTRL_INTS          0x02
17
 
18
void gpio_init(int core);
19
void set_gpio_direction(int core, unsigned int dirs);
20
unsigned int gpio_read(int core);
21
void gpio_write(int core, unsigned int value);
22
 
23
#endif

powered by: WebSVN 2.1.0

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