first
This commit is contained in:
44
include_lib/system/generic/gpio.h
Normal file
44
include_lib/system/generic/gpio.h
Normal file
@ -0,0 +1,44 @@
|
||||
#ifndef ASM_GPIO_H
|
||||
#define ASM_GPIO_H
|
||||
|
||||
|
||||
#include "asm/gpio.h"
|
||||
|
||||
#define GPIO2PORT(gpio) (gpio / IO_GROUP_NUM)
|
||||
|
||||
void gpio_port_lock(unsigned int port);
|
||||
|
||||
void gpio_port_unlock(unsigned int port);
|
||||
|
||||
int __gpio_direction_input(unsigned int gpio);
|
||||
int gpio_direction_input(unsigned int gpio);
|
||||
|
||||
int __gpio_direction_output(unsigned int gpio, int value);
|
||||
int gpio_direction_output(unsigned int gpio, int value);
|
||||
|
||||
int __gpio_set_pull_up(unsigned int gpio, int value);
|
||||
int gpio_set_pull_up(unsigned int gpio, int value);
|
||||
|
||||
int __gpio_set_pull_down(unsigned int gpio, int value);
|
||||
int gpio_set_pull_down(unsigned int gpio, int value);
|
||||
|
||||
int __gpio_set_hd(unsigned int gpio, int value);
|
||||
int gpio_set_hd(unsigned int gpio, int value);
|
||||
|
||||
int __gpio_set_die(unsigned int gpio, int value);
|
||||
int gpio_set_die(unsigned int gpio, int value);
|
||||
|
||||
int __gpio_set_output_clk(unsigned int gpio, int clk);
|
||||
int gpio_set_output_clk(unsigned int gpio, int clk);
|
||||
|
||||
int __gpio_read(unsigned int gpio);
|
||||
int gpio_read(unsigned int gpio);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user