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

Subversion Repositories potato

[/] [potato/] [tags/] [v0.1/] [benchmarks/] [sha256/] [gpio.h] - Diff between revs 13 and 47

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 13 Rev 47
// The Potato Processor Benchmark Applications
// The Potato Processor Benchmark Applications
// (c) Kristian Klomsten Skordal 2015 <kristian.skordal@wafflemail.net>
// (c) Kristian Klomsten Skordal 2015 <kristian.skordal@wafflemail.net>
// Report bugs and issues on <http://opencores.org/project,potato,bugtracker>
// Report bugs and issues on <http://opencores.org/project,potato,bugtracker>
 
 
#ifndef GPIO_H
#ifndef GPIO_H
#define GPIO_H
#define GPIO_H
 
 
#include <stdint.h>
#include <stdint.h>
 
 
#define DIRECTION_INPUT         0
#define DIRECTION_INPUT         0
#define DIRECTION_OUTPUT        1
#define DIRECTION_OUTPUT        1
 
 
void gpio_set_direction(volatile uint32_t * base, uint32_t direction);
void gpio_set_direction(volatile uint32_t * base, uint32_t direction);
void gpio_set_output(volatile uint32_t * base, uint32_t output);
void gpio_set_output(volatile uint32_t * base, uint32_t output);
uint32_t gpio_get_value(volatile uint32_t * base);
uint32_t gpio_get_value(volatile uint32_t * base);
 
 
#endif
#endif
 
 
 
 

powered by: WebSVN 2.1.0

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