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

Subversion Repositories potato

[/] [potato/] [trunk/] [benchmarks/] [sha256/] [gpio.h] - Blame information for rev 23

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

Line No. Rev Author Line
1 13 skordal
// The Potato Processor Benchmark Applications
2
// (c) Kristian Klomsten Skordal 2015 <kristian.skordal@wafflemail.net>
3
// Report bugs and issues on <http://opencores.org/project,potato,bugtracker>
4
 
5
#ifndef GPIO_H
6
#define GPIO_H
7
 
8
#include <stdint.h>
9
 
10
#define DIRECTION_INPUT         0
11
#define DIRECTION_OUTPUT        1
12
 
13
void gpio_set_direction(volatile uint32_t * base, uint32_t direction);
14
void gpio_set_output(volatile uint32_t * base, uint32_t output);
15
uint32_t gpio_get_value(volatile uint32_t * base);
16
 
17
#endif
18
 

powered by: WebSVN 2.1.0

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